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.001094/0.001094, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00165/0.002745, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.001015/0.001015, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001348/0.002362, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.9134/0.9134, allocations: 173.4 MB / 185.8 MB, free: 8.977 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0853/0.9987, allocations: 52.5 MB / 238.3 MB, free: 4.414 MB / 234.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.562e-06/1.562e-06, allocations: 0 / 239.6 MB, free: 3.145 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.186e-05/1.342e-05, allocations: 2.875 kB / 239.6 MB, free: 3.141 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.007517/0.007531, allocations: 9.797 MB / 249.4 MB, free: 9.297 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006019/0.01355, allocations: 3.852 MB / 253.2 MB, free: 5.434 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007724/0.01432, allocations: 67.69 kB / 253.3 MB, free: 5.367 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002199/0.01652, allocations: 1.989 MB / 255.3 MB, free: 3.371 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002366/0.01889, allocations: 1.746 MB / 257 MB, free: 1.617 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007783/0.01967, allocations: 0.6118 MB / 257.6 MB, free: 1.004 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002448/0.02211, allocations: 3.587 MB / 261.2 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001921/0.02404, allocations: 2.256 MB / 263.5 MB, free: 11.08 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001475/0.02551, allocations: 2.03 MB / 265.5 MB, free: 9.051 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001297/0.02681, allocations: 1.738 MB / 267.2 MB, free: 7.309 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002289/0.02704, allocations: 260 kB / 267.5 MB, free: 7.055 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00111/0.02815, allocations: 1.01 MB / 268.5 MB, free: 6.043 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009752/0.02912, allocations: 1.527 MB / 270 MB, free: 4.512 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006814/0.0298, allocations: 0.8607 MB / 270.9 MB, free: 3.648 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002392/0.03219, allocations: 3.584 MB / 274.5 MB, free: 52 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.121e-05/0.03221, allocations: 3.984 kB / 274.5 MB, free: 48 kB / 266.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.03221, allocations: 0 / 274.5 MB, free: 48 kB / 266.7 MB Notification: Performance of Transformations before backend: time 4.128e-05/0.03225, allocations: 0 / 274.5 MB, free: 48 kB / 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.1178/0.15, allocations: 4.55 MB / 279 MB, free: 23.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.1501, allocations: 9.281 kB / 279 MB, free: 23.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002832/0.1529, allocations: 0.9489 MB / 280 MB, free: 23.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003075/0.156, allocations: 1.466 MB / 281.5 MB, free: 23.15 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002088/0.1562, allocations: 189.3 kB / 281.6 MB, free: 23.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005809/0.1568, allocations: 257 kB / 281.9 MB, free: 23.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007107/0.1639, allocations: 4.209 MB / 286.1 MB, free: 21.33 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001373/0.164, allocations: 37.09 kB / 286.1 MB, free: 21.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002758/0.1643, allocations: 127 kB / 286.3 MB, free: 21.32 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00153/0.1658, allocations: 1.479 MB / 287.7 MB, free: 21.31 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004212/0.17, allocations: 2.096 MB / 289.8 MB, free: 21.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02159/0.1916, allocations: 27.42 MB / 317.3 MB, free: 9.918 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002897/0.1945, allocations: 1.26 MB / 318.5 MB, free: 8.613 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003357/0.1949, allocations: 276.5 kB / 318.8 MB, free: 8.328 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003973/0.1988, allocations: 2.966 MB / 321.8 MB, free: 5.336 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/0.1989, allocations: 47 kB / 321.8 MB, free: 5.281 MB / 282.7 MB Notification: Performance of pre-optimization done (n=103): time 3.476e-06/0.1989, allocations: 0 / 321.8 MB, free: 5.281 MB / 282.7 MB Notification: Performance of matching and sorting (n=104): time 0.005775/0.2046, allocations: 2.61 MB / 324.4 MB, free: 2.648 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.904e-05/0.2047, allocations: 141 kB / 324.5 MB, free: 2.48 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00277/0.2075, allocations: 2.905 MB / 327.5 MB, free: 15.56 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.763e-05/0.2075, allocations: 44.22 kB / 327.5 MB, free: 15.51 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001304/0.2088, allocations: 2.758 MB / 330.3 MB, free: 12.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004236/0.2093, allocations: 460.6 kB / 330.7 MB, free: 12.28 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009902/0.2102, allocations: 1.021 MB / 331.7 MB, free: 11.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.884e-05/0.2103, allocations: 301.1 kB / 332 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008674/0.2112, allocations: 0.6141 MB / 332.6 MB, free: 10.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002885/0.2141, allocations: 4.018 MB / 336.6 MB, free: 4.539 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003625/0.2177, allocations: 5.113 MB / 341.8 MB, free: 13.67 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.882e-05/0.2178, allocations: 36 kB / 341.8 MB, free: 13.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.004052/0.2218, allocations: 3.58 MB / 345.4 MB, free: 10.05 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.786e-05/0.2219, allocations: 60.97 kB / 345.4 MB, free: 9.988 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001049/0.222, allocations: 128 kB / 345.6 MB, free: 9.863 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.905e-05/0.2221, allocations: 172 kB / 345.7 MB, free: 9.695 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002188/0.2243, allocations: 1.349 MB / 347.1 MB, free: 8.344 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000129/0.2244, allocations: 247 kB / 347.3 MB, free: 8.102 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002182/0.2266, allocations: 239.7 kB / 347.6 MB, free: 7.867 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002468/0.2268, allocations: 296 kB / 347.8 MB, free: 7.578 MB / 314.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.0009723/0.2278, allocations: 0.5679 MB / 348.4 MB, free: 6.996 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003967/0.2282, allocations: 175.7 kB / 348.6 MB, free: 6.824 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006998/0.2289, allocations: 0.4973 MB / 349.1 MB, free: 6.312 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.696e-05/0.2289, allocations: 12 kB / 349.1 MB, free: 6.301 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.2289, allocations: 4 kB / 349.1 MB, free: 6.297 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.2289, allocations: 3.984 kB / 349.1 MB, free: 6.293 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003617/0.2326, allocations: 2.191 MB / 351.3 MB, free: 4.047 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.958e-06/0.2326, allocations: 4 kB / 351.3 MB, free: 4.043 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00039/0.233, allocations: 143.8 kB / 351.4 MB, free: 3.902 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009594/0.2339, allocations: 254 kB / 351.7 MB, free: 3.652 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001866/0.2341, allocations: 51.58 kB / 351.7 MB, free: 3.598 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.088e-05/0.2341, allocations: 12 kB / 351.7 MB, free: 3.586 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001203/0.2353, allocations: 1.433 MB / 353.2 MB, free: 2.051 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-05/0.2354, allocations: 7.281 kB / 353.2 MB, free: 2.047 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001294/0.2366, allocations: 1.217 MB / 354.4 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002839/0.2369, allocations: 16 kB / 354.4 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004323/0.2374, allocations: 20.06 kB / 354.4 MB, free: 0.75 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.016e-05/0.2374, allocations: 51.84 kB / 354.5 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.307e-05/0.2375, allocations: 31.98 kB / 354.5 MB, free: 0.668 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009348/0.2384, allocations: 1.032 MB / 355.6 MB, free: 15.64 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2384, allocations: 0 / 355.6 MB, free: 15.64 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002527/0.2409, allocations: 0.8007 MB / 356.4 MB, free: 14.84 MB / 330.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.0003136/0.2413, allocations: 164 kB / 356.5 MB, free: 14.67 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002569/0.2438, allocations: 1.935 MB / 358.4 MB, free: 12.74 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001896/0.244, allocations: 100.2 kB / 358.5 MB, free: 12.63 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007484/0.2448, allocations: 340.4 kB / 358.9 MB, free: 12.29 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001825/0.2466, allocations: 0.6826 MB / 359.6 MB, free: 11.61 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0112/0.2578, allocations: 5.886 MB / 365.4 MB, free: 5.645 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00176/0.2595, allocations: 0.9865 MB / 366.4 MB, free: 4.645 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001362/0.2609, allocations: 431 kB / 366.9 MB, free: 4.219 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007471/0.2617, allocations: 465.2 kB / 367.3 MB, free: 3.762 MB / 330.7 MB Notification: Performance of SimCode: time 2.645e-06/0.2617, allocations: 0 / 367.3 MB, free: 3.762 MB / 330.7 MB Notification: Performance of Templates: time 0.04409/0.3057, allocations: 22.58 MB / 389.9 MB, free: 13.46 MB / 362.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 -ignoreHideResult -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.4207672104239464]