Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.001028/0.001028, allocations: 79.91 kB / 21.18 MB, free: 3.387 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.0008483/0.0008483, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.9648/0.9648, allocations: 173.4 MB / 201.1 MB, free: 9.336 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.313e-06/1.313e-06, allocations: 0 / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.522e-05/1.653e-05, allocations: 6.25 kB / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.007674/0.007691, allocations: 9.987 MB / 278 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005259/0.01295, allocations: 3.72 MB / 281.7 MB, free: 8.645 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007194/0.01367, allocations: 67.69 kB / 281.8 MB, free: 8.578 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002323/0.01599, allocations: 2.09 MB / 283.9 MB, free: 6.48 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002532/0.01852, allocations: 1.777 MB / 285.6 MB, free: 4.695 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008797/0.0194, allocations: 0.6664 MB / 286.3 MB, free: 4.027 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003261/0.02267, allocations: 3.697 MB / 290 MB, free: 332 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1079/0.1305, allocations: 2.451 MB / 292.5 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002883/0.1334, allocations: 1.945 MB / 294.4 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002473/0.1359, allocations: 1.839 MB / 296.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007737/0.1367, allocations: 261.5 kB / 296.5 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001534/0.1382, allocations: 0.9785 MB / 297.5 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001084/0.1393, allocations: 1.696 MB / 299.2 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001074/0.1404, allocations: 1.042 MB / 300.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002976/0.1433, allocations: 3.861 MB / 304.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1433, allocations: 2.719 kB / 304.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.1434, allocations: 0 / 304.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.427e-05/0.1434, allocations: 0.6562 kB / 304.1 MB, free: 13.88 MB / 266.7 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.00359/0.147, allocations: 4.397 MB / 308.5 MB, free: 11.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.147, allocations: 10.91 kB / 308.5 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003321/0.1503, allocations: 2.181 MB / 310.7 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001594/0.1519, allocations: 1.765 MB / 312.4 MB, free: 9.699 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.678e-05/0.152, allocations: 188.8 kB / 312.6 MB, free: 9.641 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002546/0.1523, allocations: 252.1 kB / 312.9 MB, free: 9.582 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004488/0.1568, allocations: 5.236 MB / 318.1 MB, free: 4.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.527e-05/0.1568, allocations: 45.66 kB / 318.1 MB, free: 4.652 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002157/0.157, allocations: 120.1 kB / 318.3 MB, free: 4.566 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001149/0.1582, allocations: 1.642 MB / 319.9 MB, free: 2.957 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003922/0.1621, allocations: 2.649 MB / 322.6 MB, free: 500 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02124/0.1833, allocations: 38.78 MB / 361.3 MB, free: 8.859 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002928/0.1863, allocations: 1.472 MB / 362.8 MB, free: 7.348 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000469/0.1867, allocations: 396.4 kB / 363.2 MB, free: 6.941 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003676/0.1904, allocations: 3.374 MB / 366.6 MB, free: 3.57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/0.1905, allocations: 45.89 kB / 366.6 MB, free: 3.516 MB / 314.7 MB Notification: Performance of pre-optimization done (n=103): time 2.715e-06/0.1905, allocations: 4 kB / 366.6 MB, free: 3.512 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.007606/0.1981, allocations: 5.622 MB / 372.2 MB, free: 13.84 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.1981, allocations: 145 kB / 372.4 MB, free: 13.67 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002943/0.201, allocations: 3.266 MB / 375.6 MB, free: 10.38 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.445e-05/0.2011, allocations: 37.7 kB / 375.7 MB, free: 10.34 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001337/0.2024, allocations: 3.076 MB / 378.8 MB, free: 7.281 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002698/0.2027, allocations: 478.9 kB / 379.2 MB, free: 6.816 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001124/0.2038, allocations: 1.167 MB / 380.4 MB, free: 5.641 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.592e-05/0.2039, allocations: 484.3 kB / 380.9 MB, free: 5.168 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007282/0.2046, allocations: 0.4944 MB / 381.4 MB, free: 4.668 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003104/0.2077, allocations: 5.731 MB / 387.1 MB, free: 12.55 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004717/0.2125, allocations: 6.875 MB / 394 MB, free: 3.391 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.189e-05/0.2125, allocations: 36 kB / 394 MB, free: 3.355 MB / 346.7 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.005177/0.2177, allocations: 4.509 MB / 398.5 MB, free: 14.85 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.183e-05/0.2177, allocations: 60 kB / 398.6 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.752e-05/0.2178, allocations: 124 kB / 398.7 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001035/0.2179, allocations: 164 kB / 398.9 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00203/0.2199, allocations: 1.24 MB / 400.1 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001486/0.2201, allocations: 247 kB / 400.3 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001592/0.2217, allocations: 317.4 kB / 400.6 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002505/0.2219, allocations: 340 kB / 401 MB, free: 12.38 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 575 * 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 (667): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007969/0.2227, allocations: 0.6057 MB / 401.6 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002506/0.223, allocations: 314 kB / 401.9 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007395/0.2237, allocations: 0.6013 MB / 402.5 MB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/0.2237, allocations: 16 kB / 402.5 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.2237, allocations: 0 / 402.5 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.2238, allocations: 3.984 kB / 402.5 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004136/0.2279, allocations: 3.242 MB / 405.7 MB, free: 7.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.2279, allocations: 0 / 405.7 MB, free: 7.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000347/0.2282, allocations: 144.5 kB / 405.9 MB, free: 7.379 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002186/0.2285, allocations: 51.67 kB / 405.9 MB, free: 7.324 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.34e-05/0.2285, allocations: 28.14 kB / 406 MB, free: 7.297 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009583/0.2295, allocations: 1.821 MB / 407.8 MB, free: 5.355 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2295, allocations: 4 kB / 407.8 MB, free: 5.352 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.2308, allocations: 1.547 MB / 409.3 MB, free: 3.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002491/0.2311, allocations: 278 kB / 409.6 MB, free: 3.477 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001639/0.2312, allocations: 20 kB / 409.6 MB, free: 3.457 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004768/0.2317, allocations: 62.64 kB / 409.7 MB, free: 3.398 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.85e-05/0.2318, allocations: 67.72 kB / 409.8 MB, free: 3.332 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.936e-05/0.2318, allocations: 27.98 kB / 409.8 MB, free: 3.305 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001332/0.2332, allocations: 1.38 MB / 411.2 MB, free: 1.93 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2332, allocations: 0 / 411.2 MB, free: 1.93 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002408/0.2356, allocations: 0.8007 MB / 412 MB, free: 1.129 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (rev.w,damper.phi_rel) * 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 (78): * Single equations (assignments): 74 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003033/0.2359, allocations: 184.4 kB / 412.1 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002294/0.2382, allocations: 2.215 MB / 414.4 MB, free: 14.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.2382, allocations: 1.875 kB / 414.4 MB, free: 14.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005043/0.2387, allocations: 467.2 kB / 414.8 MB, free: 14.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.2397, allocations: 342.9 kB / 415.2 MB, free: 13.95 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00748/0.2472, allocations: 5.791 MB / 420.9 MB, free: 8.066 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009557/0.2481, allocations: 0.9933 MB / 421.9 MB, free: 7.059 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002541/0.2507, allocations: 1.411 MB / 423.4 MB, free: 5.641 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003532/0.251, allocations: 188.5 kB / 423.5 MB, free: 5.457 MB / 378.7 MB Notification: Performance of SimCode: time 1.122e-06/0.251, allocations: 0 / 423.5 MB, free: 5.457 MB / 378.7 MB Notification: Performance of Templates: time 0.1314/0.3825, allocations: 20.54 MB / 444.1 MB, free: 109.6 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.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.7013587639667094]