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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008723/0.0008723, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9134/0.9134, allocations: 173.3 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 318.4 MB, free: 6.332 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.15e-05/2.348e-05, allocations: 2.281 kB / 318.4 MB, free: 6.328 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01032/0.01034, allocations: 9.061 MB / 327.5 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007954/0.0183, allocations: 3.683 MB / 331.2 MB, free: 9.523 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00154/0.01984, allocations: 71.62 kB / 331.3 MB, free: 9.453 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003352/0.02319, allocations: 2.125 MB / 333.4 MB, free: 7.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004243/0.02743, allocations: 1.757 MB / 335.1 MB, free: 5.555 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001546/0.02898, allocations: 0.7288 MB / 335.9 MB, free: 4.824 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004712/0.03369, allocations: 3.711 MB / 339.6 MB, free: 1.105 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003078/0.03677, allocations: 2.465 MB / 342 MB, free: 14.58 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003331/0.0401, allocations: 1.925 MB / 344 MB, free: 12.65 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002757/0.04286, allocations: 1.894 MB / 345.9 MB, free: 10.75 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004463/0.0433, allocations: 268 kB / 346.1 MB, free: 10.49 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001324/0.04463, allocations: 1.061 MB / 347.2 MB, free: 9.43 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009541/0.04558, allocations: 1.687 MB / 348.9 MB, free: 7.738 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008419/0.04642, allocations: 1.067 MB / 349.9 MB, free: 6.668 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00434/0.05076, allocations: 6.008 MB / 355.9 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.05076, allocations: 0 / 355.9 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.05077, allocations: 4 kB / 356 MB, free: 0.6367 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.647e-05/0.05084, allocations: 0 / 356 MB, free: 0.6367 MB / 314.7 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.004945/0.05579, allocations: 4.184 MB / 360.1 MB, free: 12.39 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.05583, allocations: 12.92 kB / 360.1 MB, free: 12.38 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004859/0.05632, allocations: 0.6374 MB / 360.8 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003671/0.05999, allocations: 1.983 MB / 362.8 MB, free: 9.746 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002178/0.06217, allocations: 1.896 MB / 364.7 MB, free: 7.812 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001043/0.06227, allocations: 205.2 kB / 364.9 MB, free: 7.609 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003113/0.06258, allocations: 267.8 kB / 365.1 MB, free: 7.348 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01038/0.07296, allocations: 10.04 MB / 375.2 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.054e-05/0.07302, allocations: 35.69 kB / 375.2 MB, free: 12.59 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002411/0.07326, allocations: 135.9 kB / 375.3 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00166/0.07492, allocations: 1.852 MB / 377.2 MB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01071/0.08563, allocations: 8.524 MB / 385.7 MB, free: 2.074 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02695/0.1126, allocations: 35.55 MB / 421.3 MB, free: 13.47 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005403/0.118, allocations: 3.189 MB / 424.4 MB, free: 10.24 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001691/0.1197, allocations: 1.688 MB / 426.1 MB, free: 8.547 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007051/0.1267, allocations: 6.365 MB / 432.5 MB, free: 2.141 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.168e-05/0.1268, allocations: 47.56 kB / 432.5 MB, free: 2.086 MB / 394.7 MB Notification: Performance of pre-optimization done (n=150): time 4.719e-06/0.1268, allocations: 4 kB / 432.6 MB, free: 2.082 MB / 394.7 MB Notification: Performance of matching and sorting (n=166): time 0.03056/0.1573, allocations: 18 MB / 450.6 MB, free: 32 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1592/0.3165, allocations: 147 kB / 450.7 MB, free: 122.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004622/0.3212, allocations: 3.844 MB / 454.5 MB, free: 121.6 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002854/0.3214, allocations: 46.11 kB / 454.6 MB, free: 121.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007478/0.3222, allocations: 2.824 MB / 457.4 MB, free: 119.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000366/0.3226, allocations: 0.665 MB / 458.1 MB, free: 119.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007766/0.3233, allocations: 1.096 MB / 459.2 MB, free: 118.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.907e-05/0.3234, allocations: 309.1 kB / 459.5 MB, free: 118.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00167/0.325, allocations: 1.952 MB / 461.4 MB, free: 117.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002332/0.3274, allocations: 5.373 MB / 466.8 MB, free: 112.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00468/0.332, allocations: 7.928 MB / 474.7 MB, free: 104.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.835e-05/0.3321, allocations: 39.38 kB / 474.8 MB, free: 104.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.007698/0.3398, allocations: 8.176 MB / 482.9 MB, free: 96.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.492e-05/0.3398, allocations: 61 kB / 483 MB, free: 96.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.403e-05/0.3399, allocations: 120 kB / 483.1 MB, free: 96.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001998/0.3419, allocations: 1.292 MB / 484.4 MB, free: 95.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001855/0.3437, allocations: 1.267 MB / 485.7 MB, free: 93.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005103/0.3488, allocations: 6.391 MB / 492.1 MB, free: 87.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002502/0.3513, allocations: 351.6 kB / 492.4 MB, free: 87.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000241/0.3516, allocations: 340 kB / 492.7 MB, free: 86.68 MB / 410.7 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.001796/0.3534, allocations: 1.813 MB / 494.6 MB, free: 84.86 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003182/0.3537, allocations: 325.8 kB / 494.9 MB, free: 84.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00365/0.3573, allocations: 3.343 MB / 498.2 MB, free: 81.17 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.671e-05/0.3574, allocations: 20 kB / 498.2 MB, free: 81.15 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.3574, allocations: 4 kB / 498.2 MB, free: 81.15 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.3574, allocations: 7.969 kB / 498.2 MB, free: 81.14 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007676/0.365, allocations: 7.307 MB / 0.4937 GB, free: 73.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.872e-06/0.3651, allocations: 3.938 kB / 0.4937 GB, free: 73.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005794/0.3656, allocations: 247.7 kB / 0.4939 GB, free: 73.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001873/0.3675, allocations: 1.123 MB / 0.495 GB, free: 72.45 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.202e-05/0.3676, allocations: 27.94 kB / 0.4951 GB, free: 72.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004623/0.3722, allocations: 6.02 MB / 0.5009 GB, free: 66.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.3722, allocations: 7.969 kB / 0.501 GB, free: 66.29 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00529/0.3775, allocations: 5.705 MB / 0.5065 GB, free: 60.56 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005708/0.3781, allocations: 317.7 kB / 0.5068 GB, free: 60.25 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002097/0.3783, allocations: 27.36 kB / 0.5069 GB, free: 60.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007743/0.3791, allocations: 134.4 kB / 0.507 GB, free: 60.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001734/0.3792, allocations: 92.81 kB / 0.5071 GB, free: 60 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.03e-05/0.3793, allocations: 40 kB / 0.5071 GB, free: 59.96 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00201/0.3813, allocations: 2.283 MB / 0.5093 GB, free: 57.69 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3813, allocations: 0 / 0.5093 GB, free: 57.69 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002945/0.3842, allocations: 0.9882 MB / 0.5103 GB, free: 56.7 MB / 410.7 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.005563/0.3898, allocations: 6.391 MB / 0.5165 GB, free: 50.28 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005096/0.3949, allocations: 4.601 MB / 0.521 GB, free: 45.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.3949, allocations: 0 / 0.521 GB, free: 45.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001305/0.3962, allocations: 1.429 MB / 0.5224 GB, free: 44.26 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001684/0.3979, allocations: 365.4 kB / 0.5228 GB, free: 43.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0363/0.4342, allocations: 41.57 MB / 0.5634 GB, free: 13.05 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001878/0.4361, allocations: 2.297 MB / 0.5656 GB, free: 10.72 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002335/0.4384, allocations: 1.711 MB / 0.5673 GB, free: 9.004 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001358/0.4398, allocations: 1.594 MB / 0.5689 GB, free: 7.41 MB / 426.7 MB Notification: Performance of SimCode: time 1.463e-06/0.4398, allocations: 0 / 0.5689 GB, free: 7.41 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2073/0.6471, allocations: 62.57 MB / 0.63 GB, free: 141.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.05/10.7, allocations: 11.94 kB / 0.63 GB, free: 141.2 MB / 458.7 MB " [Timeout remaining time 649] (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 --stepSize=0.0019992 --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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.743901089765131]