Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001466/0.001465, allocations: 114.5 kB / 17.73 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 187 kB / 18.66 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.379/1.379, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 56.39 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08184/0.08359, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.1735/0.2572, allocations: 7.673 MB / 382.3 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005887/0.2631, allocations: 3.299 MB / 385.6 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001192/0.2644, allocations: 39.97 kB / 385.7 MB, free: 7.355 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002182/0.2666, allocations: 1.024 MB / 386.7 MB, free: 7.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003793/0.2704, allocations: 1.345 MB / 388 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001439/0.2718, allocations: 0.539 MB / 388.6 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003799/0.2757, allocations: 2.599 MB / 391.2 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001885/0.2776, allocations: 1.398 MB / 392.6 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001587/0.2792, allocations: 0.8419 MB / 393.4 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001791/0.281, allocations: 1.15 MB / 394.6 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004733/0.2815, allocations: 146.7 kB / 394.7 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002048/0.2835, allocations: 0.9007 MB / 395.6 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001137/0.2847, allocations: 1.059 MB / 396.7 MB, free: 3.594 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001383/0.2861, allocations: 1.257 MB / 397.9 MB, free: 2.695 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005083/0.2912, allocations: 4.147 MB / 402.1 MB, free: 160 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.2912, allocations: 1.188 kB / 402.1 MB, free: 160 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.2912, allocations: 0 / 402.1 MB, free: 160 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001261/0.2913, allocations: 7.938 kB / 402.1 MB, free: 152 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 951 * Number of variables: 951 Notification: Performance of Generate backend data structure: time 0.007388/0.2987, allocations: 3.107 MB / 405.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.2988, allocations: 9.906 kB / 405.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008652/0.2997, allocations: 459.9 kB / 405.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005671/0.3054, allocations: 1.6 MB / 407.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003709/0.3091, allocations: 1.874 MB / 409.1 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001691/0.3093, allocations: 127.7 kB / 409.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004434/0.3098, allocations: 156.4 kB / 409.4 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01104/0.3208, allocations: 6.539 MB / 415.9 MB, free: 5.801 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.2e-05/0.3209, allocations: 27.77 kB / 416 MB, free: 5.773 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002669/0.3212, allocations: 79.89 kB / 416 MB, free: 5.695 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002593/0.3238, allocations: 1.472 MB / 417.5 MB, free: 4.223 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01039/0.3342, allocations: 5.83 MB / 423.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03041/0.3646, allocations: 25.71 MB / 449.1 MB, free: 3.918 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005814/0.3705, allocations: 2.549 MB / 451.6 MB, free: 1.219 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00172/0.3722, allocations: 1.223 MB / 452.8 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007877/0.3801, allocations: 4.808 MB / 457.6 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.3802, allocations: 46.56 kB / 457.7 MB, free: 11.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 5.1e-06/0.3802, allocations: 4 kB / 457.7 MB, free: 11.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02494/0.4052, allocations: 9.996 MB / 467.7 MB, free: 0.8906 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.968e-05/0.4053, allocations: 145.2 kB / 467.8 MB, free: 0.7188 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004135/0.4094, allocations: 2.736 MB / 470.6 MB, free: 13.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002456/0.4097, allocations: 45.69 kB / 470.6 MB, free: 13.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00173/0.4115, allocations: 2.147 MB / 472.7 MB, free: 11.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006125/0.4121, allocations: 440.7 kB / 473.2 MB, free: 11.31 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001271/0.4134, allocations: 0.8376 MB / 474 MB, free: 10.46 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.4135, allocations: 309.1 kB / 474.3 MB, free: 10.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002311/0.4158, allocations: 1.445 MB / 475.8 MB, free: 8.711 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004705/0.4205, allocations: 4.061 MB / 479.8 MB, free: 3.332 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007605/0.4282, allocations: 5.945 MB / 485.8 MB, free: 12.08 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.597e-05/0.4283, allocations: 28 kB / 485.8 MB, free: 12.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01147/0.4398, allocations: 6.011 MB / 491.8 MB, free: 6.031 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.232e-05/0.4399, allocations: 51.94 kB / 491.9 MB, free: 5.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001132/0.44, allocations: 92 kB / 491.9 MB, free: 5.891 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002366/0.4424, allocations: 0.8165 MB / 492.8 MB, free: 5.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002821/0.4452, allocations: 0.9435 MB / 493.7 MB, free: 4.125 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00633/0.4515, allocations: 4.664 MB / 498.4 MB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002918/0.4545, allocations: 247.6 kB / 498.6 MB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005326/0.455, allocations: 256 kB / 498.9 MB, free: 14.83 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 425 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (498): * Single equations (assignments): 494 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002361/0.4574, allocations: 1.376 MB / 0.4885 GB, free: 13.45 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004723/0.4579, allocations: 234.4 kB / 0.4887 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004519/0.4624, allocations: 2.142 MB / 0.4908 GB, free: 11.05 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.787e-05/0.4625, allocations: 12 kB / 0.4908 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.4625, allocations: 8 kB / 0.4909 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.4625, allocations: 3.984 kB / 0.4909 GB, free: 11.03 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009787/0.4723, allocations: 5.07 MB / 0.4958 GB, free: 5.883 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-05/0.4724, allocations: 4 kB / 0.4958 GB, free: 5.879 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008041/0.4732, allocations: 159.7 kB / 0.496 GB, free: 5.723 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002154/0.4753, allocations: 0.6795 MB / 0.4966 GB, free: 5.039 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001466/0.4755, allocations: 19.98 kB / 0.4966 GB, free: 5.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005594/0.4811, allocations: 4.157 MB / 0.5007 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.4811, allocations: 0 / 0.5007 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006806/0.4879, allocations: 4.068 MB / 0.5047 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001037/0.489, allocations: 467.2 kB / 0.5051 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003197/0.4893, allocations: 16 kB / 0.5051 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009476/0.4903, allocations: 71.83 kB / 0.5052 GB, free: 12.06 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002013/0.4905, allocations: 60.3 kB / 0.5053 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/0.4906, allocations: 35.97 kB / 0.5053 GB, free: 11.97 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002836/0.4935, allocations: 1.71 MB / 0.507 GB, free: 10.25 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.4935, allocations: 0 / 0.507 GB, free: 10.25 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00341/0.4969, allocations: 0.6717 MB / 0.5076 GB, free: 9.582 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 70 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00737/0.5043, allocations: 4.749 MB / 0.5123 GB, free: 4.785 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00606/0.5104, allocations: 3.477 MB / 0.5157 GB, free: 1.316 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.5104, allocations: 0 / 0.5157 GB, free: 1.316 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001555/0.512, allocations: 1.049 MB / 0.5167 GB, free: 264 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001802/0.5138, allocations: 260.6 kB / 0.5169 GB, free: 4 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2137/0.7275, allocations: 30.01 MB / 0.5462 GB, free: 154.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002716/0.7303, allocations: 2.241 MB / 0.5484 GB, free: 153.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003507/0.7338, allocations: 1.312 MB / 0.5497 GB, free: 153.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00156/0.7354, allocations: 1.102 MB / 0.5508 GB, free: 153.4 MB / 478.1 MB Notification: Performance of SimCode: time 8.62e-07/0.7354, allocations: 0 / 0.5508 GB, free: 153.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07823/0.8136, allocations: 44.82 MB / 0.5946 GB, free: 125.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.13/17.95, allocations: 11.88 kB / 0.5946 GB, free: 125.1 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches