Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002014/0.002014, allocations: 96.25 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002539/0.002539, allocations: 156.9 kB / 24.26 MB, free: 176 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.66/1.66, allocations: 177 MB / 204.5 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.164e-06/2.164e-06, allocations: 0 / 272.2 MB, free: 1.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.234e-05/3.451e-05, allocations: 2.312 kB / 272.2 MB, free: 1.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01013/0.01017, allocations: 6.337 MB / 278.5 MB, free: 11.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007932/0.0181, allocations: 2.994 MB / 281.5 MB, free: 8.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001382/0.01948, allocations: 43.81 kB / 281.6 MB, free: 8.367 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00244/0.02192, allocations: 0.817 MB / 282.4 MB, free: 7.547 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004253/0.02618, allocations: 1.365 MB / 283.8 MB, free: 6.176 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001463/0.02764, allocations: 0.5377 MB / 284.3 MB, free: 5.637 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004481/0.03212, allocations: 2.909 MB / 287.2 MB, free: 2.723 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002908/0.03503, allocations: 1.383 MB / 288.6 MB, free: 1.32 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002912/0.03794, allocations: 1.181 MB / 289.8 MB, free: 140 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1328/0.1707, allocations: 1.284 MB / 291.1 MB, free: 17.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005115/0.1712, allocations: 138.7 kB / 291.2 MB, free: 17.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001692/0.1729, allocations: 0.8165 MB / 292 MB, free: 17.05 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001076/0.174, allocations: 1.045 MB / 293.1 MB, free: 17.05 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009847/0.175, allocations: 0.6325 MB / 293.7 MB, free: 17.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005413/0.1804, allocations: 3.946 MB / 297.6 MB, free: 16.67 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.1804, allocations: 0 / 297.6 MB, free: 16.67 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1804, allocations: 1.25 kB / 297.6 MB, free: 16.67 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001151/0.1805, allocations: 0 / 297.6 MB, free: 16.67 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.006763/0.1873, allocations: 2.886 MB / 300.5 MB, free: 15.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.1873, allocations: 16.8 kB / 300.5 MB, free: 15.42 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006688/0.194, allocations: 2.064 MB / 302.6 MB, free: 15.1 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002547/0.1966, allocations: 1.252 MB / 303.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.901e-05/0.1966, allocations: 113.1 kB / 304 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003062/0.1969, allocations: 164.5 kB / 304.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008175/0.2051, allocations: 6.371 MB / 310.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.878e-05/0.2052, allocations: 32.97 kB / 310.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002448/0.2054, allocations: 79.98 kB / 310.6 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001928/0.2073, allocations: 1.433 MB / 312 MB, free: 9.215 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008095/0.2154, allocations: 5.683 MB / 317.7 MB, free: 3.688 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03331/0.2487, allocations: 24.91 MB / 342.6 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004958/0.2537, allocations: 1.781 MB / 344.4 MB, free: 8.484 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0017/0.2554, allocations: 0.9423 MB / 345.3 MB, free: 7.531 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.143e-05/0.2555, allocations: 23.97 kB / 345.4 MB, free: 7.512 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.347e-05/0.2555, allocations: 48.56 kB / 345.4 MB, free: 7.457 MB / 298.7 MB Notification: Performance of pre-optimization done (n=98): time 3.457e-06/0.2555, allocations: 0 / 345.4 MB, free: 7.457 MB / 298.7 MB Notification: Performance of matching and sorting (n=106): time 0.02546/0.281, allocations: 8.79 MB / 354.2 MB, free: 14.63 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.2811, allocations: 143.9 kB / 354.3 MB, free: 14.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00491/0.286, allocations: 2.704 MB / 357.1 MB, free: 11.72 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001909/0.2862, allocations: 41.7 kB / 357.1 MB, free: 11.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001958/0.2882, allocations: 2.151 MB / 359.2 MB, free: 9.535 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007302/0.2889, allocations: 452.5 kB / 359.7 MB, free: 9.098 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001626/0.2905, allocations: 0.8771 MB / 360.6 MB, free: 8.211 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000321/0.2908, allocations: 357.9 kB / 360.9 MB, free: 7.855 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002901/0.2937, allocations: 1.43 MB / 362.3 MB, free: 6.418 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005956/0.2997, allocations: 4.251 MB / 366.6 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009782/0.3095, allocations: 6.151 MB / 372.7 MB, free: 9.215 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001063/0.3096, allocations: 32 kB / 372.8 MB, free: 9.184 MB / 330.7 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01572/0.3253, allocations: 6.341 MB / 379.1 MB, free: 2.828 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.441e-05/0.3254, allocations: 48 kB / 379.2 MB, free: 2.781 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001411/0.3255, allocations: 100 kB / 379.3 MB, free: 2.684 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002623/0.3282, allocations: 0.8119 MB / 380.1 MB, free: 1.871 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003526/0.3317, allocations: 0.9942 MB / 381.1 MB, free: 0.875 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007262/0.3389, allocations: 4.338 MB / 385.4 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003734/0.3427, allocations: 295.6 kB / 385.7 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006822/0.3434, allocations: 276 kB / 386 MB, free: 11.89 MB / 346.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.002845/0.3462, allocations: 1.369 MB / 387.3 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006345/0.3468, allocations: 250.5 kB / 387.6 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004396/0.3512, allocations: 1.813 MB / 389.4 MB, free: 8.438 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.433e-05/0.3513, allocations: 13.48 kB / 389.4 MB, free: 8.426 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.48e-05/0.3513, allocations: 7.984 kB / 389.4 MB, free: 8.418 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.528e-05/0.3513, allocations: 10.89 kB / 389.4 MB, free: 8.41 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01283/0.3641, allocations: 4.187 MB / 393.6 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.736e-05/0.3641, allocations: 4 kB / 393.6 MB, free: 4.176 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007512/0.3649, allocations: 135.7 kB / 393.7 MB, free: 4.043 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002413/0.3673, allocations: 0.6567 MB / 394.4 MB, free: 3.383 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001573/0.3675, allocations: 14.34 kB / 394.4 MB, free: 3.371 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006709/0.3742, allocations: 3.835 MB / 398.3 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.3742, allocations: 3.938 kB / 398.3 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007709/0.3819, allocations: 3.696 MB / 402 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008716/0.3828, allocations: 210.4 kB / 402.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005982/0.3834, allocations: 16 kB / 402.2 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001516/0.3849, allocations: 103.8 kB / 402.3 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002568/0.3851, allocations: 63.95 kB / 402.3 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001073/0.3852, allocations: 28 kB / 402.4 MB, free: 11.29 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004069/0.3893, allocations: 1.558 MB / 403.9 MB, free: 9.715 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3893, allocations: 0 / 403.9 MB, free: 9.715 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005605/0.3949, allocations: 0.7108 MB / 404.6 MB, free: 9.004 MB / 362.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.0007315/0.3956, allocations: 169.9 kB / 404.8 MB, free: 8.836 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007378/0.403, allocations: 3.309 MB / 408.1 MB, free: 5.539 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.184e-05/0.403, allocations: 4 kB / 408.1 MB, free: 5.535 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001725/0.4048, allocations: 0.8678 MB / 409 MB, free: 4.656 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00254/0.4073, allocations: 230 kB / 409.2 MB, free: 4.434 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01373/0.421, allocations: 5.556 MB / 414.8 MB, free: 14.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003789/0.4248, allocations: 1.607 MB / 416.4 MB, free: 13.18 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003771/0.4286, allocations: 1.371 MB / 417.7 MB, free: 11.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006724/0.4293, allocations: 152.5 kB / 417.9 MB, free: 11.66 MB / 378.7 MB Notification: Performance of SimCode: time 1.983e-06/0.4293, allocations: 0 / 417.9 MB, free: 11.66 MB / 378.7 MB Notification: Performance of Templates: time 0.1575/0.5868, allocations: 19.6 MB / 437.5 MB, free: 121.1 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.973940617986955]