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.001344/0.001344, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001318/0.001318, allocations: 147.5 kB / 24.81 MB, free: 9.27 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.9859/0.9859, allocations: 173.3 MB / 201.4 MB, free: 9.227 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.803e-06/1.803e-06, allocations: 0 / 268.4 MB, free: 6.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.254e-05/2.435e-05, allocations: 6.312 kB / 268.4 MB, free: 6.203 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.006089/0.006113, allocations: 6.79 MB / 275.2 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005559/0.01167, allocations: 3.06 MB / 278.3 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001005/0.01268, allocations: 35.81 kB / 278.3 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001334/0.01401, allocations: 0.8287 MB / 279.1 MB, free: 11.44 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002567/0.01658, allocations: 1.412 MB / 280.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001006/0.01758, allocations: 0.5377 MB / 281.1 MB, free: 9.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003225/0.02081, allocations: 2.865 MB / 283.9 MB, free: 6.613 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001655/0.02247, allocations: 1.395 MB / 285.3 MB, free: 5.199 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001933/0.0244, allocations: 1.231 MB / 286.6 MB, free: 3.965 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001758/0.02616, allocations: 1.282 MB / 287.8 MB, free: 2.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004737/0.02663, allocations: 136 kB / 288 MB, free: 2.547 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001456/0.02809, allocations: 0.8305 MB / 288.8 MB, free: 1.715 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001178/0.02926, allocations: 1.071 MB / 289.9 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008201/0.03008, allocations: 0.6345 MB / 290.5 MB, free: 4 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1318/0.1619, allocations: 2.774 MB / 293.3 MB, free: 18.98 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.1619, allocations: 1.891 kB / 293.3 MB, free: 18.98 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1619, allocations: 0 / 293.3 MB, free: 18.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000155/0.162, allocations: 0 / 293.3 MB, free: 18.98 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.008022/0.1701, allocations: 3.06 MB / 296.3 MB, free: 17.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.1701, allocations: 10.8 kB / 296.4 MB, free: 17.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003359/0.1735, allocations: 1.07 MB / 297.4 MB, free: 17.43 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002068/0.1755, allocations: 1.067 MB / 298.5 MB, free: 17.1 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.611e-05/0.1756, allocations: 115.6 kB / 298.6 MB, free: 17.1 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002549/0.1759, allocations: 164.6 kB / 298.8 MB, free: 17.09 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005009/0.1809, allocations: 3.54 MB / 302.3 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.163e-05/0.181, allocations: 33.36 kB / 302.3 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001934/0.1812, allocations: 82.36 kB / 302.4 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001299/0.1825, allocations: 1.2 MB / 303.6 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00321/0.1857, allocations: 1.596 MB / 305.2 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01956/0.2052, allocations: 29.64 MB / 334.9 MB, free: 5.656 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001598/0.2068, allocations: 0.7002 MB / 335.6 MB, free: 5.301 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002456/0.2071, allocations: 217.6 kB / 335.8 MB, free: 5.074 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002676/0.2098, allocations: 2.053 MB / 337.8 MB, free: 3.031 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.2098, allocations: 47.12 kB / 337.9 MB, free: 2.977 MB / 282.7 MB Notification: Performance of pre-optimization done (n=74): time 2.405e-06/0.2098, allocations: 0 / 337.9 MB, free: 2.977 MB / 282.7 MB Notification: Performance of matching and sorting (n=75): time 0.004621/0.2144, allocations: 1.896 MB / 339.8 MB, free: 1.062 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.489e-05/0.2145, allocations: 138.1 kB / 339.9 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00244/0.2169, allocations: 2.552 MB / 342.5 MB, free: 14.72 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.338e-05/0.2169, allocations: 33.7 kB / 342.5 MB, free: 14.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001241/0.2182, allocations: 2.396 MB / 344.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002736/0.2185, allocations: 363.2 kB / 345.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007916/0.2192, allocations: 0.9655 MB / 346.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.2194, allocations: 0.5341 MB / 346.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006155/0.22, allocations: 354.2 kB / 347.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002766/0.2228, allocations: 4.734 MB / 351.8 MB, free: 3.707 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004157/0.2269, allocations: 5.597 MB / 357.4 MB, free: 12.27 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.197e-05/0.227, allocations: 32 kB / 357.4 MB, free: 12.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=562) (initialization): time 0.00545/0.2325, allocations: 3.478 MB / 360.9 MB, free: 8.762 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.485e-05/0.2325, allocations: 48 kB / 361 MB, free: 8.715 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001073/0.2326, allocations: 108 kB / 361.1 MB, free: 8.609 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003174/0.2329, allocations: 175.6 kB / 361.3 MB, free: 8.434 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001686/0.2346, allocations: 0.963 MB / 362.2 MB, free: 7.469 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001199/0.2358, allocations: 1.98 MB / 364.2 MB, free: 5.375 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001884/0.2377, allocations: 206.8 kB / 364.4 MB, free: 5.176 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002127/0.2379, allocations: 240 kB / 364.6 MB, free: 4.941 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.0009159/0.2388, allocations: 0.5157 MB / 365.1 MB, free: 4.414 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003439/0.2392, allocations: 237.8 kB / 365.4 MB, free: 4.184 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005984/0.2398, allocations: 368.1 kB / 365.7 MB, free: 3.812 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.652e-05/0.2398, allocations: 11.94 kB / 365.7 MB, free: 3.801 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.2398, allocations: 4.281 kB / 365.8 MB, free: 3.801 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.2398, allocations: 7.984 kB / 365.8 MB, free: 3.793 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004164/0.244, allocations: 2.245 MB / 368 MB, free: 1.797 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.102e-06/0.244, allocations: 3.625 kB / 368 MB, free: 1.797 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002994/0.2443, allocations: 83.84 kB / 368.1 MB, free: 1.715 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001605/0.2444, allocations: 47.67 kB / 368.1 MB, free: 1.664 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.551e-05/0.2445, allocations: 8.156 kB / 368.1 MB, free: 1.656 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001105/0.2456, allocations: 1.785 MB / 369.9 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.2456, allocations: 0 / 369.9 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001312/0.2469, allocations: 1.221 MB / 371.2 MB, free: 14.51 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000378/0.2473, allocations: 198.5 kB / 371.3 MB, free: 14.31 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001696/0.2474, allocations: 20 kB / 371.4 MB, free: 14.29 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005329/0.248, allocations: 8 kB / 371.4 MB, free: 14.29 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.511e-05/0.2481, allocations: 42.92 kB / 371.4 MB, free: 14.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.884e-05/0.2481, allocations: 23.98 kB / 371.4 MB, free: 14.22 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001263/0.2494, allocations: 0.9993 MB / 372.4 MB, free: 13.21 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2494, allocations: 0 / 372.4 MB, free: 13.21 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003168/0.2525, allocations: 0.6249 MB / 373.1 MB, free: 12.59 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.0003658/0.2529, allocations: 171.1 kB / 373.2 MB, free: 12.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003258/0.2562, allocations: 1.882 MB / 375.1 MB, free: 10.53 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.2562, allocations: 4 kB / 375.1 MB, free: 10.52 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004393/0.2566, allocations: 362.3 kB / 375.5 MB, free: 10.15 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001353/0.258, allocations: 227.5 kB / 375.7 MB, free: 9.93 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007066/0.265, allocations: 4.228 MB / 379.9 MB, free: 5.609 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001155/0.2662, allocations: 0.7124 MB / 380.6 MB, free: 4.871 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0011/0.2673, allocations: 328.2 kB / 381 MB, free: 4.551 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005124/0.2678, allocations: 378.1 kB / 381.3 MB, free: 4.18 MB / 330.7 MB Notification: Performance of SimCode: time 1.513e-06/0.2678, allocations: 0 / 381.3 MB, free: 4.18 MB / 330.7 MB Notification: Performance of Templates: time 0.03886/0.3067, allocations: 15.83 MB / 397.1 MB, free: 4.523 MB / 346.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.372443171683699]