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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.581/1.581, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008474/0.0008474, allocations: 98.39 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.02e-05/2.022e-05, allocations: 7.938 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1239, allocations: 50.42 MB / 387.5 MB, free: 7.578 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3662/0.4902, allocations: 91.1 MB / 478.6 MB, free: 3.758 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002845/0.4905, allocations: 83.95 kB / 478.6 MB, free: 3.676 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1521/0.6426, allocations: 57.52 MB / 0.5236 GB, free: 9.703 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.6426, allocations: 0 / 0.5236 GB, free: 9.703 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.691e-05/0.6427, allocations: 44 kB / 0.5236 GB, free: 9.66 MB / 410.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.005768/0.6485, allocations: 2.529 MB / 0.5261 GB, free: 7.074 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.6486, allocations: 8.031 kB / 0.5261 GB, free: 7.066 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008609/0.6572, allocations: 1.978 MB / 0.528 GB, free: 5.082 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008652/0.6659, allocations: 3.134 MB / 0.5311 GB, free: 1.895 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001112/0.666, allocations: 72 kB / 0.5312 GB, free: 1.824 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007175/0.6668, allocations: 136 kB / 0.5313 GB, free: 1.691 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006225/0.673, allocations: 3.916 MB / 0.5351 GB, free: 13.77 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008837/0.6819, allocations: 6.196 MB / 0.5412 GB, free: 6.773 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.575e-05/0.682, allocations: 47.52 kB / 0.5412 GB, free: 6.727 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002923/0.6823, allocations: 27.94 kB / 0.5413 GB, free: 6.699 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009713/0.6833, allocations: 0.715 MB / 0.542 GB, free: 5.988 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2652/0.9485, allocations: 32.02 MB / 0.5732 GB, free: 87.62 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002577/0.9511, allocations: 2.02 MB / 0.5752 GB, free: 86.96 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001392/0.9525, allocations: 0.9911 MB / 0.5762 GB, free: 86.93 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.78e-05/0.9526, allocations: 11.31 kB / 0.5762 GB, free: 86.93 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.027e-05/0.9526, allocations: 49.14 kB / 0.5762 GB, free: 86.89 MB / 426.7 MB Notification: Performance of pre-optimization done (n=98): time 3.677e-06/0.9526, allocations: 0 / 0.5762 GB, free: 86.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=106): time 0.01823/0.9709, allocations: 8.137 MB / 0.5842 GB, free: 85.05 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.926e-05/0.971, allocations: 143.9 kB / 0.5843 GB, free: 84.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003687/0.9747, allocations: 2.163 MB / 0.5864 GB, free: 84.61 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002091/0.9749, allocations: 30.64 kB / 0.5864 GB, free: 84.58 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00122/0.9761, allocations: 2.125 MB / 0.5885 GB, free: 83.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000477/0.9766, allocations: 431.2 kB / 0.5889 GB, free: 83.25 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/0.9768, allocations: 0 / 0.5889 GB, free: 83.25 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002916/0.9771, allocations: 0.5474 MB / 0.5895 GB, free: 82.84 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001629/0.9787, allocations: 1.311 MB / 0.5907 GB, free: 82.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002405/0.9811, allocations: 4.233 MB / 0.5949 GB, free: 77.99 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002462/0.9836, allocations: 2.335 MB / 0.5972 GB, free: 77.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-05/0.9837, allocations: 31.16 kB / 0.5972 GB, free: 77.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.009378/0.993, allocations: 5.499 MB / 0.6026 GB, free: 75.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.536e-05/0.9932, allocations: 48.47 kB / 0.6026 GB, free: 75.71 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001582/0.9933, allocations: 109.9 kB / 0.6027 GB, free: 75.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002222/0.9956, allocations: 0.8036 MB / 0.6035 GB, free: 75.63 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003241/0.9988, allocations: 1.044 MB / 0.6045 GB, free: 75.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004359/1.003, allocations: 3.965 MB / 0.6084 GB, free: 73.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003605/1.007, allocations: 202.1 kB / 0.6086 GB, free: 73.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006605/1.008, allocations: 292.6 kB / 0.6089 GB, free: 73.36 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 481 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (555): * Single equations (assignments): 551 * 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.0005752/1.008, allocations: 360.9 kB / 0.6092 GB, free: 73.05 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003992/1.009, allocations: 215.5 kB / 0.6094 GB, free: 72.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003244/1.012, allocations: 1.78 MB / 0.6111 GB, free: 72.42 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.376e-05/1.012, allocations: 14.19 kB / 0.6112 GB, free: 72.42 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/1.012, allocations: 3.344 kB / 0.6112 GB, free: 72.42 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/1.012, allocations: 3.516 kB / 0.6112 GB, free: 72.42 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007602/1.019, allocations: 4.331 MB / 0.6154 GB, free: 70.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.837e-06/1.019, allocations: 0 / 0.6154 GB, free: 70.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000638/1.02, allocations: 139.9 kB / 0.6155 GB, free: 70.85 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001812/1.022, allocations: 0.6342 MB / 0.6161 GB, free: 70.77 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/1.022, allocations: 3.875 kB / 0.6162 GB, free: 70.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003913/1.026, allocations: 3.51 MB / 0.6196 GB, free: 68.84 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/1.026, allocations: 0 / 0.6196 GB, free: 68.84 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005261/1.031, allocations: 3.67 MB / 0.6232 GB, free: 67.32 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008054/1.032, allocations: 277.7 kB / 0.6234 GB, free: 67.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002305/1.032, allocations: 6.625 kB / 0.6234 GB, free: 67.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009185/1.033, allocations: 55.33 kB / 0.6235 GB, free: 67.09 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001427/1.033, allocations: 57.16 kB / 0.6235 GB, free: 67.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.01e-05/1.034, allocations: 26.22 kB / 0.6236 GB, free: 67.08 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001895/1.035, allocations: 1.422 MB / 0.625 GB, free: 66.53 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.035, allocations: 1.969 kB / 0.625 GB, free: 66.53 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003493/1.039, allocations: 0.5569 MB / 0.6255 GB, free: 66.52 MB / 426.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 () * 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.000341/1.039, allocations: 148.5 kB / 0.6256 GB, free: 66.41 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004603/1.044, allocations: 3.165 MB / 0.6287 GB, free: 65.03 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/1.044, allocations: 1.375 kB / 0.6287 GB, free: 65.03 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009517/1.045, allocations: 0.9014 MB / 0.6296 GB, free: 64.21 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001279/1.046, allocations: 202 kB / 0.6298 GB, free: 64.04 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006634/1.053, allocations: 4.362 MB / 0.6341 GB, free: 60.14 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001643/1.055, allocations: 2.241 MB / 0.6363 GB, free: 58.36 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003057/1.058, allocations: 1.439 MB / 0.6377 GB, free: 57.47 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003655/1.058, allocations: 158.7 kB / 0.6378 GB, free: 57.32 MB / 426.7 MB Notification: Performance of SimCode: time 5.81e-07/1.058, allocations: 0 / 0.6378 GB, free: 57.32 MB / 426.7 MB Notification: Performance of Templates: time 0.03216/1.09, allocations: 19.11 MB / 0.6565 GB, free: 42.15 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (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) 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","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches