Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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.001451/0.001451, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.001517/0.001517, allocations: 161.4 kB / 24.56 MB, free: 20 kB / 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.9629/0.9629, allocations: 177.1 MB / 205 MB, free: 5.285 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.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 0 / 273 MB, free: 1.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.915e-05/2.101e-05, allocations: 5.828 kB / 273 MB, free: 1.375 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.005874/0.005895, allocations: 6.969 MB / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004007/0.009901, allocations: 3.103 MB / 283.1 MB, free: 7.262 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004233/0.01032, allocations: 39.81 kB / 283.1 MB, free: 7.223 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001149/0.01147, allocations: 0.8326 MB / 283.9 MB, free: 6.387 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001667/0.01314, allocations: 1.373 MB / 285.3 MB, free: 5.008 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005501/0.01369, allocations: 0.5377 MB / 285.8 MB, free: 4.469 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00185/0.01554, allocations: 2.913 MB / 288.7 MB, free: 1.551 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009318/0.01647, allocations: 1.379 MB / 290.1 MB, free: 156 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1274/0.1438, allocations: 1.184 MB / 291.3 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001864/0.1457, allocations: 1.294 MB / 292.6 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004051/0.1461, allocations: 139.3 kB / 292.7 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001369/0.1475, allocations: 0.8119 MB / 293.6 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008903/0.1484, allocations: 1.054 MB / 294.6 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008679/0.1492, allocations: 0.6353 MB / 295.2 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003015/0.1522, allocations: 2.737 MB / 298 MB, free: 15.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.1522, allocations: 1.031 kB / 298 MB, free: 15.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1522, allocations: 0 / 298 MB, free: 15.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.176e-05/0.1523, allocations: 1.312 kB / 298 MB, free: 15.29 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.003791/0.1561, allocations: 3.178 MB / 301.2 MB, free: 13.94 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.1561, allocations: 8.25 kB / 301.2 MB, free: 13.94 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003629/0.1598, allocations: 1.986 MB / 303.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001321/0.1611, allocations: 1.155 MB / 304.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.18e-05/0.1611, allocations: 115.3 kB / 304.4 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002145/0.1614, allocations: 153.7 kB / 304.6 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003399/0.1648, allocations: 3.897 MB / 308.5 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.459e-05/0.1648, allocations: 30.22 kB / 308.5 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001623/0.165, allocations: 77.52 kB / 308.6 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001245/0.1662, allocations: 1.434 MB / 310 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00322/0.1694, allocations: 2.11 MB / 312.1 MB, free: 9.008 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01615/0.1856, allocations: 30.46 MB / 342.6 MB, free: 9.852 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001881/0.1875, allocations: 0.907 MB / 343.5 MB, free: 8.906 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004272/0.1879, allocations: 334.9 kB / 343.8 MB, free: 8.566 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.495e-05/0.1879, allocations: 20.56 kB / 343.8 MB, free: 8.547 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.188, allocations: 44.02 kB / 343.9 MB, free: 8.496 MB / 298.7 MB Notification: Performance of pre-optimization done (n=98): time 2.524e-06/0.188, allocations: 0 / 343.9 MB, free: 8.496 MB / 298.7 MB Notification: Performance of matching and sorting (n=106): time 0.01148/0.1994, allocations: 6.172 MB / 350 MB, free: 2.277 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.784e-05/0.1995, allocations: 136.5 kB / 350.2 MB, free: 2.113 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002709/0.2022, allocations: 2.508 MB / 352.7 MB, free: 15.56 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.937e-05/0.2023, allocations: 41.7 kB / 352.7 MB, free: 15.52 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001521/0.2038, allocations: 2.291 MB / 355 MB, free: 13.23 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003433/0.2041, allocations: 475.3 kB / 355.5 MB, free: 12.78 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00103/0.2052, allocations: 0.9608 MB / 356.4 MB, free: 11.8 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.2053, allocations: 0.5277 MB / 357 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009041/0.2062, allocations: 456.5 kB / 357.4 MB, free: 10.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003223/0.2095, allocations: 4.647 MB / 362.1 MB, free: 4.227 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004718/0.2142, allocations: 5.636 MB / 367.7 MB, free: 12.67 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.899e-05/0.2142, allocations: 28 kB / 367.7 MB, free: 12.64 MB / 330.7 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.006459/0.2207, allocations: 4.236 MB / 372 MB, free: 8.402 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.663e-05/0.2207, allocations: 48.78 kB / 372 MB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.2e-05/0.2208, allocations: 104 kB / 372.1 MB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00171/0.2225, allocations: 0.5575 MB / 372.7 MB, free: 7.691 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002129/0.2246, allocations: 0.9901 MB / 373.7 MB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003079/0.2277, allocations: 2.988 MB / 376.6 MB, free: 3.605 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002035/0.2298, allocations: 287.6 kB / 376.9 MB, free: 3.324 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003079/0.2301, allocations: 278.5 kB / 377.2 MB, free: 3.055 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 459 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[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 (537): * Single equations (assignments): 533 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008479/0.2309, allocations: 0.5195 MB / 377.7 MB, free: 2.52 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003102/0.2312, allocations: 242.5 kB / 378 MB, free: 2.281 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002182/0.2334, allocations: 1.086 MB / 379 MB, free: 1.188 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.541e-05/0.2334, allocations: 12 kB / 379.1 MB, free: 1.176 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.617e-06/0.2334, allocations: 4 kB / 379.1 MB, free: 1.172 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.2334, allocations: 3.984 kB / 379.1 MB, free: 1.168 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005903/0.2393, allocations: 3.408 MB / 382.5 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.2393, allocations: 0 / 382.5 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004365/0.2398, allocations: 139.8 kB / 382.6 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001274/0.2411, allocations: 426.8 kB / 383 MB, free: 13.15 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.119e-05/0.2411, allocations: 23.5 kB / 383 MB, free: 13.13 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002206/0.2433, allocations: 2.464 MB / 385.5 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2433, allocations: 0 / 385.5 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002476/0.2458, allocations: 2.005 MB / 387.5 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002095/0.246, allocations: 214.4 kB / 387.7 MB, free: 8.289 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001214/0.2461, allocations: 17.48 kB / 387.7 MB, free: 8.273 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004918/0.2466, allocations: 91.8 kB / 387.8 MB, free: 8.184 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.691e-05/0.2467, allocations: 59.83 kB / 387.9 MB, free: 8.125 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.596e-05/0.2468, allocations: 31.98 kB / 387.9 MB, free: 8.094 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001037/0.2478, allocations: 1.046 MB / 389 MB, free: 7.031 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2478, allocations: 0 / 389 MB, free: 7.031 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002191/0.25, allocations: 0.709 MB / 389.7 MB, free: 6.324 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (75): * Single equations (assignments): 71 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002884/0.2503, allocations: 158 kB / 389.8 MB, free: 6.164 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002381/0.2527, allocations: 2.193 MB / 392 MB, free: 3.961 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2527, allocations: 0 / 392 MB, free: 3.961 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000521/0.2532, allocations: 0.5368 MB / 392.6 MB, free: 3.406 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008753/0.2541, allocations: 232.5 kB / 392.8 MB, free: 3.184 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004758/0.2588, allocations: 4.399 MB / 397.2 MB, free: 14.71 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005467/0.2594, allocations: 0.7294 MB / 397.9 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001469/0.2608, allocations: 1.197 MB / 399.1 MB, free: 12.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002421/0.2611, allocations: 156.5 kB / 399.3 MB, free: 12.6 MB / 362.7 MB Notification: Performance of SimCode: time 7.72e-07/0.2611, allocations: 0 / 399.3 MB, free: 12.6 MB / 362.7 MB Notification: Performance of Templates: time 0.02554/0.2866, allocations: 19.65 MB / 418.9 MB, free: 9.312 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.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.754978386685252]