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.001289/0.001289, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009966/0.0009966, allocations: 140.3 kB / 24.89 MB, free: 9.207 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.9468/0.9468, allocations: 173.3 MB / 201.5 MB, free: 9.168 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.122e-06/1.122e-06, allocations: 0 / 268.5 MB, free: 6.109 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.217e-05/1.33e-05, allocations: 2.312 kB / 268.5 MB, free: 6.105 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.006742/0.006756, allocations: 6.845 MB / 275.4 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004578/0.01133, allocations: 3.157 MB / 278.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004178/0.01175, allocations: 39.81 kB / 278.6 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001205/0.01296, allocations: 0.8247 MB / 279.4 MB, free: 11.19 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001985/0.01494, allocations: 1.381 MB / 280.8 MB, free: 9.801 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007481/0.01569, allocations: 0.5299 MB / 281.3 MB, free: 9.27 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002375/0.01806, allocations: 2.869 MB / 284.2 MB, free: 6.398 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001194/0.01926, allocations: 1.311 MB / 285.5 MB, free: 5.059 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001123/0.02038, allocations: 1.2 MB / 286.7 MB, free: 3.855 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001242/0.02162, allocations: 1.212 MB / 287.9 MB, free: 2.641 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001935/0.02182, allocations: 136 kB / 288 MB, free: 2.508 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001018/0.02283, allocations: 0.8578 MB / 288.9 MB, free: 1.648 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006989/0.02353, allocations: 1.067 MB / 289.9 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.09956/0.1231, allocations: 0.6449 MB / 290.6 MB, free: 19.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003256/0.1263, allocations: 2.772 MB / 293.4 MB, free: 18.96 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1263, allocations: 0 / 293.4 MB, free: 18.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1264, allocations: 0 / 293.4 MB, free: 18.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.467e-05/0.1264, allocations: 1.062 kB / 293.4 MB, free: 18.96 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.003421/0.1298, allocations: 2.63 MB / 296 MB, free: 17.74 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.138e-05/0.1299, allocations: 11.3 kB / 296 MB, free: 17.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002304/0.1322, allocations: 0.8009 MB / 296.8 MB, free: 17.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.1333, allocations: 0.9836 MB / 297.8 MB, free: 17.39 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.996e-05/0.1334, allocations: 117.6 kB / 297.9 MB, free: 17.39 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002043/0.1336, allocations: 155.7 kB / 298.1 MB, free: 17.38 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002797/0.1364, allocations: 3.104 MB / 301.2 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.91e-05/0.1364, allocations: 27.56 kB / 301.2 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001482/0.1366, allocations: 78.86 kB / 301.3 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009677/0.1375, allocations: 1.208 MB / 302.5 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001994/0.1395, allocations: 1.613 MB / 304.1 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008695/0.1482, allocations: 21.1 MB / 325.2 MB, free: 15.08 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001213/0.1494, allocations: 0.741 MB / 325.9 MB, free: 14.83 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001824/0.1496, allocations: 164 kB / 326.1 MB, free: 14.79 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00185/0.1515, allocations: 1.779 MB / 327.9 MB, free: 13.2 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.392e-05/0.1515, allocations: 38.56 kB / 327.9 MB, free: 13.16 MB / 282.7 MB Notification: Performance of pre-optimization done (n=74): time 1.773e-06/0.1515, allocations: 0 / 327.9 MB, free: 13.16 MB / 282.7 MB Notification: Performance of matching and sorting (n=75): time 0.00316/0.1547, allocations: 1.695 MB / 329.6 MB, free: 11.46 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.863e-05/0.1547, allocations: 143.7 kB / 329.7 MB, free: 11.3 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001461/0.1562, allocations: 2.264 MB / 332 MB, free: 9.406 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.331e-05/0.1562, allocations: 37.7 kB / 332 MB, free: 9.363 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009033/0.1571, allocations: 2.147 MB / 334.2 MB, free: 7.336 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001731/0.1573, allocations: 342.9 kB / 334.5 MB, free: 7.02 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005801/0.1579, allocations: 0.8208 MB / 335.3 MB, free: 6.277 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.611e-05/0.1579, allocations: 357.6 kB / 335.7 MB, free: 5.945 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007933/0.1587, allocations: 0.4947 MB / 336.2 MB, free: 5.441 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002365/0.1611, allocations: 3.315 MB / 339.5 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003326/0.1644, allocations: 4.218 MB / 343.7 MB, free: 11.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.725e-05/0.1645, allocations: 32 kB / 343.7 MB, free: 11.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=562) (initialization): time 0.003929/0.1684, allocations: 2.98 MB / 346.7 MB, free: 8.285 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.387e-05/0.1685, allocations: 52 kB / 346.8 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.383e-05/0.1685, allocations: 108 kB / 346.9 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002768/0.1688, allocations: 171.6 kB / 347 MB, free: 7.957 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002028/0.1708, allocations: 1.003 MB / 348.1 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001039/0.1719, allocations: 1.455 MB / 349.5 MB, free: 5.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0018/0.1737, allocations: 210.8 kB / 349.7 MB, free: 5.207 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000258/0.1739, allocations: 244 kB / 350 MB, free: 4.969 MB / 298.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.0006662/0.1746, allocations: 488.1 kB / 350.4 MB, free: 4.484 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002062/0.1748, allocations: 119.9 kB / 350.5 MB, free: 4.367 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004983/0.1753, allocations: 352.2 kB / 350.9 MB, free: 4.012 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/0.1753, allocations: 8 kB / 350.9 MB, free: 4.004 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.1753, allocations: 4 kB / 350.9 MB, free: 4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.1753, allocations: 3.984 kB / 350.9 MB, free: 3.996 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002727/0.1781, allocations: 1.923 MB / 352.8 MB, free: 2.344 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.1781, allocations: 4 kB / 352.8 MB, free: 2.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002852/0.1784, allocations: 79.91 kB / 352.9 MB, free: 2.262 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001361/0.1785, allocations: 41.28 kB / 352.9 MB, free: 2.219 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.44e-05/0.1785, allocations: 15.94 kB / 353 MB, free: 2.203 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009481/0.1795, allocations: 1.38 MB / 354.3 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.155e-06/0.1795, allocations: 0 / 354.3 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009193/0.1804, allocations: 1.039 MB / 355.4 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002083/0.1806, allocations: 198.2 kB / 355.6 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000168/0.1808, allocations: 15.94 kB / 355.6 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004877/0.1813, allocations: 12 kB / 355.6 MB, free: 15.44 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.191e-05/0.1813, allocations: 43.92 kB / 355.6 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.729e-05/0.1814, allocations: 20 kB / 355.7 MB, free: 15.38 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007916/0.1822, allocations: 0.7764 MB / 356.4 MB, free: 14.65 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1822, allocations: 0 / 356.4 MB, free: 14.65 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002489/0.1847, allocations: 0.6288 MB / 357.1 MB, free: 14.02 MB / 314.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.0002761/0.1849, allocations: 151.8 kB / 357.2 MB, free: 13.87 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001931/0.1869, allocations: 1.682 MB / 358.9 MB, free: 12.19 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001248/0.187, allocations: 63.88 kB / 359 MB, free: 12.12 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003227/0.1873, allocations: 277.5 kB / 359.2 MB, free: 11.84 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001423/0.1887, allocations: 346.1 kB / 359.6 MB, free: 11.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005365/0.1941, allocations: 4.2 MB / 363.8 MB, free: 7.211 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007411/0.1948, allocations: 0.7043 MB / 364.5 MB, free: 6.477 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0008517/0.1957, allocations: 332.1 kB / 364.8 MB, free: 6.152 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004853/0.1962, allocations: 345.3 kB / 365.1 MB, free: 5.816 MB / 314.7 MB Notification: Performance of SimCode: time 9.62e-07/0.1962, allocations: 0 / 365.1 MB, free: 5.816 MB / 314.7 MB Notification: Performance of Templates: time 0.0299/0.2261, allocations: 15.77 MB / 380.9 MB, free: 6.207 MB / 330.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 -s gbode -gbm=radauIIA3 -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.1965829208493233]