Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001407/0.001407, allocations: 197.1 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 226.5 MB / 245.4 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007434/0.0007435, allocations: 94.92 kB / 297.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002382/0.0002382, allocations: 12 kB / 358.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2423, allocations: 51.28 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1133/0.3557, allocations: 94.4 MB / 0.492 GB, free: 13.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.356, allocations: 91.95 kB / 0.4921 GB, free: 12.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.383/0.739, allocations: 83.88 MB / 0.574 GB, free: 37.79 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.7391, allocations: 7.938 kB / 0.574 GB, free: 37.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002824/0.7394, allocations: 72 kB / 0.574 GB, free: 37.71 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01342/0.7528, allocations: 4.215 MB / 0.5782 GB, free: 33.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.7529, allocations: 12.03 kB / 0.5782 GB, free: 33.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01897/0.7719, allocations: 4.96 MB / 0.583 GB, free: 28.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01063/0.7825, allocations: 4.207 MB / 0.5871 GB, free: 24.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003635/0.7829, allocations: 267.4 kB / 0.5874 GB, free: 23.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00202/0.785, allocations: 360.2 kB / 0.5877 GB, free: 23.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01781/0.8028, allocations: 9.052 MB / 0.5966 GB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000272/0.8031, allocations: 59.62 kB / 0.5966 GB, free: 13.53 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001303/0.8044, allocations: 179.8 kB / 0.5968 GB, free: 13.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001167/0.8056, allocations: 0.8923 MB / 0.5977 GB, free: 12.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0153/0.8209, allocations: 7.514 MB / 0.605 GB, free: 4.934 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04741/0.8684, allocations: 42.22 MB / 0.6462 GB, free: 9.316 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007934/0.8764, allocations: 3.68 MB / 0.6498 GB, free: 5.484 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002421/0.8788, allocations: 1.954 MB / 0.6517 GB, free: 3.523 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004105/0.8793, allocations: 336.4 kB / 0.6521 GB, free: 3.137 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/0.8793, allocations: 59.44 kB / 0.6521 GB, free: 3.07 MB / 426.7 MB Notification: Performance of pre-optimization done (n=160): time 5.069e-06/0.8793, allocations: 0 / 0.6521 GB, free: 3.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=189): time 0.05315/0.9325, allocations: 18.76 MB / 0.6704 GB, free: 196 kB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2336/1.166, allocations: 252.6 kB / 0.6707 GB, free: 109.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005659/1.172, allocations: 3.878 MB / 0.6745 GB, free: 109.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004133/1.172, allocations: 53.23 kB / 0.6745 GB, free: 109.5 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001389/1.174, allocations: 2.834 MB / 0.6773 GB, free: 108.8 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006685/1.174, allocations: 0.7187 MB / 0.678 GB, free: 108.5 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002196/1.175, allocations: 108.3 kB / 0.6781 GB, free: 108.5 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002629/1.175, allocations: 0.5387 MB / 0.6786 GB, free: 108.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002743/1.178, allocations: 2.079 MB / 0.6806 GB, free: 108.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003707/1.181, allocations: 5.345 MB / 0.6859 GB, free: 104 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007965/1.189, allocations: 8.065 MB / 0.6937 GB, free: 99.86 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001563/1.189, allocations: 35.28 kB / 0.6938 GB, free: 99.86 MB / 442.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01513/1.205, allocations: 8.42 MB / 0.702 GB, free: 98.15 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.801e-05/1.205, allocations: 59.25 kB / 0.702 GB, free: 98.15 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001392/1.205, allocations: 111.2 kB / 0.7021 GB, free: 98.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003443/1.208, allocations: 1.367 MB / 0.7035 GB, free: 97.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003862/1.212, allocations: 1.23 MB / 0.7047 GB, free: 97.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01008/1.222, allocations: 8.418 MB / 0.7129 GB, free: 93.73 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004534/1.227, allocations: 314.6 kB / 0.7132 GB, free: 93.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00108/1.228, allocations: 334.9 kB / 0.7135 GB, free: 93.59 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 519 * Number of states: 0 () * Number of discrete variables: 30 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (653): * Single equations (assignments): 649 * 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 {(2,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004329/1.232, allocations: 1.942 MB / 0.7154 GB, free: 92.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008718/1.233, allocations: 356.7 kB / 0.7158 GB, free: 92.51 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007366/1.241, allocations: 3.915 MB / 0.7196 GB, free: 91.11 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.177e-05/1.241, allocations: 20.41 kB / 0.7196 GB, free: 91.11 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.634e-05/1.241, allocations: 13.88 kB / 0.7196 GB, free: 91.11 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-05/1.241, allocations: 11.3 kB / 0.7196 GB, free: 91.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01649/1.257, allocations: 8.901 MB / 0.7283 GB, free: 87.74 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.39e-05/1.257, allocations: 3.781 kB / 0.7283 GB, free: 87.74 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001173/1.259, allocations: 260 kB / 0.7286 GB, free: 87.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003166/1.262, allocations: 1.217 MB / 0.7298 GB, free: 86.94 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001969/1.262, allocations: 31.19 kB / 0.7298 GB, free: 86.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008826/1.271, allocations: 7.58 MB / 0.7372 GB, free: 80.32 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/1.271, allocations: 4 kB / 0.7372 GB, free: 80.32 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009195/1.28, allocations: 6.672 MB / 0.7437 GB, free: 74.61 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009824/1.281, allocations: 410.3 kB / 0.7441 GB, free: 74.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007799/1.282, allocations: 32 kB / 0.7441 GB, free: 74.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001766/1.284, allocations: 115.8 kB / 0.7442 GB, free: 74.09 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003372/1.284, allocations: 107.8 kB / 0.7443 GB, free: 74.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000127/1.284, allocations: 50.53 kB / 0.7444 GB, free: 73.98 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004025/1.288, allocations: 2.444 MB / 0.7468 GB, free: 71.95 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.6e-07/1.288, allocations: 0 / 0.7468 GB, free: 71.95 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004596/1.293, allocations: 1.004 MB / 0.7478 GB, free: 70.95 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (135): * Single equations (assignments): 131 * 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 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004428/1.293, allocations: 177.5 kB / 0.7479 GB, free: 70.79 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006746/1.3, allocations: 5.185 MB / 0.753 GB, free: 66.21 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/1.3, allocations: 4 kB / 0.753 GB, free: 66.21 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002849/1.303, allocations: 1.98 MB / 0.7549 GB, free: 64.48 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00432/1.307, allocations: 477.9 kB / 0.7554 GB, free: 64.08 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01596/1.323, allocations: 10.55 MB / 0.7657 GB, free: 54.47 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004317/1.327, allocations: 3.082 MB / 0.7687 GB, free: 52.05 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005358/1.333, allocations: 1.823 MB / 0.7705 GB, free: 50.89 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009557/1.334, allocations: 238.8 kB / 0.7707 GB, free: 50.67 MB / 442.7 MB Notification: Performance of SimCode: time 2.405e-06/1.334, allocations: 0 / 0.7707 GB, free: 50.67 MB / 442.7 MB Notification: Performance of Templates: time 0.06373/1.398, allocations: 38.84 MB / 0.8086 GB, free: 14.08 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches