Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000986/0.000986, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001038/0.001038, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8608/0.8608, allocations: 177 MB / 204.1 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.SpringMassSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.935e-06/2.935e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.013e-05/3.306e-05, allocations: 2.844 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.007386/0.007419, allocations: 9.365 MB / 333.9 MB, free: 6.465 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006455/0.01387, allocations: 3.719 MB / 337.6 MB, free: 2.734 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001446/0.01532, allocations: 75.62 kB / 337.7 MB, free: 2.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002507/0.01783, allocations: 2.277 MB / 340 MB, free: 380 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003525/0.02135, allocations: 1.917 MB / 341.9 MB, free: 14.45 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00114/0.02249, allocations: 0.7797 MB / 342.7 MB, free: 13.66 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004679/0.02717, allocations: 5.001 MB / 347.7 MB, free: 8.652 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002701/0.02987, allocations: 2.934 MB / 350.6 MB, free: 5.664 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002922/0.03279, allocations: 2.272 MB / 352.9 MB, free: 3.387 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002254/0.03505, allocations: 2.393 MB / 355.3 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003923/0.03544, allocations: 300 kB / 355.5 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001186/0.03663, allocations: 0.8737 MB / 356.4 MB, free: 15.82 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001112/0.03774, allocations: 1.936 MB / 358.4 MB, free: 13.88 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001564/0.0393, allocations: 1.215 MB / 359.6 MB, free: 12.66 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005144/0.04445, allocations: 6.412 MB / 366 MB, free: 6.227 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.04445, allocations: 7.984 kB / 366 MB, free: 6.219 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.04445, allocations: 0 / 366 MB, free: 6.219 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001381/0.04459, allocations: 0 / 366 MB, free: 6.219 MB / 330.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.008122/0.05271, allocations: 4.696 MB / 370.7 MB, free: 1.465 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.035e-05/0.05278, allocations: 15.98 kB / 370.7 MB, free: 1.449 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008026/0.05358, allocations: 0.6912 MB / 371.4 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004196/0.05777, allocations: 2.12 MB / 373.5 MB, free: 14.62 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003482/0.06126, allocations: 2.303 MB / 375.8 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001208/0.06138, allocations: 225.6 kB / 376 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003781/0.06176, allocations: 295.8 kB / 376.3 MB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01119/0.07294, allocations: 9.699 MB / 386 MB, free: 1.289 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.921e-05/0.07303, allocations: 43.67 kB / 386.1 MB, free: 1.246 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002855/0.07332, allocations: 147.9 kB / 386.2 MB, free: 1.102 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001824/0.07514, allocations: 1.919 MB / 388.1 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01093/0.08607, allocations: 7.664 MB / 395.8 MB, free: 7.488 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03527/0.1213, allocations: 36.48 MB / 432.3 MB, free: 1.84 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003938/0.1253, allocations: 2.434 MB / 434.7 MB, free: 15.37 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008393/0.1261, allocations: 0.791 MB / 435.5 MB, free: 14.57 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004188/0.1303, allocations: 3.02 MB / 438.5 MB, free: 11.52 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.189e-05/0.1303, allocations: 55.14 kB / 438.6 MB, free: 11.46 MB / 410.7 MB Notification: Performance of pre-optimization done (n=134): time 4.488e-06/0.1303, allocations: 4 kB / 438.6 MB, free: 11.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=152): time 0.01455/0.1449, allocations: 9.573 MB / 448.2 MB, free: 1.828 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.895e-05/0.145, allocations: 145.5 kB / 448.3 MB, free: 1.652 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2141/0.3591, allocations: 4.458 MB / 452.8 MB, free: 113.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002374/0.3593, allocations: 52.34 kB / 452.8 MB, free: 113.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001458/0.3608, allocations: 3.185 MB / 456 MB, free: 111.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004166/0.3612, allocations: 0.6158 MB / 456.6 MB, free: 111.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001069/0.3623, allocations: 1.144 MB / 457.7 MB, free: 110.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.791e-05/0.3623, allocations: 311.4 kB / 458.1 MB, free: 110.6 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001686/0.364, allocations: 1.585 MB / 459.6 MB, free: 110.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002467/0.3665, allocations: 5.358 MB / 465 MB, free: 104.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004894/0.3714, allocations: 7.546 MB / 472.5 MB, free: 97.51 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.88e-05/0.3714, allocations: 40 kB / 472.6 MB, free: 97.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.006948/0.3784, allocations: 6.69 MB / 479.3 MB, free: 91.53 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.715e-05/0.3784, allocations: 60 kB / 479.3 MB, free: 91.47 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001111/0.3785, allocations: 136 kB / 479.5 MB, free: 91.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001006/0.3786, allocations: 179.9 kB / 479.6 MB, free: 91.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002028/0.3807, allocations: 1.385 MB / 481 MB, free: 89.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000122/0.3808, allocations: 262.6 kB / 481.3 MB, free: 89.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002917/0.3837, allocations: 403.1 kB / 481.7 MB, free: 89.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002623/0.384, allocations: 367.9 kB / 482 MB, free: 89.04 MB / 410.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.001903/0.3859, allocations: 1.959 MB / 484 MB, free: 87.22 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004407/0.3863, allocations: 357.6 kB / 484.3 MB, free: 86.87 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003307/0.3866, allocations: 405.5 kB / 484.7 MB, free: 86.47 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.535e-05/0.3867, allocations: 23.62 kB / 484.8 MB, free: 86.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.248e-05/0.3867, allocations: 7.938 kB / 484.8 MB, free: 86.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.3867, allocations: 3.984 kB / 484.8 MB, free: 86.44 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005603/0.3923, allocations: 5.517 MB / 490.3 MB, free: 80.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.276e-05/0.3923, allocations: 16 kB / 490.3 MB, free: 80.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000498/0.3928, allocations: 275.5 kB / 490.6 MB, free: 80.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-05/0.3928, allocations: 28 kB / 490.6 MB, free: 80.35 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.221e-05/0.3929, allocations: 48 kB / 490.6 MB, free: 80.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.2e-05/0.3929, allocations: 35.86 kB / 490.7 MB, free: 80.27 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.458e-06/0.3929, allocations: 31.88 kB / 490.7 MB, free: 80.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002228/0.3951, allocations: 3.22 MB / 493.9 MB, free: 76.77 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006841/0.3958, allocations: 396.8 kB / 494.3 MB, free: 76.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002296/0.396, allocations: 51.98 kB / 494.4 MB, free: 76.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007482/0.3968, allocations: 111.9 kB / 494.5 MB, free: 76.23 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.3969, allocations: 151.3 kB / 494.6 MB, free: 76.08 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.809e-05/0.3969, allocations: 64 kB / 494.7 MB, free: 76.02 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002362/0.3993, allocations: 2.7 MB / 497.4 MB, free: 73.34 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.3993, allocations: 0 / 497.4 MB, free: 73.34 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003482/0.4028, allocations: 0.9452 MB / 498.3 MB, free: 72.39 MB / 410.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.002553/0.4053, allocations: 3.897 MB / 0.4905 GB, free: 68.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004433/0.4098, allocations: 3.55 MB / 0.4939 GB, free: 64.72 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/0.4098, allocations: 4 kB / 0.4939 GB, free: 64.72 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000594/0.4104, allocations: 0.6931 MB / 0.4946 GB, free: 64.03 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001919/0.4123, allocations: 456.5 kB / 0.495 GB, free: 63.59 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0411/0.4534, allocations: 41.12 MB / 0.5352 GB, free: 16.17 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00221/0.4556, allocations: 2.559 MB / 0.5377 GB, free: 13.59 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002598/0.4582, allocations: 1.784 MB / 0.5394 GB, free: 11.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001386/0.4596, allocations: 1.805 MB / 0.5412 GB, free: 9.992 MB / 410.7 MB Notification: Performance of SimCode: time 2.134e-06/0.4596, allocations: 0 / 0.5412 GB, free: 9.992 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08976/0.5493, allocations: 57.59 MB / 0.5974 GB, free: 1.07 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.167/9.716, allocations: 16 kB / 0.5975 GB, free: 1.055 MB / 458.7 MB " [Timeout remaining time 650] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 11.845578773878515]