Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_4_0_0_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.001747/0.001747, allocations: 107.2 kB / 16.92 MB, free: 5.785 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.002126/0.002126, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.125/2.125, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002051/0.002051, allocations: 55.02 kB / 300.7 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.146, allocations: 49.44 MB / 350.2 MB, free: 4.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.02063/0.1667, allocations: 10.22 MB / 360.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0126/0.1793, allocations: 3.787 MB / 364.2 MB, free: 6.266 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002666/0.182, allocations: 59.81 kB / 364.2 MB, free: 6.207 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006773/0.1889, allocations: 1.954 MB / 366.2 MB, free: 4.246 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006469/0.1954, allocations: 1.665 MB / 367.9 MB, free: 2.578 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002314/0.1978, allocations: 0.6004 MB / 368.5 MB, free: 1.977 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2783/0.4761, allocations: 3.312 MB / 371.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005537/0.4817, allocations: 2.574 MB / 374.3 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003676/0.4854, allocations: 1.241 MB / 375.6 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004766/0.4902, allocations: 1.662 MB / 377.2 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001999/0.4923, allocations: 259.2 kB / 377.5 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004505/0.4968, allocations: 1.034 MB / 378.5 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004004/0.5008, allocations: 1.561 MB / 380.1 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00541/0.5063, allocations: 1.831 MB / 381.9 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0115/0.5178, allocations: 5.634 MB / 387.6 MB, free: 6.402 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.141e-05/0.5179, allocations: 0 / 387.6 MB, free: 6.402 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.5179, allocations: 1.312 kB / 387.6 MB, free: 6.402 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003344/0.5182, allocations: 1 kB / 387.6 MB, free: 6.402 MB / 302.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.01643/0.5347, allocations: 4.022 MB / 391.6 MB, free: 3.691 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.035e-05/0.5348, allocations: 13.95 kB / 391.6 MB, free: 3.688 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00301/0.5378, allocations: 0.6042 MB / 392.2 MB, free: 3.297 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01082/0.5486, allocations: 1.783 MB / 394 MB, free: 2.371 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006934/0.5556, allocations: 2.23 MB / 396.2 MB, free: 1.062 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002476/0.5559, allocations: 193.5 kB / 396.4 MB, free: 1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001726/0.5576, allocations: 249.5 kB / 396.6 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02276/0.5804, allocations: 8.424 MB / 405.1 MB, free: 9.887 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001707/0.5806, allocations: 48.72 kB / 405.1 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005565/0.5812, allocations: 121.4 kB / 405.2 MB, free: 9.773 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00428/0.5855, allocations: 1.699 MB / 406.9 MB, free: 8.094 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02127/0.6068, allocations: 7.096 MB / 414 MB, free: 1.168 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06389/0.6708, allocations: 34.17 MB / 448.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01135/0.6822, allocations: 3.266 MB / 451.5 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003011/0.6852, allocations: 1.466 MB / 452.9 MB, free: 9.547 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01023/0.6955, allocations: 4.352 MB / 457.3 MB, free: 5.012 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.545e-05/0.6956, allocations: 46.59 kB / 457.3 MB, free: 4.961 MB / 366.1 MB Notification: Performance of pre-optimization done (n=121): time 5.029e-06/0.6956, allocations: 0 / 457.3 MB, free: 4.961 MB / 366.1 MB Notification: Performance of matching and sorting (n=129): time 0.05028/0.7459, allocations: 11.53 MB / 468.9 MB, free: 9.324 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/0.746, allocations: 145.2 kB / 469 MB, free: 9.152 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01209/0.7582, allocations: 3.722 MB / 472.7 MB, free: 5.438 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004247/0.7586, allocations: 45.61 kB / 472.8 MB, free: 5.391 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003653/0.7623, allocations: 2.758 MB / 475.5 MB, free: 2.633 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001213/0.7635, allocations: 0.5152 MB / 476 MB, free: 2.121 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002788/0.7663, allocations: 1.07 MB / 477.1 MB, free: 1.043 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.7665, allocations: 309.1 kB / 477.4 MB, free: 0.7383 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004607/0.7711, allocations: 1.698 MB / 479.1 MB, free: 15.04 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009/0.7801, allocations: 5.115 MB / 484.2 MB, free: 8.254 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01623/0.7964, allocations: 7.41 MB / 491.6 MB, free: 15.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001912/0.7967, allocations: 36 kB / 491.7 MB, free: 15.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.0226/0.8193, allocations: 6.688 MB / 498.4 MB, free: 8.566 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003017/0.8197, allocations: 66.31 kB / 498.4 MB, free: 8.508 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004474/0.8201, allocations: 131.9 kB / 498.5 MB, free: 8.379 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001335/0.8215, allocations: 320.6 kB / 498.9 MB, free: 8.062 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007218/0.8287, allocations: 1.236 MB / 0.4884 GB, free: 6.824 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004379/0.8332, allocations: 2.496 MB / 0.4908 GB, free: 4.188 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007075/0.8403, allocations: 283.5 kB / 0.4911 GB, free: 3.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001662/0.842, allocations: 338.7 kB / 0.4914 GB, free: 3.582 MB / 414.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.006534/0.8486, allocations: 1.79 MB / 0.4932 GB, free: 1.781 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001321/0.8499, allocations: 308 kB / 0.4934 GB, free: 1.477 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008985/0.8589, allocations: 2.367 MB / 0.4958 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-05/0.859, allocations: 16.12 kB / 0.4958 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.645e-05/0.859, allocations: 8 kB / 0.4958 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.733e-05/0.8591, allocations: 3.984 kB / 0.4958 GB, free: 15.06 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02606/0.8851, allocations: 5.922 MB / 0.5016 GB, free: 9.098 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-05/0.8852, allocations: 3.938 kB / 0.5016 GB, free: 9.094 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001528/0.8867, allocations: 175.8 kB / 0.5017 GB, free: 8.922 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003731/0.8905, allocations: 0.7147 MB / 0.5024 GB, free: 8.203 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002702/0.8908, allocations: 19.98 kB / 0.5025 GB, free: 8.184 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01076/0.9016, allocations: 4.814 MB / 0.5072 GB, free: 3.234 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/0.9016, allocations: 0 / 0.5072 GB, free: 3.234 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01219/0.9138, allocations: 4.321 MB / 0.5114 GB, free: 14.88 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001534/0.9154, allocations: 360.9 kB / 0.5117 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001202/0.9167, allocations: 27.73 kB / 0.5117 GB, free: 14.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002395/0.9191, allocations: 71.84 kB / 0.5118 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003929/0.9195, allocations: 64.56 kB / 0.5119 GB, free: 14.35 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001883/0.9197, allocations: 36 kB / 0.5119 GB, free: 14.31 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007585/0.9273, allocations: 2.327 MB / 0.5142 GB, free: 12 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.9273, allocations: 0 / 0.5142 GB, free: 12 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008966/0.9363, allocations: 0.8086 MB / 0.515 GB, free: 11.19 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 (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.01337/0.9497, allocations: 4.977 MB / 0.5198 GB, free: 6.176 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01373/0.9635, allocations: 4.405 MB / 0.5241 GB, free: 1.785 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/0.9636, allocations: 0 / 0.5241 GB, free: 1.785 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003072/0.9667, allocations: 1.108 MB / 0.5252 GB, free: 0.668 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00586/0.9726, allocations: 396.6 kB / 0.5256 GB, free: 288 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3832/1.356, allocations: 42.21 MB / 0.5668 GB, free: 122.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005126/1.361, allocations: 2.774 MB / 0.5695 GB, free: 120.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006709/1.368, allocations: 1.665 MB / 0.5712 GB, free: 119.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003724/1.372, allocations: 1.522 MB / 0.5726 GB, free: 117.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.242e-06/1.372, allocations: 0 / 0.5726 GB, free: 117.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1551/1.527, allocations: 61.14 MB / 0.6323 GB, free: 57.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.45/20.98, allocations: 10.67 kB / 0.6324 GB, free: 57.03 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches