Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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.001193/0.001193, allocations: 79.91 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.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.001247/0.001247, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.9441/0.9441, allocations: 173.3 MB / 201.1 MB, free: 9.32 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.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 268 MB, free: 6.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.315e-05/1.452e-05, allocations: 2.312 kB / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.005852/0.005867, allocations: 6.989 MB / 275 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004174/0.01004, allocations: 3.095 MB / 278.1 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003559/0.0104, allocations: 39.81 kB / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001106/0.0115, allocations: 0.8365 MB / 279 MB, free: 11.4 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001737/0.01324, allocations: 1.408 MB / 280.4 MB, free: 9.988 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006166/0.01386, allocations: 0.5377 MB / 280.9 MB, free: 9.449 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001927/0.01578, allocations: 2.85 MB / 283.7 MB, free: 6.594 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001166/0.01695, allocations: 1.395 MB / 285.1 MB, free: 5.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001022/0.01797, allocations: 1.231 MB / 286.4 MB, free: 3.945 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001036/0.01901, allocations: 1.282 MB / 287.7 MB, free: 2.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001678/0.01918, allocations: 136 kB / 287.8 MB, free: 2.527 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008119/0.01999, allocations: 0.8227 MB / 288.6 MB, free: 1.703 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005852/0.02057, allocations: 1.075 MB / 289.7 MB, free: 0.625 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1159/0.1365, allocations: 0.6388 MB / 290.3 MB, free: 19.06 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00458/0.1411, allocations: 2.771 MB / 293.1 MB, free: 18.86 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1411, allocations: 0 / 293.1 MB, free: 18.86 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1411, allocations: 0.6094 kB / 293.1 MB, free: 18.86 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001411/0.1412, allocations: 2.953 kB / 293.1 MB, free: 18.86 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.006091/0.1473, allocations: 3.203 MB / 296.3 MB, free: 17.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.1474, allocations: 10.31 kB / 296.3 MB, free: 17.5 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004192/0.1516, allocations: 1.989 MB / 298.3 MB, free: 17.31 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001887/0.1535, allocations: 1.173 MB / 299.5 MB, free: 16.98 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.975e-05/0.1535, allocations: 116.6 kB / 299.6 MB, free: 16.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002653/0.1538, allocations: 159.3 kB / 299.7 MB, free: 16.97 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005025/0.1588, allocations: 3.881 MB / 303.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.467e-05/0.1589, allocations: 27.56 kB / 303.7 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001911/0.1591, allocations: 81.25 kB / 303.7 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001276/0.1604, allocations: 1.378 MB / 305.1 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003864/0.1642, allocations: 2.005 MB / 307.1 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01835/0.1826, allocations: 30.6 MB / 337.7 MB, free: 2.395 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001835/0.1844, allocations: 0.8095 MB / 338.5 MB, free: 1.547 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003247/0.1847, allocations: 250 kB / 338.8 MB, free: 1.289 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00268/0.1874, allocations: 2.157 MB / 340.9 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.1875, allocations: 49.19 kB / 341 MB, free: 15.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=74): time 3.807e-06/0.1875, allocations: 0 / 341 MB, free: 15.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=75): time 0.005414/0.1929, allocations: 3.659 MB / 344.6 MB, free: 11.37 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.215e-05/0.1929, allocations: 136 kB / 344.8 MB, free: 11.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002638/0.1956, allocations: 2.57 MB / 347.3 MB, free: 8.609 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.874e-05/0.1956, allocations: 33.7 kB / 347.4 MB, free: 8.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001187/0.1968, allocations: 2.374 MB / 349.7 MB, free: 6.223 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002653/0.197, allocations: 366.8 kB / 350.1 MB, free: 5.867 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000802/0.1979, allocations: 0.9538 MB / 351.1 MB, free: 4.898 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.198, allocations: 0.5238 MB / 351.6 MB, free: 4.367 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006665/0.1987, allocations: 400.3 kB / 352 MB, free: 3.969 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002594/0.2013, allocations: 4.741 MB / 356.7 MB, free: 13.24 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00423/0.2055, allocations: 5.669 MB / 362.4 MB, free: 5.605 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-05/0.2056, allocations: 32 kB / 362.4 MB, free: 5.574 MB / 314.7 MB Notification: Performance of matching and sorting (n=562) (initialization): time 0.004671/0.2102, allocations: 3.71 MB / 366.1 MB, free: 1.859 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.311e-05/0.2103, allocations: 52 kB / 366.2 MB, free: 1.809 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.351e-05/0.2104, allocations: 108.8 kB / 366.3 MB, free: 1.703 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003298/0.2107, allocations: 179.6 kB / 366.5 MB, free: 1.523 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001637/0.2123, allocations: 0.9942 MB / 367.4 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001217/0.2136, allocations: 2.006 MB / 369.5 MB, free: 14.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001767/0.2153, allocations: 271.6 kB / 369.7 MB, free: 14.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002298/0.2156, allocations: 287.2 kB / 370 MB, free: 13.85 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 479 * 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 (536): * Single equations (assignments): 532 * 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 prepare postOptimizeDAE: time 0.0008592/0.2164, allocations: 0.5157 MB / 370.5 MB, free: 13.32 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002423/0.2167, allocations: 230.5 kB / 370.7 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005184/0.2172, allocations: 396.1 kB / 371.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.2172, allocations: 8 kB / 371.1 MB, free: 12.69 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.2172, allocations: 1.188 kB / 371.1 MB, free: 12.69 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.2172, allocations: 7.984 kB / 371.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003119/0.2203, allocations: 2.274 MB / 373.4 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.2203, allocations: 0 / 373.4 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002413/0.2206, allocations: 99.81 kB / 373.5 MB, free: 10.24 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001429/0.2207, allocations: 51.52 kB / 373.6 MB, free: 10.19 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.502e-05/0.2208, allocations: 15.98 kB / 373.6 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000918/0.2217, allocations: 1.818 MB / 375.4 MB, free: 8.242 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.2217, allocations: 0 / 375.4 MB, free: 8.242 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001174/0.2228, allocations: 1.288 MB / 376.7 MB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002629/0.2231, allocations: 206.4 kB / 376.9 MB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001276/0.2232, allocations: 12 kB / 376.9 MB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004121/0.2236, allocations: 55.91 kB / 377 MB, free: 6.637 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.419e-05/0.2237, allocations: 41.98 kB / 377 MB, free: 6.598 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.581e-05/0.2238, allocations: 27.98 kB / 377 MB, free: 6.57 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001175/0.2249, allocations: 1.072 MB / 378.1 MB, free: 5.484 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2249, allocations: 32 / 378.1 MB, free: 5.484 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002447/0.2274, allocations: 0.6327 MB / 378.7 MB, free: 4.852 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 (51): * Single equations (assignments): 47 * 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.0003044/0.2277, allocations: 159.7 kB / 378.9 MB, free: 4.688 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002561/0.2302, allocations: 1.966 MB / 380.9 MB, free: 2.719 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.2303, allocations: 0 / 380.9 MB, free: 2.719 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003467/0.2306, allocations: 388.2 kB / 381.2 MB, free: 2.32 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008795/0.2315, allocations: 230.3 kB / 381.5 MB, free: 2.102 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005561/0.237, allocations: 4.221 MB / 385.7 MB, free: 13.79 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006102/0.2376, allocations: 0.7124 MB / 386.4 MB, free: 13.05 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001736/0.2394, allocations: 1.179 MB / 387.6 MB, free: 11.87 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002338/0.2396, allocations: 140.5 kB / 387.7 MB, free: 11.73 MB / 346.7 MB Notification: Performance of SimCode: time 1.132e-06/0.2396, allocations: 4 kB / 387.7 MB, free: 11.73 MB / 346.7 MB Notification: Performance of Templates: time 0.02426/0.2639, allocations: 14.62 MB / 402.3 MB, free: 13.51 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.3346001440659165]