Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.InitSpringConstant,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",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.001928/0.001928, allocations: 106.4 kB / 17.58 MB, free: 5.562 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.002253/0.002253, allocations: 184.2 kB / 18.5 MB, free: 4.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.389/2.389, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.00203/0.00203, allocations: 55.92 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.126, allocations: 46.63 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.0204/0.1465, allocations: 10.22 MB / 337.6 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01234/0.1589, allocations: 3.78 MB / 341.4 MB, free: 6.293 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002921/0.1619, allocations: 59.81 kB / 341.5 MB, free: 6.234 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007071/0.169, allocations: 1.95 MB / 343.4 MB, free: 4.277 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007709/0.1768, allocations: 1.654 MB / 345.1 MB, free: 2.617 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002728/0.1795, allocations: 0.6121 MB / 345.7 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007294/0.1869, allocations: 3.342 MB / 349 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006404/0.1933, allocations: 2.587 MB / 351.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003588/0.1969, allocations: 1.242 MB / 352.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004397/0.2014, allocations: 1.674 MB / 354.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001361/0.2028, allocations: 256 kB / 354.8 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004435/0.2073, allocations: 1.018 MB / 355.8 MB, free: 7.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00352/0.2108, allocations: 1.57 MB / 357.4 MB, free: 6.246 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005112/0.216, allocations: 1.833 MB / 359.2 MB, free: 4.402 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0115/0.2275, allocations: 5.634 MB / 364.8 MB, free: 14.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.226e-05/0.2276, allocations: 4 kB / 364.8 MB, free: 14.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.2276, allocations: 0 / 364.8 MB, free: 14.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002219/0.2278, allocations: 0 / 364.8 MB, free: 14.75 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.01542/0.2433, allocations: 4.045 MB / 368.9 MB, free: 10.63 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.397e-05/0.2434, allocations: 8.031 kB / 368.9 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002159/0.2455, allocations: 0.6082 MB / 369.5 MB, free: 10.01 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01312/0.2587, allocations: 1.793 MB / 371.3 MB, free: 8.207 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007757/0.2665, allocations: 2.392 MB / 373.7 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000303/0.2669, allocations: 188.8 kB / 373.9 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001508/0.2684, allocations: 251.9 kB / 374.1 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2165/0.4849, allocations: 8.421 MB / 382.5 MB, free: 47.65 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002035/0.4852, allocations: 42.31 kB / 382.6 MB, free: 47.63 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007269/0.486, allocations: 124.4 kB / 382.7 MB, free: 47.6 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005668/0.4916, allocations: 1.699 MB / 384.4 MB, free: 47.31 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03092/0.5226, allocations: 7.103 MB / 391.5 MB, free: 45.11 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05759/0.5803, allocations: 34.17 MB / 425.7 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00729/0.5876, allocations: 3.279 MB / 428.9 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002479/0.5901, allocations: 1.455 MB / 430.4 MB, free: 10.17 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01151/0.6017, allocations: 4.371 MB / 434.8 MB, free: 5.613 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.19e-05/0.6018, allocations: 55.06 kB / 434.8 MB, free: 5.551 MB / 318.1 MB Notification: Performance of pre-optimization done (n=121): time 7.785e-06/0.6019, allocations: 0 / 434.8 MB, free: 5.551 MB / 318.1 MB Notification: Performance of matching and sorting (n=129): time 0.05322/0.6551, allocations: 11.58 MB / 446.4 MB, free: 9.828 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/0.6553, allocations: 141.2 kB / 446.5 MB, free: 9.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009346/0.6646, allocations: 3.742 MB / 450.3 MB, free: 5.926 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003617/0.6651, allocations: 41.7 kB / 450.3 MB, free: 5.879 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002615/0.6677, allocations: 2.749 MB / 453.1 MB, free: 3.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008261/0.6686, allocations: 0.5248 MB / 453.6 MB, free: 2.559 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002334/0.6709, allocations: 1.075 MB / 454.7 MB, free: 1.473 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.671, allocations: 305.1 kB / 455 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002956/0.674, allocations: 1.693 MB / 456.7 MB, free: 15.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006982/0.681, allocations: 5.119 MB / 461.8 MB, free: 8.625 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01233/0.6934, allocations: 7.398 MB / 469.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001792/0.6936, allocations: 40 kB / 469.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01402/0.7077, allocations: 6.695 MB / 475.9 MB, free: 8.773 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001431/0.7079, allocations: 63.88 kB / 476 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002174/0.7081, allocations: 124 kB / 476.1 MB, free: 8.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007619/0.7089, allocations: 320.7 kB / 476.4 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004182/0.7131, allocations: 1.244 MB / 477.6 MB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003061/0.7162, allocations: 2.493 MB / 480.1 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005051/0.7212, allocations: 288 kB / 480.4 MB, free: 4.113 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001054/0.7223, allocations: 336 kB / 480.7 MB, free: 3.785 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 660 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005045/0.7274, allocations: 1.787 MB / 482.5 MB, free: 1.984 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00122/0.7286, allocations: 312 kB / 482.8 MB, free: 1.676 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00737/0.736, allocations: 2.37 MB / 485.2 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.842e-05/0.7361, allocations: 15.94 kB / 485.2 MB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.404e-05/0.7361, allocations: 4 kB / 485.2 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.947e-05/0.7361, allocations: 11.97 kB / 485.2 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01496/0.7511, allocations: 5.926 MB / 491.2 MB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.765e-05/0.7512, allocations: 0 / 491.2 MB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009272/0.7521, allocations: 179.7 kB / 491.3 MB, free: 9.094 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002383/0.7545, allocations: 0.7231 MB / 492.1 MB, free: 8.371 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001463/0.7547, allocations: 16 kB / 492.1 MB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006326/0.761, allocations: 4.807 MB / 496.9 MB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.761, allocations: 0 / 496.9 MB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007485/0.7685, allocations: 4.329 MB / 0.4895 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001443/0.77, allocations: 0.5282 MB / 0.49 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007617/0.7708, allocations: 24.11 kB / 0.49 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001472/0.7723, allocations: 71.78 kB / 0.4901 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002249/0.7725, allocations: 68.5 kB / 0.4901 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.7726, allocations: 36 kB / 0.4902 GB, free: 14.3 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004516/0.7772, allocations: 2.339 MB / 0.4925 GB, free: 11.97 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.7772, allocations: 0 / 0.4925 GB, free: 11.97 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005314/0.7825, allocations: 0.8177 MB / 0.4933 GB, free: 11.16 MB / 398.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 (96): * Single equations (assignments): 92 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008056/0.7906, allocations: 4.961 MB / 0.4981 GB, free: 6.16 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008282/0.7989, allocations: 4.406 MB / 0.5024 GB, free: 1.785 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.175e-06/0.799, allocations: 4.25 kB / 0.5024 GB, free: 1.781 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001726/0.8007, allocations: 1.108 MB / 0.5035 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003937/0.8046, allocations: 387.9 kB / 0.5039 GB, free: 292 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3752/1.18, allocations: 42.34 MB / 0.5452 GB, free: 134.8 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01184/1.192, allocations: 2.786 MB / 0.5479 GB, free: 133.6 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.01064/1.203, allocations: 1.663 MB / 0.5496 GB, free: 133.6 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005886/1.209, allocations: 1.527 MB / 0.551 GB, free: 132.4 MB / 430.1 MB Notification: Performance of SimCode: time 3.186e-06/1.209, allocations: 1.688 kB / 0.551 GB, free: 132.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1478/1.356, allocations: 61.28 MB / 0.6109 GB, free: 78.59 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.19/19.55, allocations: 8.547 kB / 0.6109 GB, free: 78.58 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches