Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.001355/0.001355, allocations: 84.55 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001494/0.001494, allocations: 163.9 kB / 23.95 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.444/1.444, allocations: 177.1 MB / 204.3 MB, free: 9.195 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 325.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.075e-05/2.204e-05, allocations: 3.75 kB / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01102/0.01104, allocations: 9.007 MB / 334.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008404/0.01944, allocations: 3.622 MB / 337.7 MB, free: 7.801 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001908/0.02135, allocations: 70.38 kB / 337.8 MB, free: 7.777 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004533/0.02589, allocations: 1.982 MB / 339.8 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004895/0.03078, allocations: 1.738 MB / 341.5 MB, free: 4.707 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00175/0.03253, allocations: 0.6586 MB / 342.2 MB, free: 4.047 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005255/0.03779, allocations: 3.748 MB / 345.9 MB, free: 300 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003885/0.04167, allocations: 2.375 MB / 348.3 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003908/0.04558, allocations: 1.886 MB / 350.2 MB, free: 11.97 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003219/0.0488, allocations: 1.816 MB / 352 MB, free: 10.15 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000767/0.04957, allocations: 256 kB / 352.2 MB, free: 9.902 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002387/0.05195, allocations: 0.9711 MB / 353.2 MB, free: 8.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002132/0.05408, allocations: 1.663 MB / 354.9 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00196/0.05605, allocations: 1.028 MB / 355.9 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007691/0.06374, allocations: 5.813 MB / 361.7 MB, free: 408 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.919e-06/0.06375, allocations: 4 kB / 361.7 MB, free: 404 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.06375, allocations: 4 kB / 361.7 MB, free: 400 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001951/0.06394, allocations: 0 / 361.7 MB, free: 400 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.01108/0.07503, allocations: 4.03 MB / 365.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.07507, allocations: 12.03 kB / 365.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006991/0.08206, allocations: 1.839 MB / 367.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00417/0.08623, allocations: 1.86 MB / 369.5 MB, free: 8.551 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001815/0.08641, allocations: 197 kB / 369.6 MB, free: 8.355 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007122/0.08712, allocations: 251.8 kB / 369.9 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01574/0.1029, allocations: 8.464 MB / 378.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001541/0.103, allocations: 51.62 kB / 378.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000786/0.1038, allocations: 119.9 kB / 378.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003246/0.107, allocations: 1.703 MB / 380.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01456/0.1216, allocations: 7.086 MB / 387.3 MB, free: 6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04256/0.1642, allocations: 32.22 MB / 419.5 MB, free: 4.801 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008043/0.1722, allocations: 2.814 MB / 422.3 MB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002264/0.1745, allocations: 1.36 MB / 423.7 MB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007576/0.1821, allocations: 3.462 MB / 427.2 MB, free: 13.08 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.5e-05/0.1821, allocations: 47.22 kB / 427.2 MB, free: 13.02 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 4.388e-06/0.1821, allocations: 0 / 427.2 MB, free: 13.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.03271/0.2148, allocations: 11.89 MB / 439.1 MB, free: 1.059 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.2149, allocations: 141.2 kB / 439.2 MB, free: 0.8906 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006149/0.2211, allocations: 3.509 MB / 442.8 MB, free: 13.37 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002939/0.2214, allocations: 49.7 kB / 442.8 MB, free: 13.31 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002557/0.2239, allocations: 2.84 MB / 445.6 MB, free: 10.45 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008581/0.2248, allocations: 0.5428 MB / 446.2 MB, free: 9.898 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002185/0.227, allocations: 1.068 MB / 447.3 MB, free: 8.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.2271, allocations: 309.1 kB / 447.6 MB, free: 8.516 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00301/0.2301, allocations: 1.705 MB / 449.3 MB, free: 6.805 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006437/0.2366, allocations: 5.139 MB / 454.4 MB, free: 15.94 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009747/0.2463, allocations: 7.427 MB / 461.8 MB, free: 6.809 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001513/0.2465, allocations: 36 kB / 461.9 MB, free: 6.773 MB / 430.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01338/0.2598, allocations: 6.698 MB / 468.6 MB, free: 68 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001485/0.26, allocations: 64.03 kB / 468.6 MB, free: 4 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1724/0.4324, allocations: 121.6 kB / 468.7 MB, free: 123.1 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008948/0.4333, allocations: 317.2 kB / 469 MB, free: 123.1 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003919/0.4372, allocations: 1.245 MB / 470.3 MB, free: 123.1 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002258/0.4395, allocations: 2.354 MB / 472.6 MB, free: 121.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004119/0.4436, allocations: 321.5 kB / 473 MB, free: 121.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008742/0.4445, allocations: 337.6 kB / 473.3 MB, free: 121.7 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (668): * Single equations (assignments): 664 * 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 {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003393/0.4478, allocations: 1.787 MB / 475.1 MB, free: 121.1 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006604/0.4485, allocations: 291.6 kB / 475.4 MB, free: 121.1 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004956/0.4535, allocations: 2.321 MB / 477.7 MB, free: 120.4 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.818e-05/0.4535, allocations: 13.78 kB / 477.7 MB, free: 120.4 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.377e-05/0.4535, allocations: 4.469 kB / 477.7 MB, free: 120.4 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.949e-05/0.4535, allocations: 12.7 kB / 477.7 MB, free: 120.4 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/0.4638, allocations: 5.167 MB / 482.9 MB, free: 118.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-05/0.4638, allocations: 4.969 kB / 482.9 MB, free: 118.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007922/0.4646, allocations: 168.2 kB / 483 MB, free: 118.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002025/0.4666, allocations: 0.7221 MB / 483.8 MB, free: 118.5 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001059/0.4667, allocations: 25.7 kB / 483.8 MB, free: 118.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004863/0.4716, allocations: 4.694 MB / 488.5 MB, free: 115.9 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.4716, allocations: 4.422 kB / 488.5 MB, free: 115.9 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005836/0.4774, allocations: 4.308 MB / 492.8 MB, free: 114.3 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007519/0.4782, allocations: 277.3 kB / 493.1 MB, free: 114.2 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002951/0.4785, allocations: 19.03 kB / 493.1 MB, free: 114.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001131/0.4796, allocations: 98.88 kB / 493.2 MB, free: 114.2 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001937/0.4798, allocations: 75.17 kB / 493.3 MB, free: 114.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.153e-05/0.4799, allocations: 31.06 kB / 493.3 MB, free: 114.1 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002401/0.4823, allocations: 2.033 MB / 495.3 MB, free: 113.1 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.4823, allocations: 1.312 kB / 495.3 MB, free: 113.1 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003781/0.4861, allocations: 0.8769 MB / 496.2 MB, free: 112.4 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (96): * Single equations (assignments): 92 * 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 {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003696/0.4864, allocations: 165.2 kB / 496.4 MB, free: 112.2 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004556/0.491, allocations: 3.905 MB / 0.4885 GB, free: 108.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.491, allocations: 0 / 0.4885 GB, free: 108.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.4921, allocations: 1.029 MB / 0.4895 GB, free: 107.4 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001944/0.494, allocations: 350.6 kB / 0.4899 GB, free: 107 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009095/0.5031, allocations: 7.305 MB / 0.497 GB, free: 99.73 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001937/0.5051, allocations: 2.228 MB / 0.4992 GB, free: 97.48 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002843/0.5079, allocations: 1.607 MB / 0.5008 GB, free: 95.86 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000541/0.5085, allocations: 204.5 kB / 0.501 GB, free: 95.66 MB / 430.1 MB Notification: Performance of SimCode: time 1.092e-06/0.5085, allocations: 3.938 kB / 0.501 GB, free: 95.66 MB / 430.1 MB Notification: Performance of Templates: time 0.04281/0.5513, allocations: 25.59 MB / 0.5259 GB, free: 70.57 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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: 5.8224656991660595]