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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0007796/0.0007797, allocations: 98 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009531/0.0009532, allocations: 200.5 kB / 17.91 MB, free: 5.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002124/0.0002125, allocations: 4 kB / 307.1 MB, free: 1.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1003, allocations: 51.53 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.2127/0.313, allocations: 34.5 MB / 393.1 MB, free: 1.355 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02132/0.3344, allocations: 8.097 MB / 401.2 MB, free: 11.86 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009995/0.3445, allocations: 166.1 kB / 401.4 MB, free: 11.83 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005762/0.3502, allocations: 1.768 MB / 403.2 MB, free: 11.13 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01619/0.3665, allocations: 5.418 MB / 408.6 MB, free: 7.465 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002886/0.3694, allocations: 0.6294 MB / 409.2 MB, free: 7.074 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.08006/0.4494, allocations: 60.82 MB / 470 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00636/0.4558, allocations: 3.488 MB / 473.5 MB, free: 8.254 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002899/0.4588, allocations: 1.241 MB / 474.8 MB, free: 7.008 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003442/0.4622, allocations: 1.959 MB / 476.7 MB, free: 5.043 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009426/0.4632, allocations: 132 kB / 476.9 MB, free: 4.914 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00249/0.4657, allocations: 0.9167 MB / 477.8 MB, free: 3.996 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002257/0.468, allocations: 1.636 MB / 479.4 MB, free: 2.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001327/0.4693, allocations: 0.7648 MB / 480.2 MB, free: 1.582 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005589/0.4749, allocations: 5.062 MB / 485.2 MB, free: 12.51 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.475, allocations: 0 / 485.2 MB, free: 12.51 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.475, allocations: 3.938 kB / 485.2 MB, free: 12.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001633/0.4752, allocations: 0 / 485.2 MB, free: 12.5 MB / 398.1 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.008316/0.4835, allocations: 3.919 MB / 489.2 MB, free: 8.516 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.4835, allocations: 12.03 kB / 489.2 MB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02144/0.505, allocations: 3.158 MB / 492.3 MB, free: 5.336 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008278/0.5133, allocations: 3.163 MB / 495.5 MB, free: 2.113 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000175/0.5135, allocations: 201 kB / 495.7 MB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007724/0.5143, allocations: 271.8 kB / 495.9 MB, free: 1.648 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0147/0.529, allocations: 8.855 MB / 0.493 GB, free: 8.141 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001286/0.5292, allocations: 51.48 kB / 0.493 GB, free: 8.09 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003447/0.5295, allocations: 127.9 kB / 0.4931 GB, free: 7.965 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002812/0.5324, allocations: 1.77 MB / 0.4949 GB, free: 6.188 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0138/0.5462, allocations: 7.772 MB / 0.5025 GB, free: 14.41 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2264/0.7726, allocations: 36.01 MB / 0.5376 GB, free: 127.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007402/0.78, allocations: 3.808 MB / 0.5413 GB, free: 127.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002517/0.7826, allocations: 2.162 MB / 0.5435 GB, free: 127.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003506/0.7829, allocations: 325.3 kB / 0.5438 GB, free: 126.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.24e-05/0.783, allocations: 54.7 kB / 0.5438 GB, free: 126.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 3.947e-06/0.783, allocations: 0 / 0.5438 GB, free: 126.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.05059/0.8336, allocations: 21.38 MB / 0.5647 GB, free: 119.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.373e-05/0.8337, allocations: 254.6 kB / 0.5649 GB, free: 119.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004409/0.8381, allocations: 3.908 MB / 0.5688 GB, free: 116.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001768/0.8383, allocations: 58.88 kB / 0.5688 GB, free: 116.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001247/0.8396, allocations: 2.769 MB / 0.5715 GB, free: 113.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004931/0.8401, allocations: 0.7274 MB / 0.5722 GB, free: 112.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002408/0.8403, allocations: 112 kB / 0.5723 GB, free: 112.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002124/0.8405, allocations: 0.5497 MB / 0.5729 GB, free: 112.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002591/0.8431, allocations: 2.361 MB / 0.5752 GB, free: 109.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003579/0.8467, allocations: 5.622 MB / 0.5807 GB, free: 102.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003662/0.8504, allocations: 3.561 MB / 0.5841 GB, free: 99.43 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.635e-05/0.8505, allocations: 32 kB / 0.5842 GB, free: 99.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01293/0.8634, allocations: 9.576 MB / 0.5935 GB, free: 89.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.905e-05/0.8635, allocations: 58.61 kB / 0.5936 GB, free: 89.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.836e-05/0.8635, allocations: 112 kB / 0.5937 GB, free: 89.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004522/0.8681, allocations: 2.053 MB / 0.5957 GB, free: 87.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003279/0.8714, allocations: 1.283 MB / 0.597 GB, free: 86.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0116/0.883, allocations: 10.51 MB / 0.6072 GB, free: 75.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003999/0.887, allocations: 347.4 kB / 0.6075 GB, free: 75.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004427/0.8875, allocations: 336.8 kB / 0.6079 GB, free: 75.03 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * 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 (688): * Single equations (assignments): 684 * 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%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002397/0.8899, allocations: 1.943 MB / 0.6098 GB, free: 73.08 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004639/0.8903, allocations: 347.5 kB / 0.6101 GB, free: 72.73 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007908/0.8983, allocations: 4.879 MB / 0.6149 GB, free: 67.84 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.604e-05/0.8983, allocations: 24 kB / 0.6149 GB, free: 67.82 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.217e-05/0.8983, allocations: 4 kB / 0.6149 GB, free: 67.82 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.592e-05/0.8983, allocations: 11.97 kB / 0.6149 GB, free: 67.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01446/0.9128, allocations: 10.02 MB / 0.6247 GB, free: 57.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/0.9128, allocations: 4 kB / 0.6247 GB, free: 57.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/0.914, allocations: 263.6 kB / 0.6249 GB, free: 57.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004405/0.9184, allocations: 1.846 MB / 0.6268 GB, free: 55.63 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001435/0.9186, allocations: 32 kB / 0.6268 GB, free: 55.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0106/0.9292, allocations: 9.699 MB / 0.6363 GB, free: 45.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.9292, allocations: 4.031 kB / 0.6363 GB, free: 45.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01038/0.9396, allocations: 7.931 MB / 0.644 GB, free: 37.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008893/0.9405, allocations: 412.5 kB / 0.6444 GB, free: 37.38 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004227/0.9409, allocations: 32.94 kB / 0.6444 GB, free: 37.35 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001365/0.9423, allocations: 135.8 kB / 0.6446 GB, free: 37.21 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002645/0.9426, allocations: 116 kB / 0.6447 GB, free: 37.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/0.9427, allocations: 44 kB / 0.6447 GB, free: 37.06 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002837/0.9455, allocations: 2.46 MB / 0.6471 GB, free: 34.62 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.9455, allocations: 0 / 0.6471 GB, free: 34.62 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003934/0.9495, allocations: 1.053 MB / 0.6481 GB, free: 33.57 MB / 446.1 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 (136): * Single equations (assignments): 132 * 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%) 33} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004101/0.9499, allocations: 165 kB / 0.6483 GB, free: 33.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007259/0.9572, allocations: 5.788 MB / 0.654 GB, free: 27.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.9572, allocations: 0 / 0.654 GB, free: 27.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00238/0.9596, allocations: 2.095 MB / 0.656 GB, free: 25.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002474/0.9621, allocations: 458.5 kB / 0.6564 GB, free: 25.08 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01317/0.9752, allocations: 10.95 MB / 0.6671 GB, free: 14.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002536/0.9778, allocations: 3.083 MB / 0.6701 GB, free: 10.99 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003831/0.9817, allocations: 1.819 MB / 0.6719 GB, free: 9.16 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006248/0.9823, allocations: 239.4 kB / 0.6721 GB, free: 8.93 MB / 446.1 MB Notification: Performance of SimCode: time 9.42e-07/0.9823, allocations: 0 / 0.6721 GB, free: 8.93 MB / 446.1 MB Notification: Performance of Templates: time 0.2404/1.223, allocations: 41.64 MB / 0.7128 GB, free: 166.3 MB / 478.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches