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.0009295/0.0009295, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.001264/0.001264, allocations: 147.5 kB / 24.9 MB, free: 8.727 MB / 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.8654/0.8654, allocations: 173.4 MB / 201.5 MB, free: 8.727 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.262e-06/1.262e-06, allocations: 0 / 268.5 MB, free: 6.016 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.6e-05/1.726e-05, allocations: 6.109 kB / 268.5 MB, free: 6.012 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01511/0.01513, allocations: 9.702 MB / 278.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01156/0.02669, allocations: 3.816 MB / 282 MB, free: 8.422 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005198/0.02721, allocations: 71.62 kB / 282.1 MB, free: 8.352 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005522/0.03274, allocations: 2.075 MB / 284.1 MB, free: 6.27 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005396/0.03813, allocations: 1.789 MB / 285.9 MB, free: 4.473 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008365/0.03897, allocations: 0.6664 MB / 286.6 MB, free: 3.805 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005819/0.04479, allocations: 3.691 MB / 290.3 MB, free: 108 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.149/0.1938, allocations: 2.531 MB / 292.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002082/0.1959, allocations: 1.947 MB / 294.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001614/0.1975, allocations: 1.754 MB / 296.5 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002614/0.1977, allocations: 256.8 kB / 296.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001121/0.1989, allocations: 0.9732 MB / 297.7 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008593/0.1997, allocations: 1.696 MB / 299.4 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000705/0.2004, allocations: 1.04 MB / 300.5 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002312/0.2027, allocations: 3.861 MB / 304.3 MB, free: 14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.2027, allocations: 1.406 kB / 304.3 MB, free: 14 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2028, allocations: 0 / 304.3 MB, free: 14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.879e-05/0.2028, allocations: 0 / 304.3 MB, free: 14 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.002755/0.2055, allocations: 3.769 MB / 308.1 MB, free: 11.97 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.875e-05/0.2056, allocations: 9.594 kB / 308.1 MB, free: 11.97 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001912/0.2075, allocations: 0.941 MB / 309.1 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.2087, allocations: 1.471 MB / 310.5 MB, free: 11.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.846e-05/0.2087, allocations: 195.3 kB / 310.7 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002393/0.209, allocations: 245.3 kB / 311 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002929/0.2119, allocations: 4.223 MB / 315.2 MB, free: 8.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.15e-05/0.212, allocations: 33.91 kB / 315.2 MB, free: 8.215 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001847/0.2121, allocations: 120.7 kB / 315.3 MB, free: 8.129 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009451/0.2131, allocations: 1.469 MB / 316.8 MB, free: 6.691 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002349/0.2154, allocations: 2.099 MB / 318.9 MB, free: 4.789 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02464/0.2401, allocations: 27.43 MB / 346.3 MB, free: 9.297 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002649/0.2427, allocations: 1.287 MB / 347.6 MB, free: 8.012 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004044/0.2431, allocations: 275.7 kB / 347.9 MB, free: 7.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004426/0.2476, allocations: 2.977 MB / 350.9 MB, free: 4.773 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/0.2476, allocations: 46.34 kB / 350.9 MB, free: 4.723 MB / 298.7 MB Notification: Performance of pre-optimization done (n=103): time 3.838e-06/0.2476, allocations: 0 / 350.9 MB, free: 4.723 MB / 298.7 MB Notification: Performance of matching and sorting (n=104): time 0.006419/0.254, allocations: 2.659 MB / 353.6 MB, free: 2.062 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.343e-05/0.2541, allocations: 145 kB / 353.7 MB, free: 1.887 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002717/0.2568, allocations: 2.902 MB / 356.6 MB, free: 15.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.875e-05/0.2569, allocations: 37.7 kB / 356.7 MB, free: 15.44 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001224/0.2581, allocations: 2.761 MB / 359.4 MB, free: 12.82 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000372/0.2585, allocations: 465.8 kB / 359.9 MB, free: 12.39 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007685/0.2592, allocations: 1.013 MB / 360.9 MB, free: 11.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.886e-05/0.2593, allocations: 301.1 kB / 361.2 MB, free: 11.19 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008958/0.2602, allocations: 0.6152 MB / 361.8 MB, free: 10.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002204/0.2624, allocations: 4.009 MB / 365.8 MB, free: 4.973 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003525/0.2659, allocations: 5.123 MB / 370.9 MB, free: 14.39 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.435e-05/0.266, allocations: 36 kB / 371 MB, free: 14.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.004214/0.2702, allocations: 3.587 MB / 374.5 MB, free: 10.77 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.425e-05/0.2703, allocations: 64.25 kB / 374.6 MB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-05/0.2704, allocations: 124 kB / 374.7 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.987e-05/0.2705, allocations: 168 kB / 374.9 MB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001983/0.2724, allocations: 1.216 MB / 376.1 MB, free: 9.207 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001243/0.2726, allocations: 243.1 kB / 376.3 MB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002013/0.2746, allocations: 239.8 kB / 376.6 MB, free: 8.734 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000232/0.2748, allocations: 295.9 kB / 376.9 MB, free: 8.445 MB / 330.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.0009767/0.2758, allocations: 0.5674 MB / 377.4 MB, free: 7.867 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002767/0.2761, allocations: 175.7 kB / 377.6 MB, free: 7.695 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006513/0.2767, allocations: 0.4973 MB / 378.1 MB, free: 7.188 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.551e-05/0.2767, allocations: 12 kB / 378.1 MB, free: 7.176 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.2767, allocations: 4 kB / 378.1 MB, free: 7.172 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.2767, allocations: 3.984 kB / 378.1 MB, free: 7.168 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003199/0.2799, allocations: 2.204 MB / 380.3 MB, free: 4.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.2799, allocations: 0 / 380.3 MB, free: 4.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003176/0.2803, allocations: 127.8 kB / 380.5 MB, free: 4.785 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001647/0.2804, allocations: 43.64 kB / 380.5 MB, free: 4.738 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.487e-05/0.2805, allocations: 19.98 kB / 380.5 MB, free: 4.719 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001004/0.2815, allocations: 1.414 MB / 381.9 MB, free: 3.203 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/0.2815, allocations: 11.88 kB / 381.9 MB, free: 3.191 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001193/0.2827, allocations: 1.21 MB / 383.1 MB, free: 1.934 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003342/0.283, allocations: 261.9 kB / 383.4 MB, free: 1.676 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001624/0.2832, allocations: 23.98 kB / 383.4 MB, free: 1.652 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004092/0.2836, allocations: 12 kB / 383.4 MB, free: 1.641 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.212e-05/0.2836, allocations: 59.91 kB / 383.5 MB, free: 1.582 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.094e-05/0.2837, allocations: 23.94 kB / 383.5 MB, free: 1.559 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008742/0.2846, allocations: 1.04 MB / 384.6 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2846, allocations: 0 / 384.6 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002619/0.2872, allocations: 0.8007 MB / 385.4 MB, free: 15.71 MB / 346.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.0003087/0.2875, allocations: 164 kB / 385.5 MB, free: 15.55 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002176/0.2897, allocations: 1.935 MB / 387.5 MB, free: 13.63 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001363/0.2898, allocations: 96.16 kB / 387.6 MB, free: 13.53 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004291/0.2902, allocations: 340.8 kB / 387.9 MB, free: 13.18 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001487/0.2917, allocations: 489.5 kB / 388.4 MB, free: 12.71 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006907/0.2986, allocations: 5.764 MB / 394.1 MB, free: 6.852 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008338/0.2995, allocations: 0.9855 MB / 395.1 MB, free: 5.852 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001057/0.3005, allocations: 434.4 kB / 395.5 MB, free: 5.426 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005961/0.3011, allocations: 469.2 kB / 396 MB, free: 4.965 MB / 346.7 MB Notification: Performance of SimCode: time 2.955e-06/0.3011, allocations: 0 / 396 MB, free: 4.965 MB / 346.7 MB Notification: Performance of Templates: time 0.03611/0.3372, allocations: 22.04 MB / 418 MB, free: 15.21 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.3845811281353235]