Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001331/0.001332, allocations: 94.36 kB / 16.5 MB, free: 6.648 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.001378/0.001378, allocations: 194.4 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.244/1.244, allocations: 222.9 MB / 241.1 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009759/0.0009759, allocations: 47.05 kB / 300.1 MB, free: 6.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09269/0.09369, allocations: 49.45 MB / 349.5 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2083/0.3021, allocations: 34.75 MB / 384.3 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01661/0.3187, allocations: 7.906 MB / 392.2 MB, free: 3.461 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006351/0.3251, allocations: 145.8 kB / 392.3 MB, free: 3.438 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003846/0.3291, allocations: 2.059 MB / 394.4 MB, free: 2.488 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003775/0.3328, allocations: 1.525 MB / 395.9 MB, free: 1.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001584/0.3344, allocations: 0.6368 MB / 396.5 MB, free: 1.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004544/0.339, allocations: 4.759 MB / 401.3 MB, free: 15.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002708/0.3417, allocations: 2.681 MB / 404 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001342/0.3431, allocations: 1.119 MB / 405.1 MB, free: 13 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00192/0.345, allocations: 1.888 MB / 407 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003511/0.3454, allocations: 192 kB / 407.2 MB, free: 11.33 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001844/0.3472, allocations: 1.127 MB / 408.3 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001247/0.3485, allocations: 1.535 MB / 409.8 MB, free: 8.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001531/0.35, allocations: 1.817 MB / 411.6 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004891/0.3549, allocations: 5.681 MB / 417.3 MB, free: 1.133 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.355, allocations: 4 kB / 417.3 MB, free: 1.129 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.355, allocations: 7.938 kB / 417.3 MB, free: 1.121 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.784e-05/0.355, allocations: 0 / 417.3 MB, free: 1.121 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.006181/0.3612, allocations: 4.137 MB / 421.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.3613, allocations: 16.03 kB / 421.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006065/0.3619, allocations: 0.6296 MB / 422.1 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005657/0.3676, allocations: 1.864 MB / 424 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003002/0.3706, allocations: 2.19 MB / 426.2 MB, free: 8.148 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001245/0.3707, allocations: 205.2 kB / 426.4 MB, free: 7.945 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003798/0.3711, allocations: 271.8 kB / 426.6 MB, free: 7.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01316/0.3843, allocations: 9.97 MB / 436.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.895e-05/0.3843, allocations: 43.61 kB / 436.7 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000295/0.3847, allocations: 139.8 kB / 436.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002536/0.3872, allocations: 1.848 MB / 438.6 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01379/0.401, allocations: 8.532 MB / 447.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03663/0.4376, allocations: 36.85 MB / 484 MB, free: 12.58 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00936/0.447, allocations: 3.882 MB / 487.9 MB, free: 8.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002353/0.4494, allocations: 1.81 MB / 489.7 MB, free: 6.676 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01131/0.4608, allocations: 7.535 MB / 497.2 MB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.64e-05/0.4608, allocations: 47.56 kB / 497.3 MB, free: 14.8 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 4.218e-06/0.4608, allocations: 0 / 497.3 MB, free: 14.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.05079/0.5116, allocations: 17.41 MB / 0.5026 GB, free: 13.26 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.349e-05/0.5118, allocations: 153.5 kB / 0.5028 GB, free: 13.08 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005749/0.5175, allocations: 3.481 MB / 0.5062 GB, free: 9.594 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002554/0.5178, allocations: 49.7 kB / 0.5062 GB, free: 9.539 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002272/0.5201, allocations: 2.732 MB / 0.5089 GB, free: 6.77 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008586/0.521, allocations: 0.648 MB / 0.5095 GB, free: 6.113 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001862/0.5228, allocations: 1.115 MB / 0.5106 GB, free: 4.988 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.878e-05/0.5229, allocations: 301.1 kB / 0.5109 GB, free: 4.691 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002903/0.5258, allocations: 1.944 MB / 0.5128 GB, free: 2.742 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004945/0.5308, allocations: 5.362 MB / 0.518 GB, free: 11.66 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00819/0.539, allocations: 7.924 MB / 0.5258 GB, free: 2.043 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.968e-05/0.5391, allocations: 39.94 kB / 0.5258 GB, free: 2.004 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.1518/0.6909, allocations: 8.135 MB / 0.5338 GB, free: 147.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.064e-05/0.691, allocations: 56.5 kB / 0.5338 GB, free: 147.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001064/0.6911, allocations: 121.5 kB / 0.5339 GB, free: 147.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00395/0.6951, allocations: 1.298 MB / 0.5352 GB, free: 147.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003353/0.6984, allocations: 1.26 MB / 0.5364 GB, free: 147.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00757/0.706, allocations: 6.093 MB / 0.5424 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003096/0.7091, allocations: 304.5 kB / 0.5427 GB, free: 144.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003728/0.7095, allocations: 341.8 kB / 0.543 GB, free: 144.6 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.001999/0.7115, allocations: 1.804 MB / 0.5448 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000366/0.7119, allocations: 306.7 kB / 0.5451 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005986/0.7179, allocations: 3.367 MB / 0.5483 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.911e-05/0.7179, allocations: 24.14 kB / 0.5484 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.7179, allocations: 3.938 kB / 0.5484 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.7179, allocations: 7.594 kB / 0.5484 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01055/0.7285, allocations: 7.608 MB / 0.5558 GB, free: 139.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.7285, allocations: 0 / 0.5558 GB, free: 139.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009688/0.7295, allocations: 241.8 kB / 0.556 GB, free: 139.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003369/0.7329, allocations: 1.118 MB / 0.5571 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.733, allocations: 35.03 kB / 0.5572 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006614/0.7396, allocations: 5.721 MB / 0.5627 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.7396, allocations: 4.031 kB / 0.5628 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007399/0.747, allocations: 5.703 MB / 0.5683 GB, free: 128.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003691/0.7474, allocations: 349.1 kB / 0.5687 GB, free: 127.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003173/0.7477, allocations: 31.77 kB / 0.5687 GB, free: 127.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.7489, allocations: 91.88 kB / 0.5688 GB, free: 127.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002194/0.7491, allocations: 84.88 kB / 0.5689 GB, free: 127.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.7492, allocations: 47.98 kB / 0.5689 GB, free: 127.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002159/0.7514, allocations: 2.154 MB / 0.571 GB, free: 125.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.7514, allocations: 0 / 0.571 GB, free: 125.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003259/0.7546, allocations: 0.9095 MB / 0.5719 GB, free: 124.6 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.007562/0.7622, allocations: 6.36 MB / 0.5781 GB, free: 118.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005215/0.7674, allocations: 4.771 MB / 0.5828 GB, free: 113.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.7675, allocations: 0 / 0.5828 GB, free: 113.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001708/0.7692, allocations: 1.534 MB / 0.5843 GB, free: 111.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001547/0.7707, allocations: 343.1 kB / 0.5846 GB, free: 111.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04692/0.8177, allocations: 46.93 MB / 0.6304 GB, free: 57.93 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002152/0.8198, allocations: 2.858 MB / 0.6332 GB, free: 55.03 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003352/0.8232, allocations: 1.712 MB / 0.6349 GB, free: 53.32 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001467/0.8247, allocations: 1.589 MB / 0.6364 GB, free: 51.73 MB / 446.1 MB Notification: Performance of SimCode: time 7.81e-07/0.8247, allocations: 3.609 kB / 0.6364 GB, free: 51.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.27/2.094, allocations: 62.21 MB / 0.6972 GB, free: 5.918 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000299/2.095, allocations: 269.6 kB / 0.6974 GB, free: 5.652 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.833/5.928, allocations: 0 / 0.6974 GB, free: 5.652 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches