Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001734/0.001734, allocations: 194 kB / 17.38 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 226.5 MB / 244.7 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000759/0.000759, allocations: 98.94 kB / 296.8 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00021/0.00021, allocations: 8 kB / 356.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2073/0.2075, allocations: 51.28 MB / 408 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.008619/0.2162, allocations: 12.64 MB / 420.7 MB, free: 15.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00662/0.2229, allocations: 4.049 MB / 424.7 MB, free: 10.99 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001289/0.2242, allocations: 51.88 kB / 424.8 MB, free: 10.94 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009634/0.2252, allocations: 0.5987 MB / 425.4 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003425/0.2286, allocations: 2.156 MB / 427.5 MB, free: 8.176 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007941/0.2294, allocations: 447.2 kB / 428 MB, free: 7.738 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002296/0.2317, allocations: 2.793 MB / 430.8 MB, free: 4.941 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001502/0.2332, allocations: 1.387 MB / 432.2 MB, free: 3.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006809/0.2339, allocations: 0.7081 MB / 432.9 MB, free: 2.809 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000949/0.2349, allocations: 1.137 MB / 434 MB, free: 1.668 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001564/0.235, allocations: 76 kB / 434.1 MB, free: 1.594 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001124/0.2362, allocations: 0.8579 MB / 434.9 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005868/0.2368, allocations: 0.935 MB / 435.9 MB, free: 15.8 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008654/0.2377, allocations: 1.097 MB / 437 MB, free: 14.69 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002572/0.2402, allocations: 2.951 MB / 439.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2403, allocations: 0 / 439.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2403, allocations: 0 / 439.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.04e-05/0.2403, allocations: 0 / 439.9 MB, free: 11.73 MB / 314.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.003711/0.244, allocations: 2.411 MB / 442.3 MB, free: 9.262 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.2441, allocations: 8.031 kB / 442.3 MB, free: 9.254 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005289/0.2494, allocations: 1.682 MB / 444 MB, free: 7.566 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002279/0.2517, allocations: 1.285 MB / 445.3 MB, free: 6.238 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.444e-05/0.2518, allocations: 134.7 kB / 445.4 MB, free: 6.105 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003098/0.2521, allocations: 147.9 kB / 445.6 MB, free: 5.961 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007829/0.2599, allocations: 6.359 MB / 451.9 MB, free: 15.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.079e-05/0.26, allocations: 35.66 kB / 452 MB, free: 15.04 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000206/0.2602, allocations: 75.89 kB / 452 MB, free: 14.96 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002177/0.2624, allocations: 1.437 MB / 453.5 MB, free: 13.52 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008759/0.2712, allocations: 5.654 MB / 459.1 MB, free: 7.859 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02515/0.2964, allocations: 26.28 MB / 485.4 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003902/0.3003, allocations: 2.248 MB / 487.7 MB, free: 10.35 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001216/0.3016, allocations: 1.018 MB / 488.7 MB, free: 9.316 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.185e-05/0.3016, allocations: 15.98 kB / 488.7 MB, free: 9.301 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/0.3017, allocations: 42.5 kB / 488.7 MB, free: 9.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=98): time 3.506e-06/0.3017, allocations: 0 / 488.7 MB, free: 9.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=106): time 0.01882/0.3205, allocations: 8.57 MB / 497.3 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.53e-05/0.3206, allocations: 144.5 kB / 497.5 MB, free: 376 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003386/0.324, allocations: 2.807 MB / 0.4885 GB, free: 13.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001251/0.3241, allocations: 37.7 kB / 0.4886 GB, free: 13.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001221/0.3254, allocations: 2.067 MB / 0.4906 GB, free: 11.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003809/0.3258, allocations: 446.6 kB / 0.491 GB, free: 10.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/0.3259, allocations: 84 kB / 0.4911 GB, free: 10.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002477/0.3262, allocations: 495.7 kB / 0.4916 GB, free: 10.39 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001973/0.3282, allocations: 1.402 MB / 0.4929 GB, free: 8.977 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003693/0.3319, allocations: 4.23 MB / 0.4971 GB, free: 3.316 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1689/0.5008, allocations: 6.112 MB / 0.503 GB, free: 86.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.27e-05/0.5009, allocations: 29 kB / 0.5031 GB, free: 86.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01192/0.5128, allocations: 6.069 MB / 0.509 GB, free: 84.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.655e-05/0.5129, allocations: 46.56 kB / 0.509 GB, free: 84.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.956e-05/0.5131, allocations: 103.9 kB / 0.5091 GB, free: 84.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00199/0.5151, allocations: 0.7975 MB / 0.5099 GB, free: 84.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002606/0.5177, allocations: 0.9913 MB / 0.5109 GB, free: 84.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0042/0.5219, allocations: 4.144 MB / 0.5149 GB, free: 82.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002638/0.5246, allocations: 250.5 kB / 0.5152 GB, free: 82.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003348/0.5249, allocations: 277.6 kB / 0.5154 GB, free: 82.23 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001503/0.5264, allocations: 1.367 MB / 0.5168 GB, free: 81.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000262/0.5267, allocations: 237.3 kB / 0.517 GB, free: 81.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0031/0.5298, allocations: 1.852 MB / 0.5188 GB, free: 79.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.161e-05/0.5298, allocations: 12 kB / 0.5188 GB, free: 79.87 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.5298, allocations: 4 kB / 0.5188 GB, free: 79.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.5298, allocations: 3.562 kB / 0.5188 GB, free: 79.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006559/0.5364, allocations: 4.795 MB / 0.5235 GB, free: 75.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.812e-06/0.5365, allocations: 0 / 0.5235 GB, free: 75.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005328/0.537, allocations: 134.3 kB / 0.5236 GB, free: 75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001708/0.5387, allocations: 0.6534 MB / 0.5243 GB, free: 74.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.711e-05/0.5388, allocations: 23.98 kB / 0.5243 GB, free: 74.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003545/0.5423, allocations: 3.685 MB / 0.5279 GB, free: 70.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.5424, allocations: 4.031 kB / 0.5279 GB, free: 70.53 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004509/0.5469, allocations: 3.677 MB / 0.5315 GB, free: 66.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005135/0.5474, allocations: 302.3 kB / 0.5318 GB, free: 66.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001935/0.5476, allocations: 20.75 kB / 0.5318 GB, free: 66.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007527/0.5484, allocations: 59.92 kB / 0.5319 GB, free: 66.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.5485, allocations: 60.56 kB / 0.5319 GB, free: 66.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.547e-05/0.5486, allocations: 32.92 kB / 0.5319 GB, free: 66.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00194/0.5505, allocations: 1.738 MB / 0.5336 GB, free: 64.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5506, allocations: 0 / 0.5336 GB, free: 64.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002621/0.5532, allocations: 0.6516 MB / 0.5343 GB, free: 64 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002802/0.5535, allocations: 144.8 kB / 0.5344 GB, free: 63.85 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00397/0.5574, allocations: 3.396 MB / 0.5377 GB, free: 60.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.5575, allocations: 0 / 0.5377 GB, free: 60.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008854/0.5584, allocations: 0.9355 MB / 0.5386 GB, free: 59.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001605/0.56, allocations: 259.6 kB / 0.5389 GB, free: 59.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006724/0.5667, allocations: 6.711 MB / 0.5454 GB, free: 52.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001464/0.5682, allocations: 2.181 MB / 0.5476 GB, free: 50.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004602/0.5687, allocations: 199.4 kB / 0.5478 GB, free: 50.11 MB / 378.7 MB Notification: Performance of SimCode: time 9.52e-07/0.5687, allocations: 0 / 0.5478 GB, free: 50.11 MB / 378.7 MB Notification: Performance of Templates: time 0.04527/0.614, allocations: 46.69 MB / 0.5934 GB, free: 3.445 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches