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.001014/0.001014, allocations: 80.92 kB / 22.29 MB, free: 2.207 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.001394/0.001394, allocations: 162.7 kB / 25.7 MB, free: 8.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.9532/0.9532, allocations: 158.6 MB / 187.6 MB, free: 2.781 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 251.6 MB, free: 7.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.023e-05/2.165e-05, allocations: 6.25 kB / 251.6 MB, free: 7.215 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.007927/0.007949, allocations: 10.19 MB / 261.8 MB, free: 12.97 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00602/0.01397, allocations: 3.919 MB / 265.7 MB, free: 9.039 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006431/0.01461, allocations: 75.62 kB / 265.8 MB, free: 8.965 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002293/0.0169, allocations: 2.347 MB / 268.1 MB, free: 6.609 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002446/0.01935, allocations: 1.948 MB / 270.1 MB, free: 4.652 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009253/0.02028, allocations: 0.7992 MB / 270.9 MB, free: 3.852 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003432/0.02371, allocations: 4.903 MB / 275.8 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002142/0.02585, allocations: 2.92 MB / 278.7 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002359/0.02821, allocations: 2.315 MB / 281 MB, free: 9.633 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002033/0.03024, allocations: 2.245 MB / 283.2 MB, free: 7.383 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003706/0.03061, allocations: 296 kB / 283.5 MB, free: 7.094 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001135/0.03175, allocations: 0.9088 MB / 284.4 MB, free: 6.184 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001498/0.03325, allocations: 1.971 MB / 286.4 MB, free: 4.207 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001312/0.03456, allocations: 1.223 MB / 287.6 MB, free: 2.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004302/0.03886, allocations: 4.276 MB / 291.9 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.03887, allocations: 4 kB / 291.9 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.03887, allocations: 0 / 291.9 MB, free: 14.68 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001692/0.03904, allocations: 0 / 291.9 MB, free: 14.68 MB / 282.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.005324/0.04436, allocations: 4.287 MB / 296.2 MB, free: 10.34 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.0444, allocations: 15.98 kB / 296.2 MB, free: 10.33 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003726/0.04813, allocations: 1.093 MB / 297.3 MB, free: 9.234 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002299/0.05043, allocations: 1.739 MB / 299 MB, free: 7.438 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001504/0.05058, allocations: 229.6 kB / 299.3 MB, free: 7.211 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000405/0.05098, allocations: 291.8 kB / 299.6 MB, free: 6.926 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005976/0.05696, allocations: 4.857 MB / 304.4 MB, free: 1.297 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.625e-05/0.05704, allocations: 47.62 kB / 304.5 MB, free: 1.25 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003004/0.05734, allocations: 143.9 kB / 304.6 MB, free: 1.109 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001907/0.05925, allocations: 1.724 MB / 306.3 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004623/0.06387, allocations: 2.386 MB / 308.7 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02328/0.08716, allocations: 30.99 MB / 339.7 MB, free: 12.77 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003552/0.09071, allocations: 1.54 MB / 341.2 MB, free: 11.19 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004107/0.09112, allocations: 274 kB / 341.5 MB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003468/0.09459, allocations: 2.445 MB / 344 MB, free: 8.441 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.936e-05/0.09462, allocations: 51.16 kB / 344 MB, free: 8.383 MB / 330.7 MB Notification: Performance of pre-optimization done (n=133): time 2.555e-06/0.09462, allocations: 0 / 344 MB, free: 8.383 MB / 330.7 MB Notification: Performance of matching and sorting (n=151): time 0.009011/0.1036, allocations: 4.499 MB / 348.5 MB, free: 3.848 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.565e-05/0.1037, allocations: 141.5 kB / 348.6 MB, free: 3.676 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002489/0.1062, allocations: 3.098 MB / 351.7 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.329e-05/0.1062, allocations: 45.7 kB / 351.8 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1293/0.2356, allocations: 3.038 MB / 354.8 MB, free: 95.55 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007424/0.2363, allocations: 0.6197 MB / 355.4 MB, free: 95.27 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001125/0.2374, allocations: 1.115 MB / 356.6 MB, free: 95.13 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.786e-05/0.2375, allocations: 301.1 kB / 356.9 MB, free: 94.83 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001006/0.2385, allocations: 0.6685 MB / 357.5 MB, free: 94.8 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001757/0.2402, allocations: 4.33 MB / 361.8 MB, free: 89.91 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002893/0.2431, allocations: 5.561 MB / 367.4 MB, free: 84.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.023e-05/0.2432, allocations: 40.16 kB / 367.4 MB, free: 84.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.003755/0.2469, allocations: 3.944 MB / 371.4 MB, free: 83.66 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.847e-05/0.247, allocations: 64.09 kB / 371.5 MB, free: 83.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.871e-05/0.2471, allocations: 135.5 kB / 371.6 MB, free: 83.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001004/0.2472, allocations: 177.3 kB / 371.8 MB, free: 83.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002085/0.2492, allocations: 1.435 MB / 373.2 MB, free: 82.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-05/0.2493, allocations: 267.1 kB / 373.5 MB, free: 82.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001972/0.2513, allocations: 257 kB / 373.7 MB, free: 82.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002235/0.2515, allocations: 319.5 kB / 374 MB, free: 82.33 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * 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 (747): * Single equations (assignments): 744 * 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.0009847/0.2525, allocations: 0.6181 MB / 374.6 MB, free: 81.94 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002225/0.2527, allocations: 203 kB / 374.8 MB, free: 81.81 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005665/0.2533, allocations: 0.6197 MB / 375.5 MB, free: 81.36 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.2533, allocations: 19.83 kB / 375.5 MB, free: 81.35 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.2533, allocations: 0 / 375.5 MB, free: 81.35 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.2533, allocations: 7.516 kB / 375.5 MB, free: 81.34 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003305/0.2566, allocations: 4.046 MB / 379.5 MB, free: 78.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/0.2566, allocations: 20.84 kB / 379.5 MB, free: 78.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004875/0.2571, allocations: 278.8 kB / 379.8 MB, free: 77.94 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.058e-05/0.2571, allocations: 27.83 kB / 379.8 MB, free: 77.92 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.042e-05/0.2572, allocations: 54.03 kB / 379.9 MB, free: 77.87 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-05/0.2572, allocations: 39.81 kB / 379.9 MB, free: 77.83 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.786e-06/0.2572, allocations: 27.88 kB / 380 MB, free: 77.8 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009401/0.2581, allocations: 1.918 MB / 381.9 MB, free: 75.78 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000347/0.2585, allocations: 390 kB / 382.3 MB, free: 75.41 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001794/0.2587, allocations: 51.92 kB / 382.3 MB, free: 75.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005496/0.2592, allocations: 40 kB / 382.4 MB, free: 75.32 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.574e-05/0.2593, allocations: 151.3 kB / 382.5 MB, free: 75.17 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.694e-05/0.2594, allocations: 60 kB / 382.6 MB, free: 75.11 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008358/0.2602, allocations: 1.295 MB / 383.9 MB, free: 73.82 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2602, allocations: 0 / 383.9 MB, free: 73.82 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002428/0.2626, allocations: 0.9733 MB / 384.8 MB, free: 72.86 MB / 330.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 (141): * Single equations (assignments): 138 * 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.0002899/0.2629, allocations: 202.8 kB / 385 MB, free: 72.67 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00175/0.2647, allocations: 2.241 MB / 387.3 MB, free: 70.45 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001301/0.2648, allocations: 100.2 kB / 387.4 MB, free: 70.34 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002625/0.2651, allocations: 384.8 kB / 387.7 MB, free: 69.96 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.2663, allocations: 421.5 kB / 388.2 MB, free: 69.57 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006232/0.2726, allocations: 7.427 MB / 395.6 MB, free: 61.85 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007233/0.2733, allocations: 1.158 MB / 396.7 MB, free: 60.66 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0009062/0.2742, allocations: 494.2 kB / 397.2 MB, free: 60.19 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005452/0.2747, allocations: 0.5285 MB / 397.7 MB, free: 59.66 MB / 330.7 MB Notification: Performance of SimCode: time 1.563e-06/0.2747, allocations: 0 / 397.7 MB, free: 59.66 MB / 330.7 MB Notification: Performance of Templates: time 0.03271/0.3074, allocations: 23.98 MB / 421.7 MB, free: 35.73 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (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 & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.608456556685269]