Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001436/0.001436, allocations: 80.8 kB / 22.29 MB, free: 2.203 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.001597/0.001597, allocations: 168.9 kB / 25.69 MB, free: 8.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8772/0.8772, allocations: 158.6 MB / 187.6 MB, free: 2.785 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 251.5 MB, free: 7.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.967e-05/2.111e-05, allocations: 2.312 kB / 251.5 MB, free: 7.258 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.005774/0.005795, allocations: 6.808 MB / 258.3 MB, free: 424 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004625/0.01042, allocations: 3.169 MB / 261.5 MB, free: 13.23 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004486/0.01087, allocations: 39.81 kB / 261.6 MB, free: 13.2 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001052/0.01192, allocations: 0.8248 MB / 262.4 MB, free: 12.37 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001623/0.01354, allocations: 1.408 MB / 263.8 MB, free: 10.95 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005564/0.0141, allocations: 0.5416 MB / 264.3 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001834/0.01593, allocations: 2.87 MB / 267.2 MB, free: 7.535 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000925/0.01686, allocations: 1.436 MB / 268.6 MB, free: 6.07 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008667/0.01773, allocations: 1.247 MB / 269.9 MB, free: 4.82 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000987/0.01871, allocations: 1.223 MB / 271.1 MB, free: 3.594 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001707/0.01888, allocations: 136 kB / 271.2 MB, free: 3.461 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007663/0.01965, allocations: 0.8033 MB / 272 MB, free: 2.656 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005938/0.02024, allocations: 1.079 MB / 273.1 MB, free: 1.574 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004303/0.02067, allocations: 0.6384 MB / 273.8 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001821/0.02249, allocations: 2.778 MB / 276.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.0225, allocations: 3.938 kB / 276.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.0225, allocations: 0 / 276.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.92e-05/0.02252, allocations: 4 kB / 276.5 MB, free: 14.14 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.002478/0.025, allocations: 2.64 MB / 279.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.906e-05/0.02502, allocations: 11.98 kB / 279.2 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00199/0.02701, allocations: 0.7889 MB / 280 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009676/0.02798, allocations: 1.009 MB / 281 MB, free: 9.617 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.815e-05/0.02804, allocations: 115.2 kB / 281.1 MB, free: 9.504 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001925/0.02823, allocations: 159.8 kB / 281.3 MB, free: 9.348 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002577/0.03081, allocations: 3.112 MB / 284.4 MB, free: 5.711 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.072e-05/0.03085, allocations: 27.75 kB / 284.4 MB, free: 5.684 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001459/0.031, allocations: 83.89 kB / 284.5 MB, free: 5.602 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001135/0.03213, allocations: 1.203 MB / 285.7 MB, free: 4.398 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002128/0.03426, allocations: 1.611 MB / 287.3 MB, free: 2.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01237/0.04663, allocations: 21.09 MB / 308.4 MB, free: 12.81 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/0.0479, allocations: 0.75 MB / 309.1 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001971/0.04809, allocations: 171.3 kB / 309.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001869/0.04996, allocations: 1.774 MB / 311.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.04999, allocations: 42.55 kB / 311.1 MB, free: 9.992 MB / 298.7 MB Notification: Performance of pre-optimization done (n=74): time 2.564e-06/0.04999, allocations: 0 / 311.1 MB, free: 9.992 MB / 298.7 MB Notification: Performance of matching and sorting (n=75): time 0.003268/0.05326, allocations: 1.714 MB / 312.8 MB, free: 8.238 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.36e-05/0.0533, allocations: 136.5 kB / 313 MB, free: 8.074 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00158/0.05488, allocations: 2.271 MB / 315.2 MB, free: 5.77 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.315e-05/0.05491, allocations: 33.7 kB / 315.3 MB, free: 5.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007667/0.05568, allocations: 2.151 MB / 317.4 MB, free: 3.555 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001612/0.05584, allocations: 345.5 kB / 317.8 MB, free: 3.215 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005596/0.0564, allocations: 0.8262 MB / 318.6 MB, free: 2.375 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.857e-05/0.05649, allocations: 357.8 kB / 318.9 MB, free: 2.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006565/0.05715, allocations: 0.4947 MB / 319.4 MB, free: 1.516 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001904/0.05905, allocations: 3.313 MB / 322.7 MB, free: 12.71 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002619/0.06167, allocations: 4.231 MB / 327 MB, free: 6.996 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.676e-05/0.0617, allocations: 32 kB / 327 MB, free: 6.965 MB / 314.7 MB Notification: Performance of matching and sorting (n=562) (initialization): time 0.002683/0.06438, allocations: 2.969 MB / 330 MB, free: 3.98 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.06e-05/0.06442, allocations: 48 kB / 330 MB, free: 3.934 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.214e-05/0.06448, allocations: 108 kB / 330.1 MB, free: 3.828 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002229/0.0647, allocations: 180.3 kB / 330.3 MB, free: 3.648 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001405/0.06611, allocations: 0.9669 MB / 331.3 MB, free: 2.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009915/0.0671, allocations: 1.451 MB / 332.7 MB, free: 1.129 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001199/0.0683, allocations: 199.7 kB / 332.9 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001872/0.06849, allocations: 244 kB / 333.2 MB, free: 0.6953 MB / 314.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 (world.gravitySphereColor[1],world.gravitySphereColor[2],world.gravitySphereColor[3],world.groundColor[1],world.groundColor[2],world.groundColor[3],world.axisColor_x[1],world.axisColor_x[2],world.axisColor_x[3],world.gravityArrowColor[1],world.gravityArrowColor[2],world.gravityArrowColor[3],rev.cylinderColor[1],rev.cylinderColor[2],rev.cylinderColor[3],body.sphereColor[1],body.sphereColor[2],body.sphereColor[3]) * 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.0004972/0.06899, allocations: 488.1 kB / 333.6 MB, free: 212 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000154/0.06914, allocations: 123.9 kB / 333.8 MB, free: 88 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003766/0.06952, allocations: 344.4 kB / 334.1 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.06953, allocations: 12 kB / 334.1 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.06953, allocations: 0 / 334.1 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.06954, allocations: 7.984 kB / 334.1 MB, free: 15.71 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001968/0.07151, allocations: 1.932 MB / 336 MB, free: 13.72 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.07151, allocations: 0 / 336 MB, free: 13.72 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001945/0.0717, allocations: 83.84 kB / 336.1 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001145/0.07182, allocations: 43.8 kB / 336.2 MB, free: 13.59 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.338e-05/0.07184, allocations: 12 kB / 336.2 MB, free: 13.58 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007438/0.07259, allocations: 1.373 MB / 337.6 MB, free: 12.1 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.07259, allocations: 0 / 337.6 MB, free: 12.1 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007402/0.07333, allocations: 1.036 MB / 338.6 MB, free: 11.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002462/0.07357, allocations: 262.2 kB / 338.8 MB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001179/0.07369, allocations: 11.94 kB / 338.9 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003437/0.07403, allocations: 16 kB / 338.9 MB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.07409, allocations: 35.92 kB / 338.9 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.843e-05/0.07411, allocations: 20 kB / 338.9 MB, free: 10.68 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005972/0.07471, allocations: 0.7872 MB / 339.7 MB, free: 9.879 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.07471, allocations: 0 / 339.7 MB, free: 9.879 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001792/0.0765, allocations: 0.6249 MB / 340.3 MB, free: 9.254 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.0002639/0.07677, allocations: 152.1 kB / 340.5 MB, free: 9.098 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001509/0.07828, allocations: 1.691 MB / 342.2 MB, free: 7.406 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.723e-05/0.07836, allocations: 59.94 kB / 342.2 MB, free: 7.344 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002455/0.07861, allocations: 281.8 kB / 342.5 MB, free: 7.051 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008605/0.07947, allocations: 349.2 kB / 342.9 MB, free: 6.707 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00431/0.08378, allocations: 4.215 MB / 347.1 MB, free: 2.398 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005296/0.08431, allocations: 0.7086 MB / 347.8 MB, free: 1.664 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006382/0.08495, allocations: 320.9 kB / 348.1 MB, free: 1.348 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003686/0.08532, allocations: 345.3 kB / 348.4 MB, free: 1.008 MB / 330.7 MB Notification: Performance of SimCode: time 9.02e-07/0.08532, allocations: 0 / 348.4 MB, free: 1.008 MB / 330.7 MB Notification: Performance of Templates: time 0.1209/0.2063, allocations: 15.97 MB / 364.4 MB, free: 89.5 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.2140015261247754]