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.0009365/0.0009365, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001081/0.001081, allocations: 172.2 kB / 24.82 MB, free: 9.312 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.9853/0.9853, allocations: 177.1 MB / 205.3 MB, free: 5.504 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.252e-06/1.252e-06, allocations: 0 / 273.4 MB, free: 1.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.203e-05/1.329e-05, allocations: 2.312 kB / 273.4 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.007484/0.007498, allocations: 9.661 MB / 283.1 MB, free: 7.586 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004725/0.01222, allocations: 3.693 MB / 286.8 MB, free: 3.883 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004891/0.01271, allocations: 67.69 kB / 286.8 MB, free: 3.816 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001902/0.01461, allocations: 2.055 MB / 288.9 MB, free: 1.754 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1101/0.1247, allocations: 1.747 MB / 290.6 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001374/0.126, allocations: 0.6508 MB / 291.3 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003847/0.1299, allocations: 3.752 MB / 295 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002475/0.1324, allocations: 2.458 MB / 297.5 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002268/0.1346, allocations: 1.945 MB / 299.4 MB, free: 14 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001936/0.1366, allocations: 1.832 MB / 301.3 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004307/0.137, allocations: 256.5 kB / 301.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001177/0.1382, allocations: 0.9664 MB / 302.5 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007844/0.139, allocations: 1.673 MB / 304.2 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007528/0.1397, allocations: 1.035 MB / 305.2 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002466/0.1422, allocations: 3.793 MB / 309 MB, free: 10.83 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1422, allocations: 1.5 kB / 309 MB, free: 10.83 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1422, allocations: 0 / 309 MB, free: 10.83 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.261e-05/0.1422, allocations: 0 / 309 MB, free: 10.83 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.003298/0.1455, allocations: 4.257 MB / 313.2 MB, free: 7.578 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.1456, allocations: 9.188 kB / 313.3 MB, free: 7.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002348/0.1479, allocations: 1.281 MB / 314.5 MB, free: 6.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001228/0.1491, allocations: 1.606 MB / 316.1 MB, free: 4.828 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.74e-05/0.1492, allocations: 195.1 kB / 316.3 MB, free: 4.668 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002225/0.1494, allocations: 254.8 kB / 316.6 MB, free: 4.453 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003557/0.153, allocations: 4.775 MB / 321.4 MB, free: 15.16 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.869e-05/0.153, allocations: 38.89 kB / 321.4 MB, free: 15.14 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002061/0.1533, allocations: 127.8 kB / 321.5 MB, free: 15.05 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001199/0.1545, allocations: 1.466 MB / 323 MB, free: 13.61 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00316/0.1576, allocations: 2.082 MB / 325.1 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0189/0.1765, allocations: 38.43 MB / 363.5 MB, free: 5.098 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00254/0.1791, allocations: 1.333 MB / 364.8 MB, free: 3.734 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003365/0.1794, allocations: 350.3 kB / 365.2 MB, free: 3.391 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003066/0.1825, allocations: 3.249 MB / 368.4 MB, free: 168 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.577e-05/0.1825, allocations: 45.88 kB / 368.5 MB, free: 112 kB / 314.7 MB Notification: Performance of pre-optimization done (n=103): time 2.195e-06/0.1825, allocations: 0 / 368.5 MB, free: 112 kB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.005948/0.1884, allocations: 3.108 MB / 371.6 MB, free: 12.98 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.495e-05/0.1885, allocations: 141 kB / 371.7 MB, free: 12.81 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002464/0.1909, allocations: 3.242 MB / 374.9 MB, free: 10.07 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.39e-05/0.191, allocations: 37.7 kB / 375 MB, free: 10.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001678/0.1927, allocations: 3.101 MB / 378.1 MB, free: 6.953 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002928/0.193, allocations: 488.7 kB / 378.6 MB, free: 6.473 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009254/0.1939, allocations: 1.187 MB / 379.8 MB, free: 5.273 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.194, allocations: 476.8 kB / 380.2 MB, free: 4.805 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006413/0.1946, allocations: 446.2 kB / 380.7 MB, free: 4.363 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003074/0.1977, allocations: 5.713 MB / 386.4 MB, free: 12.26 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004752/0.2025, allocations: 6.769 MB / 393.1 MB, free: 3.168 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.053e-05/0.2025, allocations: 36 kB / 393.2 MB, free: 3.133 MB / 346.7 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.004309/0.2068, allocations: 4.229 MB / 397.4 MB, free: 14.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.672e-05/0.2069, allocations: 56 kB / 397.5 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.863e-05/0.2069, allocations: 132 kB / 397.6 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.265e-05/0.207, allocations: 168 kB / 397.7 MB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001751/0.2088, allocations: 1.216 MB / 399 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001116/0.2089, allocations: 247 kB / 399.2 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001453/0.2104, allocations: 239.7 kB / 399.4 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002133/0.2106, allocations: 292 kB / 399.7 MB, free: 12.58 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.0007149/0.2113, allocations: 0.607 MB / 400.3 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002413/0.2115, allocations: 314 kB / 400.6 MB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008735/0.2124, allocations: 0.5586 MB / 401.2 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.2124, allocations: 12 kB / 401.2 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.2124, allocations: 4 kB / 401.2 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.2124, allocations: 7.172 kB / 401.2 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002771/0.2152, allocations: 2.382 MB / 403.6 MB, free: 8.594 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.2152, allocations: 4.156 kB / 403.6 MB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002886/0.2155, allocations: 123.8 kB / 403.7 MB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000151/0.2156, allocations: 43.64 kB / 403.8 MB, free: 8.422 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.262e-05/0.2157, allocations: 20 kB / 403.8 MB, free: 8.402 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008782/0.2165, allocations: 1.799 MB / 405.6 MB, free: 6.488 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.2166, allocations: 5.875 kB / 405.6 MB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.2177, allocations: 1.448 MB / 407 MB, free: 4.984 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002212/0.2179, allocations: 269.9 kB / 407.3 MB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001333/0.218, allocations: 12 kB / 407.3 MB, free: 4.707 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003977/0.2184, allocations: 16 kB / 407.3 MB, free: 4.691 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.487e-05/0.2185, allocations: 55.91 kB / 407.4 MB, free: 4.637 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.589e-05/0.2185, allocations: 31.98 kB / 407.4 MB, free: 4.605 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001254/0.2198, allocations: 1.281 MB / 408.7 MB, free: 3.328 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2198, allocations: 0 / 408.7 MB, free: 3.328 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002023/0.2218, allocations: 0.7889 MB / 409.5 MB, free: 2.539 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.0002373/0.222, allocations: 167 kB / 409.7 MB, free: 2.367 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001887/0.2239, allocations: 2.095 MB / 411.7 MB, free: 296 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.2239, allocations: 0 / 411.7 MB, free: 296 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004162/0.2244, allocations: 434.5 kB / 412.2 MB, free: 15.85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009827/0.2253, allocations: 343.4 kB / 412.5 MB, free: 15.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006577/0.2319, allocations: 5.784 MB / 418.3 MB, free: 9.641 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007688/0.2327, allocations: 1.001 MB / 419.3 MB, free: 8.621 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008678/0.2335, allocations: 419.1 kB / 419.7 MB, free: 8.207 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005849/0.2341, allocations: 0.502 MB / 420.2 MB, free: 7.703 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.2341, allocations: 0 / 420.2 MB, free: 7.703 MB / 378.7 MB Notification: Performance of Templates: time 0.03328/0.2674, allocations: 21.92 MB / 442.1 MB, free: 2.078 MB / 394.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.5514205610379577]