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.00167/0.00167, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002375/0.002376, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.662/1.662, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00245/0.00245, allocations: 63.89 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.3383, allocations: 50.55 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01332/0.3516, allocations: 10.25 MB / 419 MB, free: 7.234 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009227/0.3609, allocations: 3.882 MB / 422.9 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00107/0.362, allocations: 59.88 kB / 423 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004574/0.3666, allocations: 2.075 MB / 425 MB, free: 1.199 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004777/0.3714, allocations: 1.606 MB / 426.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001559/0.373, allocations: 0.6901 MB / 427.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006543/0.3795, allocations: 3.392 MB / 430.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004374/0.3839, allocations: 2.68 MB / 433.4 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002835/0.3868, allocations: 1.254 MB / 434.7 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003061/0.3899, allocations: 1.752 MB / 436.4 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006642/0.3906, allocations: 264 kB / 436.7 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002118/0.3927, allocations: 1.108 MB / 437.8 MB, free: 4.387 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001986/0.3947, allocations: 1.551 MB / 439.3 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002577/0.3973, allocations: 1.852 MB / 441.2 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006957/0.4043, allocations: 5.914 MB / 447.1 MB, free: 11.03 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.227e-05/0.4044, allocations: 4 kB / 447.1 MB, free: 11.03 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.85e-06/0.4044, allocations: 4 kB / 447.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004161/0.4048, allocations: 0 / 447.1 MB, free: 11.02 MB / 366.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.008453/0.4133, allocations: 4.224 MB / 451.3 MB, free: 6.727 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.4133, allocations: 8.031 kB / 451.3 MB, free: 6.719 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000826/0.4142, allocations: 0.6451 MB / 452 MB, free: 6.062 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007115/0.4213, allocations: 1.886 MB / 453.9 MB, free: 4.172 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005069/0.4264, allocations: 2.109 MB / 456 MB, free: 2.012 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001829/0.4266, allocations: 209.2 kB / 456.2 MB, free: 1.805 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005811/0.4272, allocations: 263.9 kB / 456.4 MB, free: 1.547 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0189/0.4461, allocations: 10 MB / 466.4 MB, free: 6.863 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001055/0.4463, allocations: 43.62 kB / 466.5 MB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003939/0.4467, allocations: 127.9 kB / 466.6 MB, free: 6.695 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003327/0.45, allocations: 1.864 MB / 468.5 MB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01835/0.4684, allocations: 8.56 MB / 477 MB, free: 12.26 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05097/0.5194, allocations: 36.77 MB / 0.5017 GB, free: 6.457 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01094/0.5304, allocations: 3.897 MB / 0.5056 GB, free: 2.363 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002525/0.533, allocations: 1.811 MB / 0.5073 GB, free: 0.543 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01245/0.5455, allocations: 7.62 MB / 0.5148 GB, free: 8.625 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.639e-05/0.5456, allocations: 55.5 kB / 0.5148 GB, free: 8.562 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 5.41e-06/0.5456, allocations: 0 / 0.5148 GB, free: 8.562 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.05541/0.601, allocations: 17.74 MB / 0.5321 GB, free: 6.715 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000234/0.6013, allocations: 153.5 kB / 0.5323 GB, free: 6.535 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005516/0.6069, allocations: 3.478 MB / 0.5357 GB, free: 3.055 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000263/0.6072, allocations: 53.7 kB / 0.5357 GB, free: 2.996 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002602/0.6098, allocations: 2.842 MB / 0.5385 GB, free: 132 kB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2433/0.8531, allocations: 0.6689 MB / 0.5392 GB, free: 126.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002784/0.8559, allocations: 1.123 MB / 0.5403 GB, free: 126.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.383e-05/0.856, allocations: 304.6 kB / 0.5405 GB, free: 126 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00344/0.8594, allocations: 1.955 MB / 0.5425 GB, free: 125.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003901/0.8633, allocations: 5.374 MB / 0.5477 GB, free: 120.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006823/0.8702, allocations: 7.951 MB / 0.5555 GB, free: 113.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.596e-05/0.8702, allocations: 38.56 kB / 0.5555 GB, free: 113.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01325/0.8835, allocations: 8.188 MB / 0.5635 GB, free: 108.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001687/0.8837, allocations: 64.06 kB / 0.5636 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.737e-05/0.8838, allocations: 120 kB / 0.5637 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003382/0.8872, allocations: 1.297 MB / 0.5649 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003263/0.8905, allocations: 1.257 MB / 0.5662 GB, free: 106.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007295/0.8978, allocations: 6.554 MB / 0.5726 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004786/0.9026, allocations: 306.6 kB / 0.5729 GB, free: 100.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001351/0.9041, allocations: 336 kB / 0.5732 GB, free: 99.83 MB / 462.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.003433/0.9075, allocations: 1.818 MB / 0.575 GB, free: 98.08 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004394/0.9079, allocations: 323.3 kB / 0.5753 GB, free: 97.77 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00636/0.9143, allocations: 3.385 MB / 0.5786 GB, free: 94.38 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.263e-05/0.9144, allocations: 16 kB / 0.5786 GB, free: 94.36 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.238e-06/0.9144, allocations: 8 kB / 0.5786 GB, free: 94.36 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.9144, allocations: 3.984 kB / 0.5786 GB, free: 94.35 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01264/0.927, allocations: 7.586 MB / 0.586 GB, free: 86.74 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/0.9271, allocations: 7.938 kB / 0.586 GB, free: 86.73 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001373/0.9285, allocations: 243.7 kB / 0.5863 GB, free: 86.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003349/0.9319, allocations: 1.112 MB / 0.5873 GB, free: 85.38 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001088/0.932, allocations: 32 kB / 0.5874 GB, free: 85.35 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006773/0.9388, allocations: 6.166 MB / 0.5934 GB, free: 79.05 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.9388, allocations: 7.969 kB / 0.5934 GB, free: 79.05 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008443/0.9472, allocations: 5.76 MB / 0.599 GB, free: 73.26 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007002/0.948, allocations: 367.8 kB / 0.5994 GB, free: 72.89 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007377/0.9487, allocations: 24 kB / 0.5994 GB, free: 72.86 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001266/0.95, allocations: 98.61 kB / 0.5995 GB, free: 72.77 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002301/0.9503, allocations: 99.52 kB / 0.5996 GB, free: 72.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/0.9504, allocations: 48 kB / 0.5996 GB, free: 72.63 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002895/0.9533, allocations: 2.148 MB / 0.6017 GB, free: 70.49 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.9533, allocations: 0 / 0.6017 GB, free: 70.49 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004178/0.9575, allocations: 0.893 MB / 0.6026 GB, free: 69.61 MB / 462.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.009146/0.9666, allocations: 6.4 MB / 0.6088 GB, free: 63.18 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006872/0.9735, allocations: 4.816 MB / 0.6136 GB, free: 58.39 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.9736, allocations: 4 kB / 0.6136 GB, free: 58.39 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002277/0.9759, allocations: 1.548 MB / 0.6151 GB, free: 56.83 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/0.9779, allocations: 365.3 kB / 0.6154 GB, free: 56.48 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05202/1.03, allocations: 41.29 MB / 0.6557 GB, free: 9.922 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003074/1.033, allocations: 2.847 MB / 0.6585 GB, free: 7.039 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003502/1.037, allocations: 1.699 MB / 0.6602 GB, free: 5.336 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001544/1.038, allocations: 1.581 MB / 0.6617 GB, free: 3.754 MB / 462.1 MB Notification: Performance of SimCode: time 7.31e-07/1.038, allocations: 3.281 kB / 0.6617 GB, free: 3.754 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1334/1.172, allocations: 60 MB / 0.7203 GB, free: 8.137 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.35/20.52, allocations: 14.92 kB / 0.7203 GB, free: 8.129 MB / 0.5137 GB (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.1.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