Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.0008946/0.0008946, 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.0009071/0.0009071, allocations: 148.6 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.9777/0.9777, allocations: 173.4 MB / 201.5 MB, free: 8.723 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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.32e-07/9.32e-07, allocations: 3.938 kB / 268.5 MB, free: 5.965 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.017e-06/9.949e-06, allocations: 6.109 kB / 268.5 MB, free: 5.961 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.007304/0.007314, allocations: 9.807 MB / 278.3 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005762/0.01308, allocations: 3.904 MB / 282.2 MB, free: 8.188 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006408/0.01372, allocations: 63.69 kB / 282.3 MB, free: 8.125 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002057/0.01577, allocations: 2.191 MB / 284.5 MB, free: 5.926 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002286/0.01806, allocations: 1.73 MB / 286.2 MB, free: 4.188 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008723/0.01893, allocations: 0.7366 MB / 287 MB, free: 3.449 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.09905/0.118, allocations: 3.704 MB / 290.7 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002783/0.1208, allocations: 2.504 MB / 293.2 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002266/0.123, allocations: 1.96 MB / 295.1 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002186/0.1252, allocations: 1.766 MB / 296.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005208/0.1257, allocations: 259.9 kB / 297.1 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001451/0.1272, allocations: 1.091 MB / 298.2 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009549/0.1281, allocations: 1.688 MB / 299.9 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001057/0.1292, allocations: 1.064 MB / 301 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003061/0.1323, allocations: 4.024 MB / 305 MB, free: 13.74 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.1323, allocations: 2.469 kB / 305 MB, free: 13.74 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1323, allocations: 0 / 305 MB, free: 13.74 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.45e-05/0.1323, allocations: 2.391 kB / 305 MB, free: 13.74 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.003132/0.1355, allocations: 3.846 MB / 308.9 MB, free: 11.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.721e-05/0.1355, allocations: 10.8 kB / 308.9 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002285/0.1378, allocations: 1.024 MB / 309.9 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001207/0.139, allocations: 1.426 MB / 311.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.747e-05/0.1391, allocations: 202.6 kB / 311.5 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002683/0.1393, allocations: 279.4 kB / 311.8 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004091/0.1434, allocations: 4.67 MB / 316.5 MB, free: 6.941 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.446e-05/0.1435, allocations: 44.75 kB / 316.5 MB, free: 6.918 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001923/0.1437, allocations: 129.6 kB / 316.6 MB, free: 6.824 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001016/0.1447, allocations: 1.582 MB / 318.2 MB, free: 5.273 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003497/0.1482, allocations: 2.401 MB / 320.6 MB, free: 3.078 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01707/0.1653, allocations: 28.88 MB / 349.5 MB, free: 6.141 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003385/0.1686, allocations: 1.782 MB / 351.3 MB, free: 4.375 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004667/0.1691, allocations: 397.6 kB / 351.7 MB, free: 3.988 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003697/0.1728, allocations: 3.394 MB / 355.1 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.945e-05/0.1728, allocations: 50.97 kB / 355.1 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of pre-optimization done (n=135): time 2.314e-06/0.1728, allocations: 4 kB / 355.1 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of matching and sorting (n=145): time 0.01024/0.1831, allocations: 4.786 MB / 359.9 MB, free: 11.8 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.913e-05/0.1831, allocations: 141.5 kB / 360 MB, free: 11.63 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001842/0.185, allocations: 2.788 MB / 362.8 MB, free: 9.324 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.417e-05/0.185, allocations: 45.7 kB / 362.9 MB, free: 9.273 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00128/0.1863, allocations: 2.799 MB / 365.7 MB, free: 6.617 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002989/0.1866, allocations: 0.6085 MB / 366.3 MB, free: 6.039 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007877/0.1874, allocations: 1.064 MB / 367.3 MB, free: 5.086 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.925e-05/0.1875, allocations: 305.1 kB / 367.6 MB, free: 4.785 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009536/0.1884, allocations: 0.6784 MB / 368.3 MB, free: 4.102 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002552/0.191, allocations: 4.12 MB / 372.4 MB, free: 14.39 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003962/0.1949, allocations: 5.324 MB / 377.8 MB, free: 7.457 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-05/0.195, allocations: 36 kB / 377.8 MB, free: 7.422 MB / 330.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.004155/0.1991, allocations: 3.85 MB / 381.7 MB, free: 3.559 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.192e-05/0.1992, allocations: 68.14 kB / 381.7 MB, free: 3.492 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.455e-05/0.1993, allocations: 135.9 kB / 381.9 MB, free: 3.359 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004883/0.1998, allocations: 287.5 kB / 382.1 MB, free: 3.074 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002373/0.2021, allocations: 1.326 MB / 383.5 MB, free: 1.746 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0014/0.2035, allocations: 1.918 MB / 385.4 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001797/0.2053, allocations: 251.7 kB / 385.6 MB, free: 15.49 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000249/0.2056, allocations: 300 kB / 385.9 MB, free: 15.2 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (706): * Single equations (assignments): 702 * 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 {(2,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001107/0.2067, allocations: 0.5952 MB / 386.5 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002526/0.2069, allocations: 179.8 kB / 386.7 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000943/0.2079, allocations: 0.7525 MB / 387.4 MB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.665e-05/0.2079, allocations: 16 kB / 387.5 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.2079, allocations: 8 kB / 387.5 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.918e-06/0.2079, allocations: 7.969 kB / 387.5 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004442/0.2124, allocations: 3.357 MB / 390.8 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.303e-06/0.2124, allocations: 7.938 kB / 390.8 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004759/0.2128, allocations: 215.7 kB / 391 MB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005016/0.2133, allocations: 288.3 kB / 391.3 MB, free: 9.609 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.025e-05/0.2134, allocations: 36.05 kB / 391.4 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001145/0.2145, allocations: 1.691 MB / 393.1 MB, free: 7.785 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/0.2146, allocations: 15.88 kB / 393.1 MB, free: 7.77 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001492/0.216, allocations: 1.673 MB / 394.7 MB, free: 5.988 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002329/0.2163, allocations: 261.9 kB / 395 MB, free: 5.73 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001745/0.2165, allocations: 31.98 kB / 395 MB, free: 5.699 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004939/0.2169, allocations: 31.98 kB / 395.1 MB, free: 5.668 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.2171, allocations: 108.2 kB / 395.2 MB, free: 5.562 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.62e-05/0.2171, allocations: 43.98 kB / 395.2 MB, free: 5.52 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008176/0.2179, allocations: 0.9849 MB / 396.2 MB, free: 4.531 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2179, allocations: 0 / 396.2 MB, free: 4.531 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002475/0.2204, allocations: 0.871 MB / 397.1 MB, free: 3.66 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (121): * Single equations (assignments): 117 * 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 {(2,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005562/0.221, allocations: 184 kB / 397.2 MB, free: 3.469 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002231/0.2232, allocations: 2.291 MB / 399.5 MB, free: 1.18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001481/0.2234, allocations: 92.16 kB / 399.6 MB, free: 1.078 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004673/0.2238, allocations: 0.4949 MB / 400.1 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001256/0.2251, allocations: 0.4927 MB / 400.6 MB, free: 76 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006896/0.232, allocations: 6.328 MB / 406.9 MB, free: 9.59 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008621/0.2328, allocations: 1.02 MB / 408 MB, free: 8.547 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009386/0.2338, allocations: 452.1 kB / 408.4 MB, free: 8.102 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006051/0.2344, allocations: 481.2 kB / 408.9 MB, free: 7.629 MB / 362.7 MB Notification: Performance of SimCode: time 1.192e-06/0.2344, allocations: 0 / 408.9 MB, free: 7.629 MB / 362.7 MB Notification: Performance of Templates: time 0.03733/0.2717, allocations: 23.89 MB / 432.8 MB, free: 0 / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.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.479323134291917]