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.001276/0.001276, allocations: 112 kB / 20.43 MB, free: 1.449 MB / 14.72 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: 187.8 kB / 23.72 MB, free: 4.68 MB / 14.72 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 1.443/1.443, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002378/0.002378, allocations: 47.92 kB / 370.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2899, allocations: 52.17 MB / 423.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01005/0.3, allocations: 7.183 MB / 430.3 MB, free: 7.484 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006381/0.3064, allocations: 3.197 MB / 433.5 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008473/0.3072, allocations: 39.81 kB / 433.5 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001769/0.309, allocations: 0.8015 MB / 434.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002991/0.312, allocations: 1.347 MB / 435.7 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001059/0.313, allocations: 495 kB / 436.2 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003299/0.3163, allocations: 2.538 MB / 438.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00126/0.3176, allocations: 0.9467 MB / 439.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001058/0.3186, allocations: 0.7861 MB / 440.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00156/0.3202, allocations: 1.207 MB / 441.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002878/0.3205, allocations: 132 kB / 441.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001684/0.3222, allocations: 0.9242 MB / 442.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001005/0.3232, allocations: 1.016 MB / 443.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001271/0.3244, allocations: 1.192 MB / 444.9 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005162/0.3296, allocations: 3.988 MB / 448.9 MB, free: 4.816 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3296, allocations: 0 / 448.9 MB, free: 4.816 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.3296, allocations: 0 / 448.9 MB, free: 4.816 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.231e-05/0.3297, allocations: 0 / 448.9 MB, free: 4.816 MB / 350.1 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.005515/0.3352, allocations: 2.884 MB / 451.8 MB, free: 1.887 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.3352, allocations: 8.031 kB / 451.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006516/0.3418, allocations: 1.664 MB / 453.4 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00305/0.3448, allocations: 1.274 MB / 454.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001167/0.3449, allocations: 114.9 kB / 454.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003532/0.3453, allocations: 151.9 kB / 455 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01031/0.3556, allocations: 6.363 MB / 461.3 MB, free: 7.754 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.132e-05/0.3557, allocations: 39.69 kB / 461.4 MB, free: 7.715 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002449/0.3559, allocations: 83.89 kB / 461.5 MB, free: 7.633 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002719/0.3586, allocations: 1.441 MB / 462.9 MB, free: 6.191 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01117/0.3698, allocations: 5.666 MB / 468.6 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03259/0.4024, allocations: 26.14 MB / 494.7 MB, free: 5.547 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00436/0.4067, allocations: 1.742 MB / 496.5 MB, free: 3.773 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001394/0.4081, allocations: 0.9476 MB / 497.4 MB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.203e-05/0.4082, allocations: 11.98 kB / 497.4 MB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.262e-05/0.4082, allocations: 46.55 kB / 497.5 MB, free: 2.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.416e-06/0.4082, allocations: 7.938 kB / 497.5 MB, free: 2.742 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.02204/0.4303, allocations: 8.487 MB / 0.4941 GB, free: 10.18 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.346e-05/0.4304, allocations: 136.5 kB / 0.4942 GB, free: 10.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004102/0.4345, allocations: 2.824 MB / 0.497 GB, free: 7.176 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001492/0.4346, allocations: 45.64 kB / 0.497 GB, free: 7.125 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001827/0.4364, allocations: 2.159 MB / 0.4991 GB, free: 4.945 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005571/0.437, allocations: 456.6 kB / 0.4996 GB, free: 4.496 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001216/0.4382, allocations: 0.8972 MB / 0.5005 GB, free: 3.586 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.4384, allocations: 305.1 kB / 0.5007 GB, free: 3.285 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002255/0.4406, allocations: 1.414 MB / 0.5021 GB, free: 1.863 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004618/0.4452, allocations: 4.254 MB / 0.5063 GB, free: 12.18 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007538/0.4528, allocations: 6.125 MB / 0.5123 GB, free: 4.645 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.499e-05/0.4528, allocations: 32.19 kB / 0.5123 GB, free: 4.613 MB / 430.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01205/0.4649, allocations: 6.103 MB / 0.5182 GB, free: 14.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.832e-05/0.465, allocations: 52.97 kB / 0.5183 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001118/0.4651, allocations: 100 kB / 0.5184 GB, free: 14.35 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002432/0.4675, allocations: 0.7966 MB / 0.5192 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002927/0.4704, allocations: 0.9903 MB / 0.5201 GB, free: 12.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006269/0.4767, allocations: 4.376 MB / 0.5244 GB, free: 8.066 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00289/0.4796, allocations: 239.7 kB / 0.5246 GB, free: 7.832 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003929/0.48, allocations: 276 kB / 0.5249 GB, free: 7.562 MB / 446.1 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.00209/0.4821, allocations: 1.375 MB / 0.5262 GB, free: 6.176 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003956/0.4825, allocations: 242.4 kB / 0.5265 GB, free: 5.938 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004198/0.4867, allocations: 1.842 MB / 0.5283 GB, free: 4.078 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.761e-05/0.4867, allocations: 19.94 kB / 0.5283 GB, free: 4.059 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.4867, allocations: 0 / 0.5283 GB, free: 4.059 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.4867, allocations: 7.984 kB / 0.5283 GB, free: 4.051 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009281/0.496, allocations: 4.754 MB / 0.5329 GB, free: 15.22 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.496, allocations: 0 / 0.5329 GB, free: 15.22 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006182/0.4966, allocations: 135.8 kB / 0.5331 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002148/0.4988, allocations: 0.6444 MB / 0.5337 GB, free: 14.44 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.042e-05/0.4988, allocations: 20 kB / 0.5337 GB, free: 14.42 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005501/0.5043, allocations: 3.854 MB / 0.5375 GB, free: 10.45 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5043, allocations: 0 / 0.5375 GB, free: 10.45 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0066/0.5109, allocations: 3.696 MB / 0.5411 GB, free: 6.73 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007422/0.5117, allocations: 226.2 kB / 0.5413 GB, free: 6.508 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002479/0.5119, allocations: 19.94 kB / 0.5413 GB, free: 6.488 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008903/0.5128, allocations: 71.95 kB / 0.5414 GB, free: 6.418 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001838/0.513, allocations: 59.83 kB / 0.5415 GB, free: 6.359 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.864e-05/0.5131, allocations: 24 kB / 0.5415 GB, free: 6.336 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002883/0.516, allocations: 1.758 MB / 0.5432 GB, free: 4.57 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.516, allocations: 0 / 0.5432 GB, free: 4.57 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003426/0.5194, allocations: 0.6444 MB / 0.5438 GB, free: 3.926 MB / 462.1 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.0003659/0.5198, allocations: 151 kB / 0.544 GB, free: 3.77 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005332/0.5251, allocations: 3.303 MB / 0.5472 GB, free: 488 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.5251, allocations: 0 / 0.5472 GB, free: 488 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2005/0.7255, allocations: 0.8629 MB / 0.548 GB, free: 123.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002894/0.7284, allocations: 256.2 kB / 0.5483 GB, free: 123.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01296/0.7414, allocations: 5.545 MB / 0.5537 GB, free: 122.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002708/0.7441, allocations: 2.188 MB / 0.5558 GB, free: 121.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003953/0.7481, allocations: 1.399 MB / 0.5572 GB, free: 121.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005069/0.7486, allocations: 167.7 kB / 0.5574 GB, free: 121.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.042e-06/0.7486, allocations: 0 / 0.5574 GB, free: 121.2 MB / 462.1 MB Notification: Performance of Templates: time 0.04295/0.7915, allocations: 23.91 MB / 0.5807 GB, free: 100.5 MB / 462.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.941791740246117]