Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008952/0.0008953, allocations: 177.3 kB / 17.41 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.329/1.329, allocations: 205.4 MB / 223.6 MB, free: 9.039 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007572/0.0007573, allocations: 81.42 kB / 271.9 MB, free: 8.289 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003112/0.0003115, allocations: 11.98 kB / 328.2 MB, free: 15.96 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2054/0.2057, allocations: 47.57 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0964/0.3022, allocations: 90.7 MB / 466.4 MB, free: 5.93 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002498/0.3025, allocations: 91.95 kB / 466.5 MB, free: 5.84 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3164/0.6189, allocations: 56.86 MB / 0.5111 GB, free: 93.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.6189, allocations: 0.6562 kB / 0.5111 GB, free: 93.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001016/0.619, allocations: 43.75 kB / 0.5112 GB, free: 93.82 MB / 378.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.007387/0.6264, allocations: 2.589 MB / 0.5137 GB, free: 92.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.6265, allocations: 10.97 kB / 0.5137 GB, free: 92.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007718/0.6342, allocations: 1.936 MB / 0.5156 GB, free: 92.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004517/0.6388, allocations: 2.227 MB / 0.5178 GB, free: 91.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000202/0.639, allocations: 176.1 kB / 0.5179 GB, free: 91.87 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001045/0.6401, allocations: 234.4 kB / 0.5181 GB, free: 91.87 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01071/0.6508, allocations: 6.798 MB / 0.5248 GB, free: 88.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001316/0.651, allocations: 46.19 kB / 0.5248 GB, free: 88.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006953/0.6517, allocations: 128.6 kB / 0.525 GB, free: 88.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009224/0.6526, allocations: 0.7229 MB / 0.5257 GB, free: 87.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008942/0.6616, allocations: 5.801 MB / 0.5313 GB, free: 82.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02637/0.688, allocations: 33.38 MB / 0.5639 GB, free: 48.47 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003833/0.6918, allocations: 2.286 MB / 0.5662 GB, free: 46.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001099/0.693, allocations: 1.018 MB / 0.5672 GB, free: 45 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.863e-05/0.693, allocations: 23.16 kB / 0.5672 GB, free: 44.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.6931, allocations: 42.5 kB / 0.5672 GB, free: 44.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 4.358e-06/0.6931, allocations: 0 / 0.5672 GB, free: 44.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=106): time 0.01821/0.7113, allocations: 8.485 MB / 0.5755 GB, free: 36.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.802e-05/0.7114, allocations: 136.5 kB / 0.5756 GB, free: 36.15 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004074/0.7155, allocations: 2.852 MB / 0.5784 GB, free: 33.29 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001494/0.7157, allocations: 41.7 kB / 0.5785 GB, free: 33.24 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009935/0.7167, allocations: 2.076 MB / 0.5805 GB, free: 31.17 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00038/0.7171, allocations: 434.1 kB / 0.5809 GB, free: 30.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002532/0.7173, allocations: 91.59 kB / 0.581 GB, free: 30.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002261/0.7176, allocations: 0.4917 MB / 0.5815 GB, free: 30.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001972/0.7195, allocations: 1.414 MB / 0.5828 GB, free: 28.74 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002871/0.7224, allocations: 4.228 MB / 0.587 GB, free: 23.08 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005062/0.7275, allocations: 6.119 MB / 0.593 GB, free: 15.56 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.88e-05/0.7276, allocations: 31.94 kB / 0.593 GB, free: 15.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=567) (initialization): time 0.00932/0.7369, allocations: 6.081 MB / 0.5989 GB, free: 9.434 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.429e-05/0.737, allocations: 48 kB / 0.599 GB, free: 9.387 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001183/0.7372, allocations: 100.3 kB / 0.5991 GB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002001/0.7392, allocations: 0.7934 MB / 0.5998 GB, free: 8.492 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002766/0.7419, allocations: 1.002 MB / 0.6008 GB, free: 7.488 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004584/0.7465, allocations: 4.107 MB / 0.6048 GB, free: 3.254 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003301/0.7499, allocations: 291.3 kB / 0.6051 GB, free: 2.973 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005955/0.7505, allocations: 272 kB / 0.6054 GB, free: 2.707 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 457 * 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 (531): * Single equations (assignments): 527 * 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.00226/0.7527, allocations: 1.375 MB / 0.6067 GB, free: 1.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004383/0.7532, allocations: 236.9 kB / 0.6069 GB, free: 1.086 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00379/0.757, allocations: 1.85 MB / 0.6087 GB, free: 15.22 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.152e-05/0.757, allocations: 12 kB / 0.6087 GB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.555e-05/0.7571, allocations: 4 kB / 0.6088 GB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.421e-05/0.7571, allocations: 3.984 kB / 0.6088 GB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009871/0.767, allocations: 4.811 MB / 0.6135 GB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.31e-05/0.767, allocations: 12 kB / 0.6135 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000628/0.7677, allocations: 139.8 kB / 0.6136 GB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001945/0.7696, allocations: 0.6327 MB / 0.6142 GB, free: 9.543 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.7697, allocations: 27.92 kB / 0.6142 GB, free: 9.516 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004627/0.7744, allocations: 3.635 MB / 0.6178 GB, free: 5.746 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/0.7744, allocations: 4.031 kB / 0.6178 GB, free: 5.742 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005692/0.7801, allocations: 3.673 MB / 0.6214 GB, free: 2.043 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001064/0.7812, allocations: 449.8 kB / 0.6218 GB, free: 1.582 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004902/0.7817, allocations: 23.94 kB / 0.6218 GB, free: 1.559 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/0.7828, allocations: 71.89 kB / 0.6219 GB, free: 1.488 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001589/0.783, allocations: 51.92 kB / 0.622 GB, free: 1.438 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.016e-05/0.7831, allocations: 28 kB / 0.622 GB, free: 1.41 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003745/0.7868, allocations: 1.786 MB / 0.6237 GB, free: 15.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.7868, allocations: 0 / 0.6237 GB, free: 15.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004241/0.7911, allocations: 0.6484 MB / 0.6244 GB, free: 14.97 MB / 410.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.0004946/0.7916, allocations: 152 kB / 0.6245 GB, free: 14.81 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005494/0.7971, allocations: 3.415 MB / 0.6278 GB, free: 11.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.7971, allocations: 0 / 0.6278 GB, free: 11.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001223/0.7984, allocations: 0.9278 MB / 0.6287 GB, free: 10.47 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002078/0.8005, allocations: 245.5 kB / 0.629 GB, free: 10.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01133/0.8118, allocations: 6.745 MB / 0.6356 GB, free: 3.438 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002899/0.8147, allocations: 2.19 MB / 0.6377 GB, free: 1.223 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000741/0.8155, allocations: 203.3 kB / 0.6379 GB, free: 1.023 MB / 410.7 MB Notification: Performance of SimCode: time 1.213e-06/0.8155, allocations: 0 / 0.6379 GB, free: 1.023 MB / 410.7 MB Notification: Performance of Templates: time 0.2335/1.049, allocations: 46.87 MB / 0.6837 GB, free: 118.1 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches