Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",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.001123/0.001123, allocations: 113.2 kB / 17.73 MB, free: 5.336 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.0011/0.001101, allocations: 188.2 kB / 18.67 MB, free: 4.402 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.41/1.41, 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.001361/0.001361, allocations: 51.92 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1047, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.2204/0.3252, allocations: 7.434 MB / 382.1 MB, free: 9.125 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00685/0.3321, allocations: 3.241 MB / 385.3 MB, free: 7.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001404/0.3336, allocations: 36.38 kB / 385.4 MB, free: 7.973 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002341/0.3359, allocations: 1.029 MB / 386.4 MB, free: 7.547 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004099/0.3401, allocations: 1.393 MB / 387.8 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001308/0.3414, allocations: 448.7 kB / 388.2 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004349/0.3458, allocations: 2.645 MB / 390.9 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00255/0.3483, allocations: 1.531 MB / 392.4 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001924/0.3503, allocations: 0.8487 MB / 393.2 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002375/0.3527, allocations: 1.22 MB / 394.5 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007958/0.3535, allocations: 171.2 kB / 394.6 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002969/0.3565, allocations: 1.024 MB / 395.7 MB, free: 4.184 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00169/0.3582, allocations: 1.113 MB / 396.8 MB, free: 3.789 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001999/0.3602, allocations: 1.315 MB / 398.1 MB, free: 2.852 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006176/0.3664, allocations: 4.392 MB / 402.5 MB, free: 44 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3665, allocations: 5.156 kB / 402.5 MB, free: 40 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3665, allocations: 4 kB / 402.5 MB, free: 36 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001184/0.3666, allocations: 0 / 402.5 MB, free: 36 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.0107/0.3773, allocations: 3.151 MB / 405.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/0.3774, allocations: 14.56 kB / 405.7 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001084/0.3785, allocations: 472 kB / 406.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007266/0.3857, allocations: 1.767 MB / 407.9 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004381/0.3902, allocations: 1.853 MB / 409.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001217/0.3903, allocations: 135 kB / 409.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007984/0.3911, allocations: 258 kB / 410.1 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01182/0.4029, allocations: 6.657 MB / 416.8 MB, free: 5.098 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.398e-05/0.4031, allocations: 23.81 kB / 416.8 MB, free: 5.074 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003104/0.4034, allocations: 87.89 kB / 416.9 MB, free: 4.988 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002182/0.4056, allocations: 1.37 MB / 418.3 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01146/0.417, allocations: 6.029 MB / 424.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03392/0.451, allocations: 25.56 MB / 449.8 MB, free: 3.266 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007723/0.4588, allocations: 2.667 MB / 452.5 MB, free: 464 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001772/0.4606, allocations: 1.037 MB / 453.5 MB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007594/0.4682, allocations: 3.87 MB / 457.4 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.94e-05/0.4683, allocations: 43.06 kB / 457.5 MB, free: 11.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=112): time 4.819e-06/0.4683, allocations: 0 / 457.5 MB, free: 11.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.02959/0.4979, allocations: 10.48 MB / 467.9 MB, free: 0.5938 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001484/0.4994, allocations: 1.679 MB / 469.6 MB, free: 14.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005331/0.5048, allocations: 2.758 MB / 472.4 MB, free: 11.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003487/0.5052, allocations: 45.67 kB / 472.4 MB, free: 11.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001622/0.5068, allocations: 2.179 MB / 474.6 MB, free: 9.703 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008091/0.5076, allocations: 0.5272 MB / 475.1 MB, free: 9.172 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001971/0.5096, allocations: 0.921 MB / 476.1 MB, free: 8.238 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.5098, allocations: 313 kB / 476.4 MB, free: 7.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002997/0.5128, allocations: 1.621 MB / 478 MB, free: 6.301 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005217/0.518, allocations: 4.428 MB / 482.4 MB, free: 472 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007863/0.5259, allocations: 6.495 MB / 488.9 MB, free: 8.578 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.769e-05/0.526, allocations: 28 kB / 488.9 MB, free: 8.551 MB / 414.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01583/0.5419, allocations: 7.043 MB / 496 MB, free: 1.484 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001074/0.542, allocations: 44.94 kB / 496 MB, free: 1.441 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006344/0.5484, allocations: 2.543 MB / 498.6 MB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005294/0.5537, allocations: 1.49 MB / 0.4883 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003439/0.5572, allocations: 0.9981 MB / 0.4893 GB, free: 12.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01232/0.5695, allocations: 7.786 MB / 0.4969 GB, free: 4.324 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004144/0.5737, allocations: 319.7 kB / 0.4972 GB, free: 4.012 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009594/0.5747, allocations: 283.9 kB / 0.4975 GB, free: 3.734 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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 (543): * Single equations (assignments): 535 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003328/0.578, allocations: 1.423 MB / 0.4989 GB, free: 2.301 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006344/0.5787, allocations: 250.3 kB / 0.4991 GB, free: 2.055 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007248/0.5859, allocations: 2.842 MB / 0.5019 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006189/0.5922, allocations: 2.505 MB / 0.5043 GB, free: 12.66 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.315e-05/0.5922, allocations: 12 kB / 0.5043 GB, free: 12.65 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.842e-05/0.5922, allocations: 11.91 kB / 0.5044 GB, free: 12.64 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01605/0.6083, allocations: 6.875 MB / 0.5111 GB, free: 5.664 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.49e-05/0.6083, allocations: 0 / 0.5111 GB, free: 5.664 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008652/0.6092, allocations: 175.7 kB / 0.5112 GB, free: 5.492 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004877/0.6141, allocations: 1.442 MB / 0.5126 GB, free: 4.039 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001791/0.6143, allocations: 31.98 kB / 0.5127 GB, free: 4.008 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01142/0.6257, allocations: 7.912 MB / 0.5204 GB, free: 11.82 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001336/0.6271, allocations: 1.55 MB / 0.5219 GB, free: 10.12 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01036/0.6375, allocations: 4.882 MB / 0.5267 GB, free: 5.203 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000981/0.6385, allocations: 303.3 kB / 0.527 GB, free: 4.887 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007688/0.6393, allocations: 27.98 kB / 0.527 GB, free: 4.859 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001757/0.6411, allocations: 111.8 kB / 0.5271 GB, free: 4.75 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003764/0.6415, allocations: 76.44 kB / 0.5272 GB, free: 4.676 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001839/0.6417, allocations: 35.98 kB / 0.5272 GB, free: 4.641 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003891/0.6456, allocations: 1.709 MB / 0.5289 GB, free: 2.922 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6456, allocations: 0 / 0.5289 GB, free: 2.922 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005627/0.6513, allocations: 0.7616 MB / 0.5296 GB, free: 2.16 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01175/0.663, allocations: 5.516 MB / 0.535 GB, free: 12.58 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009763/0.6729, allocations: 4.359 MB / 0.5393 GB, free: 8.195 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.267e-05/0.6729, allocations: 0 / 0.5393 GB, free: 8.195 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003931/0.6769, allocations: 1.721 MB / 0.541 GB, free: 6.426 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002829/0.6797, allocations: 279.2 kB / 0.5412 GB, free: 6.152 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2566/0.9364, allocations: 33.85 MB / 0.5743 GB, free: 138.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00228/0.9387, allocations: 2.293 MB / 0.5765 GB, free: 137.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002866/0.9416, allocations: 1.406 MB / 0.5779 GB, free: 137.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001285/0.9429, allocations: 1.116 MB / 0.579 GB, free: 136.4 MB / 478.1 MB Notification: Performance of SimCode: time 7.02e-07/0.9429, allocations: 0 / 0.579 GB, free: 136.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07574/1.019, allocations: 48.77 MB / 0.6266 GB, free: 91.94 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.38/19.39, allocations: 15.59 kB / 0.6266 GB, free: 91.93 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches