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.001198/0.001203, allocations: 196.7 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 226.6 MB / 244.3 MB, free: 8.293 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007768/0.0007767, allocations: 99.47 kB / 296.4 MB, free: 7.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002663/0.0002663, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2223/0.2226, allocations: 51.3 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.008247/0.2309, allocations: 12.63 MB / 420.1 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006325/0.2372, allocations: 4.049 MB / 424.2 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001377/0.2387, allocations: 55.81 kB / 424.2 MB, free: 11.08 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009339/0.2396, allocations: 0.6026 MB / 424.8 MB, free: 10.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003562/0.2432, allocations: 2.133 MB / 427 MB, free: 8.332 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007626/0.244, allocations: 415.3 kB / 427.4 MB, free: 7.926 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00228/0.2462, allocations: 2.762 MB / 430.1 MB, free: 5.156 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001485/0.2477, allocations: 1.333 MB / 431.5 MB, free: 3.785 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007754/0.2485, allocations: 0.7004 MB / 432.2 MB, free: 3.082 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009952/0.2495, allocations: 1.141 MB / 433.3 MB, free: 1.938 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000165/0.2497, allocations: 76 kB / 433.4 MB, free: 1.863 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001104/0.2508, allocations: 0.7254 MB / 434.1 MB, free: 1.137 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005267/0.2514, allocations: 0.9466 MB / 435.1 MB, free: 192 kB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000373/0.2517, allocations: 488.2 kB / 435.5 MB, free: 15.7 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002548/0.2543, allocations: 2.939 MB / 438.5 MB, free: 12.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.2543, allocations: 0 / 438.5 MB, free: 12.76 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2543, allocations: 4 kB / 438.5 MB, free: 12.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.3e-05/0.2544, allocations: 0 / 438.5 MB, free: 12.75 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.004107/0.2585, allocations: 2.446 MB / 440.9 MB, free: 10.25 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.2586, allocations: 8.031 kB / 440.9 MB, free: 10.24 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005482/0.264, allocations: 1.681 MB / 442.6 MB, free: 8.555 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002469/0.2665, allocations: 1.265 MB / 443.9 MB, free: 7.246 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/0.2667, allocations: 126.8 kB / 444 MB, free: 7.121 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002917/0.267, allocations: 151.8 kB / 444.1 MB, free: 6.973 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008841/0.2758, allocations: 6.351 MB / 450.5 MB, free: 100 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.566e-05/0.2759, allocations: 39.59 kB / 450.5 MB, free: 60 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002241/0.2762, allocations: 75.94 kB / 450.6 MB, free: 15.98 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00235/0.2785, allocations: 1.441 MB / 452 MB, free: 14.54 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009518/0.288, allocations: 5.654 MB / 457.7 MB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02697/0.3151, allocations: 26.27 MB / 484 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004107/0.3192, allocations: 2.259 MB / 486.2 MB, free: 11.37 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001282/0.3205, allocations: 1.015 MB / 487.2 MB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.844e-05/0.3206, allocations: 15.98 kB / 487.3 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.485e-05/0.3207, allocations: 46.44 kB / 487.3 MB, free: 10.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=98): time 4.228e-06/0.3207, allocations: 4 kB / 487.3 MB, free: 10.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=106): time 0.01992/0.3406, allocations: 8.537 MB / 495.8 MB, free: 1.586 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.248e-05/0.3407, allocations: 144.5 kB / 496 MB, free: 1.414 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003874/0.3446, allocations: 2.807 MB / 498.8 MB, free: 14.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001183/0.3447, allocations: 37.7 kB / 498.8 MB, free: 14.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001298/0.346, allocations: 2.071 MB / 0.4892 GB, free: 12.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004481/0.3465, allocations: 442.6 kB / 0.4896 GB, free: 12.01 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002281/0.3467, allocations: 88 kB / 0.4897 GB, free: 11.92 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003682/0.3471, allocations: 499.7 kB / 0.4901 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002236/0.3494, allocations: 1.402 MB / 0.4915 GB, free: 10.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003956/0.3533, allocations: 4.23 MB / 0.4956 GB, free: 4.355 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003349/0.3567, allocations: 2.388 MB / 0.498 GB, free: 1.965 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.945e-05/0.3568, allocations: 28 kB / 0.498 GB, free: 1.938 MB / 378.7 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.1783/0.5351, allocations: 6.058 MB / 0.5039 GB, free: 88.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.342e-05/0.5352, allocations: 54 kB / 0.504 GB, free: 88.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.796e-05/0.5353, allocations: 101.3 kB / 0.5041 GB, free: 88.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002107/0.5374, allocations: 0.8115 MB / 0.5049 GB, free: 88.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003299/0.5407, allocations: 0.9948 MB / 0.5058 GB, free: 87.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004385/0.5451, allocations: 4.141 MB / 0.5099 GB, free: 85.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002894/0.5481, allocations: 247.3 kB / 0.5101 GB, free: 85.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004264/0.5485, allocations: 279.2 kB / 0.5104 GB, free: 85.71 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.001601/0.5501, allocations: 1.374 MB / 0.5117 GB, free: 85.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000322/0.5505, allocations: 231.1 kB / 0.5119 GB, free: 85.08 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003032/0.5535, allocations: 1.847 MB / 0.5137 GB, free: 84.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.088e-05/0.5535, allocations: 13 kB / 0.5138 GB, free: 84.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.5536, allocations: 4.75 kB / 0.5138 GB, free: 84.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.5536, allocations: 9.094 kB / 0.5138 GB, free: 84.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007024/0.5606, allocations: 4.803 MB / 0.5185 GB, free: 81.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.5606, allocations: 4.094 kB / 0.5185 GB, free: 81.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005558/0.5612, allocations: 131.8 kB / 0.5186 GB, free: 81.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001702/0.5629, allocations: 0.6492 MB / 0.5192 GB, free: 80.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.313e-05/0.563, allocations: 23.56 kB / 0.5192 GB, free: 80.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003411/0.5664, allocations: 3.694 MB / 0.5229 GB, free: 76.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.5665, allocations: 12.08 kB / 0.5229 GB, free: 76.54 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004372/0.5708, allocations: 3.667 MB / 0.5264 GB, free: 72.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005015/0.5714, allocations: 301.9 kB / 0.5267 GB, free: 72.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001822/0.5715, allocations: 15.94 kB / 0.5267 GB, free: 72.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007672/0.5723, allocations: 63.91 kB / 0.5268 GB, free: 72.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.5724, allocations: 55.2 kB / 0.5269 GB, free: 72.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.23e-05/0.5725, allocations: 31.94 kB / 0.5269 GB, free: 72.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001893/0.5744, allocations: 1.75 MB / 0.5286 GB, free: 70.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5744, allocations: 0 / 0.5286 GB, free: 70.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002479/0.5769, allocations: 0.6431 MB / 0.5292 GB, free: 70 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.000263/0.5772, allocations: 141.1 kB / 0.5294 GB, free: 69.86 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003968/0.5812, allocations: 3.405 MB / 0.5327 GB, free: 66.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.5812, allocations: 0 / 0.5327 GB, free: 66.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008699/0.582, allocations: 0.9322 MB / 0.5336 GB, free: 65.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001338/0.5834, allocations: 245.6 kB / 0.5338 GB, free: 65.28 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006798/0.5902, allocations: 6.72 MB / 0.5404 GB, free: 58.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001341/0.5916, allocations: 2.192 MB / 0.5425 GB, free: 56.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000482/0.5921, allocations: 195.4 kB / 0.5427 GB, free: 56.1 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.5921, allocations: 0 / 0.5427 GB, free: 56.1 MB / 378.7 MB Notification: Performance of Templates: time 0.04216/0.6343, allocations: 46.75 MB / 0.5884 GB, free: 9.371 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