Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001681/0.001681, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002028/0.002028, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 62.34 kB / 307.1 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09727/0.09856, allocations: 50.52 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01164/0.1102, allocations: 10.26 MB / 367.8 MB, free: 3.719 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1789/0.2891, allocations: 3.884 MB / 371.7 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001914/0.2911, allocations: 56.91 kB / 371.8 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004604/0.2958, allocations: 2.064 MB / 373.8 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004959/0.3007, allocations: 1.609 MB / 375.4 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001922/0.3027, allocations: 0.6914 MB / 376.1 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005635/0.3083, allocations: 3.387 MB / 379.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004742/0.3131, allocations: 2.685 MB / 382.2 MB, free: 8.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003344/0.3165, allocations: 1.248 MB / 383.5 MB, free: 7.637 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003424/0.3199, allocations: 1.762 MB / 385.2 MB, free: 7.047 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001254/0.3212, allocations: 262 kB / 385.5 MB, free: 7.047 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003025/0.3242, allocations: 1.107 MB / 386.6 MB, free: 6.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002014/0.3262, allocations: 1.548 MB / 388.1 MB, free: 6.051 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003091/0.3294, allocations: 1.853 MB / 390 MB, free: 4.648 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006382/0.3357, allocations: 5.679 MB / 395.7 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3358, allocations: 0 / 395.7 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3358, allocations: 0 / 395.7 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002311/0.336, allocations: 4 kB / 395.7 MB, free: 0.9297 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.008802/0.3448, allocations: 4.117 MB / 399.8 MB, free: 14.14 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.3449, allocations: 13.28 kB / 399.8 MB, free: 14.14 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001113/0.346, allocations: 0.6503 MB / 400.4 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006917/0.3529, allocations: 1.853 MB / 402.3 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005179/0.3582, allocations: 2.071 MB / 404.4 MB, free: 9.883 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00014/0.3583, allocations: 211.8 kB / 404.6 MB, free: 9.707 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004666/0.3588, allocations: 272 kB / 404.8 MB, free: 9.473 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01875/0.3775, allocations: 10 MB / 414.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.975e-05/0.3777, allocations: 39.59 kB / 414.9 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003746/0.378, allocations: 136.7 kB / 415 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002925/0.381, allocations: 1.844 MB / 416.9 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01754/0.3985, allocations: 8.57 MB / 425.4 MB, free: 4.344 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04798/0.4465, allocations: 36.84 MB / 462.3 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01067/0.4573, allocations: 3.924 MB / 466.2 MB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00277/0.4601, allocations: 1.806 MB / 468 MB, free: 8.723 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01206/0.4722, allocations: 7.611 MB / 475.6 MB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.013e-05/0.4723, allocations: 59.44 kB / 475.7 MB, free: 0.793 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 5.199e-06/0.4723, allocations: 0 / 475.7 MB, free: 0.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.05527/0.5276, allocations: 17.54 MB / 493.2 MB, free: 15.14 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.389e-05/0.5277, allocations: 145.5 kB / 493.3 MB, free: 14.97 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005413/0.5331, allocations: 3.473 MB / 496.8 MB, free: 11.49 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002676/0.5334, allocations: 53.7 kB / 496.9 MB, free: 11.43 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001805/0.5352, allocations: 2.728 MB / 499.6 MB, free: 8.711 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007693/0.536, allocations: 0.6445 MB / 0.4885 GB, free: 8.07 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001569/0.5376, allocations: 1.11 MB / 0.4896 GB, free: 6.953 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.084e-05/0.5377, allocations: 313.1 kB / 0.4899 GB, free: 6.645 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002942/0.5406, allocations: 1.951 MB / 0.4918 GB, free: 4.688 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005035/0.5457, allocations: 5.381 MB / 0.4971 GB, free: 13.59 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00934/0.555, allocations: 7.936 MB / 0.5048 GB, free: 3.957 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001267/0.5552, allocations: 35.94 kB / 0.5048 GB, free: 3.922 MB / 430.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01751/0.5727, allocations: 8.173 MB / 0.5128 GB, free: 11.74 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001617/0.5729, allocations: 56 kB / 0.5129 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001669/0.5731, allocations: 124.2 kB / 0.513 GB, free: 11.56 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004387/0.5775, allocations: 1.298 MB / 0.5143 GB, free: 10.26 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004282/0.5818, allocations: 1.259 MB / 0.5155 GB, free: 9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009844/0.5917, allocations: 6.547 MB / 0.5219 GB, free: 2.316 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005068/0.5968, allocations: 311.4 kB / 0.5222 GB, free: 2.012 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001255/0.5981, allocations: 342.9 kB / 0.5225 GB, free: 1.68 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (681): * Single equations (assignments): 677 * 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 {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.1719/0.77, allocations: 1.802 MB / 0.5243 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008583/0.7708, allocations: 302 kB / 0.5246 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008672/0.7795, allocations: 3.385 MB / 0.5279 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.702e-05/0.7796, allocations: 19.25 kB / 0.5279 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.652e-05/0.7796, allocations: 8.766 kB / 0.5279 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.349e-05/0.7796, allocations: 7.516 kB / 0.5279 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01586/0.7955, allocations: 7.623 MB / 0.5353 GB, free: 138.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.757e-05/0.7956, allocations: 1.312 kB / 0.5353 GB, free: 138.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001193/0.7968, allocations: 247.1 kB / 0.5356 GB, free: 138.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003768/0.8005, allocations: 1.126 MB / 0.5367 GB, free: 138.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001837/0.8007, allocations: 30.86 kB / 0.5367 GB, free: 138.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008522/0.8093, allocations: 6.169 MB / 0.5427 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.8093, allocations: 3.375 kB / 0.5427 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009498/0.8188, allocations: 5.744 MB / 0.5483 GB, free: 133.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007375/0.8196, allocations: 357.1 kB / 0.5487 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003416/0.8199, allocations: 23.7 kB / 0.5487 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00127/0.8212, allocations: 101.5 kB / 0.5488 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002723/0.8215, allocations: 95.09 kB / 0.5489 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.8216, allocations: 40.8 kB / 0.5489 GB, free: 133.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00295/0.8246, allocations: 2.149 MB / 0.551 GB, free: 132.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.8246, allocations: 0 / 0.551 GB, free: 132.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003991/0.8286, allocations: 0.8965 MB / 0.5519 GB, free: 132.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (129): * Single equations (assignments): 125 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008974/0.8376, allocations: 6.392 MB / 0.5582 GB, free: 129.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008636/0.8462, allocations: 5.548 MB / 0.5636 GB, free: 124.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.8463, allocations: 0 / 0.5636 GB, free: 124.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00208/0.8484, allocations: 1.547 MB / 0.5651 GB, free: 122.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002205/0.8506, allocations: 372.4 kB / 0.5654 GB, free: 122.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05395/0.9045, allocations: 45.37 MB / 0.6097 GB, free: 70.24 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002331/0.9069, allocations: 2.855 MB / 0.6125 GB, free: 67.35 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003595/0.9105, allocations: 1.692 MB / 0.6142 GB, free: 65.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001604/0.9122, allocations: 1.581 MB / 0.6157 GB, free: 64.07 MB / 446.1 MB Notification: Performance of SimCode: time 5.41e-07/0.9122, allocations: 0 / 0.6157 GB, free: 64.07 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08588/0.9981, allocations: 63.43 MB / 0.6777 GB, free: 0.957 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.77, allocations: 19.33 kB / 0.6777 GB, free: 0.9414 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches