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.0009032/0.0009032, allocations: 80.92 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.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.001648/0.001648, allocations: 168.2 kB / 24.91 MB, free: 9.152 MB / 18.57 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 0.9537/0.9537, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] 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.793e-06/1.793e-06, allocations: 0 / 273.5 MB, free: 1.309 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.949e-05/2.128e-05, allocations: 2.312 kB / 273.5 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.0109/0.01092, allocations: 9.673 MB / 283.1 MB, free: 7.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007971/0.01889, allocations: 3.82 MB / 286.9 MB, free: 3.758 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001359/0.02025, allocations: 67.69 kB / 287 MB, free: 3.691 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003283/0.02353, allocations: 2.083 MB / 289.1 MB, free: 1.602 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1107/0.1342, allocations: 1.739 MB / 290.8 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001186/0.1354, allocations: 0.6691 MB / 291.5 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00338/0.1388, allocations: 3.748 MB / 295.3 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002475/0.1412, allocations: 2.527 MB / 297.8 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002137/0.1434, allocations: 1.942 MB / 299.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001699/0.1451, allocations: 1.746 MB / 301.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003728/0.1454, allocations: 256.5 kB / 301.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001054/0.1465, allocations: 0.9652 MB / 302.7 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007748/0.1473, allocations: 1.667 MB / 304.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006265/0.1479, allocations: 1.03 MB / 305.4 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00206/0.15, allocations: 3.801 MB / 309.2 MB, free: 10.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.15, allocations: 0 / 309.2 MB, free: 10.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.15, allocations: 4.031 kB / 309.2 MB, free: 10.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.084e-05/0.15, allocations: 3.281 kB / 309.2 MB, free: 10.68 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.0028/0.1528, allocations: 3.746 MB / 312.9 MB, free: 7.926 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.012e-05/0.1528, allocations: 8.031 kB / 312.9 MB, free: 7.918 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001993/0.1548, allocations: 0.942 MB / 313.9 MB, free: 7.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001217/0.156, allocations: 1.47 MB / 315.4 MB, free: 5.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.523e-05/0.1561, allocations: 198.1 kB / 315.5 MB, free: 5.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002439/0.1563, allocations: 250.5 kB / 315.8 MB, free: 5.289 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003024/0.1594, allocations: 4.234 MB / 320 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.46e-05/0.1594, allocations: 38.7 kB / 320.1 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001899/0.1596, allocations: 125 kB / 320.2 MB, free: 0.668 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001113/0.1607, allocations: 1.473 MB / 321.7 MB, free: 15.23 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002947/0.1637, allocations: 2.103 MB / 323.8 MB, free: 13.31 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01847/0.1821, allocations: 27.43 MB / 351.2 MB, free: 1.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00332/0.1855, allocations: 1.302 MB / 352.5 MB, free: 0.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004158/0.1859, allocations: 282.5 kB / 352.8 MB, free: 228 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00413/0.19, allocations: 2.986 MB / 355.8 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.19, allocations: 49.81 kB / 355.8 MB, free: 13.2 MB / 314.7 MB Notification: Performance of pre-optimization done (n=103): time 3.036e-06/0.19, allocations: 0 / 355.8 MB, free: 13.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.007647/0.1977, allocations: 2.676 MB / 358.5 MB, free: 10.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/0.1977, allocations: 139.6 kB / 358.6 MB, free: 10.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002485/0.2002, allocations: 2.897 MB / 361.5 MB, free: 7.965 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.285e-05/0.2003, allocations: 41.7 kB / 361.6 MB, free: 7.918 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001328/0.2016, allocations: 2.758 MB / 364.3 MB, free: 5.258 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005203/0.2021, allocations: 464.7 kB / 364.8 MB, free: 4.801 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009713/0.2031, allocations: 1.013 MB / 365.8 MB, free: 3.777 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.751e-05/0.2032, allocations: 301.1 kB / 366.1 MB, free: 3.48 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001112/0.2043, allocations: 0.6152 MB / 366.7 MB, free: 2.859 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002959/0.2072, allocations: 4.01 MB / 370.7 MB, free: 13.11 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004108/0.2113, allocations: 5.122 MB / 375.8 MB, free: 6.32 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.363e-05/0.2114, allocations: 36 kB / 375.9 MB, free: 6.285 MB / 330.7 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.004357/0.2157, allocations: 3.586 MB / 379.4 MB, free: 2.699 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.274e-05/0.2158, allocations: 63.98 kB / 379.5 MB, free: 2.637 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.666e-05/0.2159, allocations: 128 kB / 379.6 MB, free: 2.512 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000128/0.216, allocations: 164 kB / 379.8 MB, free: 2.352 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002582/0.2186, allocations: 1.213 MB / 381 MB, free: 1.137 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001519/0.2188, allocations: 243.6 kB / 381.2 MB, free: 0.8984 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002176/0.2209, allocations: 243.7 kB / 381.5 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003012/0.2212, allocations: 292 kB / 381.8 MB, free: 384 kB / 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.0008465/0.2221, allocations: 0.5719 MB / 382.3 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002813/0.2224, allocations: 175.8 kB / 382.5 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009597/0.2233, allocations: 0.4933 MB / 383 MB, free: 15.1 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/0.2233, allocations: 12 kB / 383 MB, free: 15.09 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.2233, allocations: 4 kB / 383 MB, free: 15.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.2234, allocations: 3.984 kB / 383 MB, free: 15.08 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003256/0.2266, allocations: 2.194 MB / 385.2 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.2266, allocations: 0 / 385.2 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004181/0.227, allocations: 127.8 kB / 385.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001839/0.2272, allocations: 55.78 kB / 385.4 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.426e-05/0.2273, allocations: 12 kB / 385.4 MB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001065/0.2283, allocations: 1.426 MB / 386.8 MB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.2283, allocations: 3.938 kB / 386.8 MB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.2295, allocations: 1.21 MB / 388 MB, free: 9.848 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002953/0.2298, allocations: 265.8 kB / 388.3 MB, free: 9.586 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002248/0.23, allocations: 20 kB / 388.3 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005972/0.2306, allocations: 23.92 kB / 388.3 MB, free: 9.543 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.038e-05/0.2307, allocations: 51.91 kB / 388.4 MB, free: 9.492 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.778e-05/0.2308, allocations: 20 kB / 388.4 MB, free: 9.473 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001032/0.2318, allocations: 1.032 MB / 389.4 MB, free: 8.441 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2318, allocations: 0 / 389.4 MB, free: 8.441 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003156/0.235, allocations: 0.7851 MB / 390.2 MB, free: 7.656 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.0002636/0.2352, allocations: 136.1 kB / 390.4 MB, free: 7.516 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002092/0.2373, allocations: 1.947 MB / 392.3 MB, free: 5.582 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001764/0.2375, allocations: 92.91 kB / 392.4 MB, free: 5.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000458/0.2379, allocations: 340.6 kB / 392.7 MB, free: 5.137 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00155/0.2395, allocations: 0.4976 MB / 393.2 MB, free: 4.648 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006192/0.2457, allocations: 5.749 MB / 399 MB, free: 14.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007867/0.2465, allocations: 0.9933 MB / 400 MB, free: 13.8 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008041/0.2473, allocations: 423.1 kB / 400.4 MB, free: 13.38 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005506/0.2478, allocations: 465.2 kB / 400.8 MB, free: 12.93 MB / 362.7 MB Notification: Performance of SimCode: time 1.072e-06/0.2478, allocations: 0 / 400.8 MB, free: 12.93 MB / 362.7 MB Notification: Performance of Templates: time 0.03209/0.2799, allocations: 21.85 MB / 422.7 MB, free: 7.363 MB / 378.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) [Timeout 240] 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","",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.4005874791182578]