Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008926/0.0008926, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003757/0.003757, allocations: 162.6 kB / 24.69 MB, free: 9.406 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.818/0.818, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 298.4 MB, free: 3.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.235e-05/1.401e-05, allocations: 2.281 kB / 298.5 MB, free: 3.504 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.134/0.134, allocations: 9.414 MB / 307.9 MB, free: 10.71 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007348/0.1414, allocations: 3.701 MB / 311.6 MB, free: 8.441 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001083/0.1425, allocations: 75.09 kB / 311.6 MB, free: 8.418 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003826/0.1463, allocations: 2.293 MB / 313.9 MB, free: 7.441 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003093/0.1494, allocations: 1.953 MB / 315.9 MB, free: 6.531 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009729/0.1504, allocations: 0.7946 MB / 316.7 MB, free: 6.203 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003102/0.1535, allocations: 4.903 MB / 321.6 MB, free: 4.039 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002021/0.1555, allocations: 2.945 MB / 324.5 MB, free: 2.043 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001878/0.1574, allocations: 2.319 MB / 326.8 MB, free: 0.625 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001839/0.1592, allocations: 2.398 MB / 329.2 MB, free: 15.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004067/0.1596, allocations: 300.9 kB / 329.5 MB, free: 15.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001016/0.1606, allocations: 0.8938 MB / 330.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001017/0.1616, allocations: 1.975 MB / 332.4 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009492/0.1626, allocations: 1.234 MB / 333.6 MB, free: 11.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003839/0.1664, allocations: 6.502 MB / 340.1 MB, free: 4.902 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1664, allocations: 4 kB / 340.1 MB, free: 4.898 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1664, allocations: 0 / 340.1 MB, free: 4.898 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.776e-05/0.1665, allocations: 4 kB / 340.2 MB, free: 4.895 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.004361/0.1708, allocations: 4.766 MB / 344.9 MB, free: 72 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.1709, allocations: 11.98 kB / 344.9 MB, free: 60 kB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005211/0.1714, allocations: 0.6912 MB / 345.6 MB, free: 15.36 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003942/0.1753, allocations: 2.124 MB / 347.7 MB, free: 13.23 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002466/0.1778, allocations: 2.624 MB / 350.4 MB, free: 10.55 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/0.1779, allocations: 229.6 kB / 350.6 MB, free: 10.33 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003194/0.1782, allocations: 295.8 kB / 350.9 MB, free: 10.04 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007771/0.186, allocations: 9.692 MB / 360.6 MB, free: 15.58 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.672e-05/0.1861, allocations: 47.58 kB / 360.6 MB, free: 15.54 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002407/0.1863, allocations: 143.9 kB / 360.8 MB, free: 15.39 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001495/0.1878, allocations: 1.915 MB / 362.7 MB, free: 13.48 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007721/0.1955, allocations: 7.648 MB / 370.3 MB, free: 5.809 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02186/0.2174, allocations: 36.59 MB / 406.9 MB, free: 76 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003584/0.221, allocations: 2.438 MB / 409.3 MB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007507/0.2217, allocations: 0.791 MB / 410.1 MB, free: 12.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003017/0.2247, allocations: 3.043 MB / 413.2 MB, free: 9.723 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.2247, allocations: 59.14 kB / 413.2 MB, free: 9.656 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 2.514e-06/0.2248, allocations: 0 / 413.2 MB, free: 9.656 MB / 378.7 MB Notification: Performance of matching and sorting (n=152): time 0.012/0.2368, allocations: 9.747 MB / 423 MB, free: 15.84 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/0.2368, allocations: 149.5 kB / 423.1 MB, free: 15.66 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003356/0.2402, allocations: 4.573 MB / 427.7 MB, free: 11.06 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.994e-05/0.2402, allocations: 53.62 kB / 427.8 MB, free: 11 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001266/0.2415, allocations: 3.19 MB / 430.9 MB, free: 7.781 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002739/0.2418, allocations: 0.6242 MB / 431.6 MB, free: 7.152 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008032/0.2426, allocations: 1.14 MB / 432.7 MB, free: 6 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.323e-05/0.2426, allocations: 313 kB / 433 MB, free: 5.691 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001527/0.2441, allocations: 1.581 MB / 434.6 MB, free: 4.105 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002931/0.2471, allocations: 5.358 MB / 440 MB, free: 12.85 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004715/0.2518, allocations: 7.536 MB / 447.5 MB, free: 3.434 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-05/0.2518, allocations: 36 kB / 447.5 MB, free: 3.398 MB / 410.7 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.005759/0.2576, allocations: 6.686 MB / 454.2 MB, free: 12.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.773e-05/0.2576, allocations: 60 kB / 454.3 MB, free: 12.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.939e-05/0.2577, allocations: 136 kB / 454.4 MB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.983e-05/0.2578, allocations: 176 kB / 454.6 MB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002016/0.2598, allocations: 1.384 MB / 456 MB, free: 10.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001144/0.2599, allocations: 263.2 kB / 456.2 MB, free: 10.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001878/0.2618, allocations: 407.5 kB / 456.6 MB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002451/0.262, allocations: 364 kB / 457 MB, free: 9.945 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (738): * Single equations (assignments): 735 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001498/0.2635, allocations: 1.978 MB / 458.9 MB, free: 7.953 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002488/0.2638, allocations: 357.6 kB / 459.3 MB, free: 7.602 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001146/0.2649, allocations: 1.255 MB / 460.6 MB, free: 6.336 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/0.2649, allocations: 20 kB / 460.6 MB, free: 6.316 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/0.265, allocations: 0 / 460.6 MB, free: 6.316 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.265, allocations: 7.969 kB / 460.6 MB, free: 6.309 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004933/0.2699, allocations: 5.535 MB / 466.1 MB, free: 484 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.028e-05/0.2699, allocations: 16 kB / 466.1 MB, free: 468 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004879/0.2704, allocations: 275.5 kB / 466.4 MB, free: 192 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-05/0.2704, allocations: 29.88 kB / 466.4 MB, free: 164 kB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.634e-05/0.2705, allocations: 48 kB / 466.5 MB, free: 116 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.565e-05/0.2705, allocations: 35.86 kB / 466.5 MB, free: 80 kB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-05/0.2705, allocations: 27.88 kB / 466.5 MB, free: 52 kB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1205/0.391, allocations: 3.199 MB / 469.7 MB, free: 131.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008146/0.3918, allocations: 0.5003 MB / 470.2 MB, free: 131.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002054/0.392, allocations: 56.41 kB / 470.3 MB, free: 131.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008114/0.3928, allocations: 120.2 kB / 470.4 MB, free: 131.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.393, allocations: 156 kB / 470.6 MB, free: 131.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.465e-05/0.393, allocations: 67.73 kB / 470.6 MB, free: 131.6 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003021/0.3961, allocations: 2.763 MB / 473.4 MB, free: 130.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3961, allocations: 3.688 kB / 473.4 MB, free: 130.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002967/0.399, allocations: 0.9772 MB / 474.4 MB, free: 130.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.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 (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003572/0.4026, allocations: 3.893 MB / 478.3 MB, free: 128.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005151/0.4078, allocations: 3.53 MB / 481.8 MB, free: 127.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/0.4078, allocations: 2.75 kB / 481.8 MB, free: 127.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008657/0.4086, allocations: 0.685 MB / 482.5 MB, free: 126.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001675/0.4103, allocations: 466.5 kB / 482.9 MB, free: 126.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02753/0.4378, allocations: 41.56 MB / 0.5122 GB, free: 91.57 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001629/0.4395, allocations: 2.561 MB / 0.5147 GB, free: 89.02 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00205/0.4415, allocations: 1.78 MB / 0.5164 GB, free: 87.23 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00105/0.4426, allocations: 1.812 MB / 0.5182 GB, free: 85.42 MB / 426.7 MB Notification: Performance of SimCode: time 1.152e-06/0.4426, allocations: 0 / 0.5182 GB, free: 85.42 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06002/0.5026, allocations: 58.47 MB / 0.5753 GB, free: 26.89 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/10.88, allocations: 11.8 kB / 0.5753 GB, free: 26.88 MB / 426.7 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.762310441583395]