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.0009906/0.0009905, allocations: 200 kB / 18.06 MB, free: 3.648 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 226.5 MB / 245.4 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000928/0.0009278, allocations: 95.17 kB / 297.4 MB, free: 6.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002863/0.0002864, allocations: 8 kB / 357.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3043/0.3046, allocations: 51.29 MB / 408.7 MB, free: 27.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1287/0.4334, allocations: 92.49 MB / 0.4894 GB, free: 15.04 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003668/0.4338, allocations: 95.95 kB / 0.4895 GB, free: 14.95 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4187/0.8525, allocations: 57.81 MB / 0.546 GB, free: 65.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.8526, allocations: 4 kB / 0.546 GB, free: 65.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.239e-05/0.8527, allocations: 44 kB / 0.546 GB, free: 65.68 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.005294/0.858, allocations: 2.595 MB / 0.5485 GB, free: 63.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.858, allocations: 8.031 kB / 0.5485 GB, free: 63.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007398/0.8654, allocations: 1.943 MB / 0.5504 GB, free: 61.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003866/0.8693, allocations: 1.973 MB / 0.5524 GB, free: 59.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001104/0.8695, allocations: 184.9 kB / 0.5525 GB, free: 58.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005973/0.8701, allocations: 236.3 kB / 0.5528 GB, free: 58.63 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008546/0.8786, allocations: 6.807 MB / 0.5594 GB, free: 51.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.029e-05/0.8787, allocations: 43.72 kB / 0.5595 GB, free: 50.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003379/0.8791, allocations: 123.9 kB / 0.5596 GB, free: 50.86 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007331/0.8798, allocations: 0.7111 MB / 0.5603 GB, free: 50.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008536/0.8884, allocations: 5.817 MB / 0.566 GB, free: 44.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02483/0.9132, allocations: 33.36 MB / 0.5985 GB, free: 9.812 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003625/0.9169, allocations: 2.294 MB / 0.6008 GB, free: 7.371 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001066/0.918, allocations: 1.018 MB / 0.6018 GB, free: 6.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.845e-05/0.918, allocations: 11.92 kB / 0.6018 GB, free: 6.328 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.9181, allocations: 50.5 kB / 0.6018 GB, free: 6.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 3.467e-06/0.9181, allocations: 4 kB / 0.6018 GB, free: 6.266 MB / 378.7 MB Notification: Performance of matching and sorting (n=106): time 0.0171/0.9352, allocations: 8.411 MB / 0.61 GB, free: 13.7 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.734e-05/0.9353, allocations: 144.5 kB / 0.6102 GB, free: 13.53 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003653/0.9389, allocations: 2.839 MB / 0.6129 GB, free: 10.68 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001102/0.9391, allocations: 41.7 kB / 0.613 GB, free: 10.63 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001162/0.9402, allocations: 2.079 MB / 0.615 GB, free: 8.52 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003547/0.9406, allocations: 434.7 kB / 0.6154 GB, free: 8.09 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001714/0.9408, allocations: 84 kB / 0.6155 GB, free: 8.008 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002515/0.941, allocations: 0.4995 MB / 0.616 GB, free: 7.5 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002084/0.9431, allocations: 1.41 MB / 0.6174 GB, free: 6.082 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003457/0.9466, allocations: 4.232 MB / 0.6215 GB, free: 436 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006644/0.9533, allocations: 6.12 MB / 0.6275 GB, free: 8.898 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.411e-05/0.9533, allocations: 35.94 kB / 0.6275 GB, free: 8.863 MB / 410.7 MB Notification: Performance of matching and sorting (n=567) (initialization): time 0.01002/0.9634, allocations: 6.08 MB / 0.6335 GB, free: 2.773 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.848e-05/0.9634, allocations: 48 kB / 0.6335 GB, free: 2.727 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.106e-05/0.9635, allocations: 100.9 kB / 0.6336 GB, free: 2.629 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002113/0.9657, allocations: 0.7889 MB / 0.6344 GB, free: 1.836 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002705/0.9684, allocations: 0.9981 MB / 0.6353 GB, free: 0.8359 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005276/0.9737, allocations: 4.106 MB / 0.6394 GB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003239/0.9769, allocations: 287.6 kB / 0.6396 GB, free: 12.31 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004377/0.9774, allocations: 276 kB / 0.6399 GB, free: 12.04 MB / 426.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.002106/0.9795, allocations: 1.368 MB / 0.6412 GB, free: 10.66 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003512/0.9798, allocations: 236.8 kB / 0.6415 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003729/0.9836, allocations: 1.849 MB / 0.6433 GB, free: 8.559 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.239e-05/0.9836, allocations: 16 kB / 0.6433 GB, free: 8.543 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.9836, allocations: 4 kB / 0.6433 GB, free: 8.539 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.9836, allocations: 3.984 kB / 0.6433 GB, free: 8.535 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008323/0.992, allocations: 4.821 MB / 0.648 GB, free: 3.637 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.992, allocations: 0 / 0.648 GB, free: 3.637 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005926/0.9926, allocations: 135.8 kB / 0.6481 GB, free: 3.504 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001863/0.9945, allocations: 0.6444 MB / 0.6488 GB, free: 2.855 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-05/0.9946, allocations: 27.94 kB / 0.6488 GB, free: 2.828 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004473/0.9991, allocations: 3.633 MB / 0.6523 GB, free: 15.07 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.9991, allocations: 0 / 0.6523 GB, free: 15.07 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005676/1.005, allocations: 3.675 MB / 0.6559 GB, free: 11.36 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000885/1.006, allocations: 297.8 kB / 0.6562 GB, free: 11.05 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002345/1.006, allocations: 19.94 kB / 0.6562 GB, free: 11.03 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009105/1.007, allocations: 71.97 kB / 0.6563 GB, free: 10.96 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001957/1.007, allocations: 55.86 kB / 0.6563 GB, free: 10.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.545e-05/1.007, allocations: 39.97 kB / 0.6564 GB, free: 10.86 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002927/1.01, allocations: 1.766 MB / 0.6581 GB, free: 9.09 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.01, allocations: 4 kB / 0.6581 GB, free: 9.086 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003201/1.013, allocations: 0.6523 MB / 0.6587 GB, free: 8.434 MB / 442.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.0003681/1.014, allocations: 159 kB / 0.6589 GB, free: 8.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00527/1.019, allocations: 3.41 MB / 0.6622 GB, free: 4.871 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/1.019, allocations: 0 / 0.6622 GB, free: 4.871 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001228/1.02, allocations: 0.9238 MB / 0.6631 GB, free: 3.934 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001912/1.022, allocations: 246.7 kB / 0.6634 GB, free: 3.695 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2245/1.247, allocations: 6.715 MB / 0.6699 GB, free: 123.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002457/1.249, allocations: 2.193 MB / 0.6721 GB, free: 122.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007764/1.25, allocations: 196.8 kB / 0.6722 GB, free: 122.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.713e-06/1.25, allocations: 3.281 kB / 0.6722 GB, free: 122.6 MB / 442.7 MB Notification: Performance of Templates: time 0.08325/1.333, allocations: 46.83 MB / 0.718 GB, free: 101.4 MB / 442.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/jenkins1/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