Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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.DoublePendulumInitTip,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001516/0.001516, allocations: 177.9 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.014/2.014, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001061/0.001061, allocations: 87.2 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.802e-05/2.814e-05, allocations: 0 / 314.8 MB, free: 9.164 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3698/0.3699, allocations: 47.57 MB / 362.3 MB, free: 45.88 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1672/0.5371, allocations: 96.94 MB / 459.3 MB, free: 5.344 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003258/0.5375, allocations: 87.95 kB / 459.4 MB, free: 5.258 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8438/1.381, allocations: 93.09 MB / 0.5395 GB, free: 95.09 MB / 395.1 MB Notification: Performance of FrontEnd: time 5.17e-06/1.381, allocations: 3.781 kB / 0.5395 GB, free: 95.09 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0004629/1.382, allocations: 92.17 kB / 0.5396 GB, free: 95.09 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1556 * Number of variables: 1556 Notification: Performance of Generate backend data structure: time 0.0255/1.407, allocations: 4.498 MB / 0.544 GB, free: 92.61 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.605e-05/1.407, allocations: 7.094 kB / 0.544 GB, free: 92.61 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07592/1.483, allocations: 6.735 MB / 0.5506 GB, free: 89.19 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02413/1.508, allocations: 6.17 MB / 0.5566 GB, free: 84.85 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003171/1.508, allocations: 144 kB / 0.5567 GB, free: 84.71 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002364/1.51, allocations: 259.9 kB / 0.557 GB, free: 84.46 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0154/1.526, allocations: 6.209 MB / 0.563 GB, free: 78.24 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0241/1.55, allocations: 9.439 MB / 0.5723 GB, free: 67.84 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003168/1.55, allocations: 63.38 kB / 0.5723 GB, free: 67.78 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001778/1.552, allocations: 31.61 kB / 0.5724 GB, free: 67.75 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002211/1.554, allocations: 1.023 MB / 0.5734 GB, free: 66.73 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06717/1.622, allocations: 44.2 MB / 0.6165 GB, free: 21.54 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005837/1.627, allocations: 3.19 MB / 0.6196 GB, free: 18.21 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003382/1.631, allocations: 1.967 MB / 0.6216 GB, free: 16.23 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008849/1.632, allocations: 0.6516 MB / 0.6222 GB, free: 15.47 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.142e-05/1.632, allocations: 59.8 kB / 0.6223 GB, free: 15.41 MB / 395.1 MB Notification: Performance of pre-optimization done (n=175): time 5.51e-06/1.632, allocations: 0 / 0.6223 GB, free: 15.41 MB / 395.1 MB Notification: Performance of matching and sorting (n=210): time 0.06415/1.696, allocations: 18.36 MB / 0.6402 GB, free: 12.96 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001721/1.696, allocations: 260.6 kB / 0.6404 GB, free: 12.65 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008473/1.705, allocations: 3.261 MB / 0.6436 GB, free: 9.367 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005486/1.705, allocations: 25.7 kB / 0.6436 GB, free: 9.336 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003981/1.709, allocations: 3.237 MB / 0.6468 GB, free: 6.055 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001629/1.711, allocations: 0.7748 MB / 0.6476 GB, free: 5.27 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007874/1.712, allocations: 0 / 0.6476 GB, free: 5.27 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0006427/1.713, allocations: 0.5751 MB / 0.6481 GB, free: 4.684 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006038/1.719, allocations: 2.136 MB / 0.6502 GB, free: 2.543 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.297/2.016, allocations: 5.813 MB / 0.6559 GB, free: 95.04 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007635/2.023, allocations: 3.493 MB / 0.6593 GB, free: 95.02 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001812/2.024, allocations: 35.62 kB / 0.6593 GB, free: 95.02 MB / 411.1 MB Notification: Performance of matching and sorting (n=812) (initialization): time 0.03068/2.054, allocations: 8.647 MB / 0.6678 GB, free: 94.44 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001467/2.055, allocations: 64.91 kB / 0.6678 GB, free: 94.43 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003165/2.055, allocations: 130.3 kB / 0.668 GB, free: 94.43 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01108/2.066, allocations: 1.959 MB / 0.6699 GB, free: 94.4 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008694/2.075, allocations: 1.347 MB / 0.6712 GB, free: 94.27 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02912/2.104, allocations: 14.13 MB / 0.685 GB, free: 88.41 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007079/2.111, allocations: 227.4 kB / 0.6852 GB, free: 88.41 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001618/2.113, allocations: 375.4 kB / 0.6856 GB, free: 88.37 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 596 * Number of states: 0 () * Number of discrete variables: 33 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (724): * Single equations (assignments): 718 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,80.0%) 33,(3,100.0%) 11} * Non-linear torn systems: 1 {2 13} Notification: Performance of prepare postOptimizeDAE: time 0.001561/2.114, allocations: 433.6 kB / 0.686 GB, free: 88.09 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009611/2.115, allocations: 362.8 kB / 0.6863 GB, free: 88.09 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01228/2.128, allocations: 4 MB / 0.6902 GB, free: 86.72 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.271e-05/2.128, allocations: 30.42 kB / 0.6903 GB, free: 86.72 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.762e-05/2.128, allocations: 5.094 kB / 0.6903 GB, free: 86.72 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.387e-05/2.128, allocations: 11.5 kB / 0.6903 GB, free: 86.72 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02932/2.157, allocations: 8.991 MB / 0.6991 GB, free: 83.4 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.235e-05/2.157, allocations: 2.531 kB / 0.6991 GB, free: 83.4 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002918/2.16, allocations: 302.3 kB / 0.6993 GB, free: 83.38 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006443/2.167, allocations: 1.197 MB / 0.7005 GB, free: 83.13 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005319/2.167, allocations: 8.547 kB / 0.7005 GB, free: 83.13 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01534/2.183, allocations: 7.032 MB / 0.7074 GB, free: 79.8 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.236e-06/2.183, allocations: 5.672 kB / 0.7074 GB, free: 79.8 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0187/2.201, allocations: 6.97 MB / 0.7142 GB, free: 76.7 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002492/2.204, allocations: 0.7037 MB / 0.7149 GB, free: 76.04 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007/2.205, allocations: 3.609 kB / 0.7149 GB, free: 76.04 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002717/2.207, allocations: 89.03 kB / 0.715 GB, free: 75.99 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004931/2.208, allocations: 117.6 kB / 0.7151 GB, free: 75.91 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002192/2.208, allocations: 56.83 kB / 0.7151 GB, free: 75.86 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.004572/2.213, allocations: 2.209 MB / 0.7173 GB, free: 73.93 MB / 411.1 MB Notification: Performance of sort global known variables: time 5.31e-07/2.213, allocations: 3.938 kB / 0.7173 GB, free: 73.92 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.00778/2.221, allocations: 0.986 MB / 0.7183 GB, free: 72.95 MB / 411.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 153 * 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.0007241/2.221, allocations: 147.4 kB / 0.7184 GB, free: 72.81 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.01318/2.234, allocations: 5.778 MB / 0.724 GB, free: 67.58 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/2.235, allocations: 0 / 0.724 GB, free: 67.58 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004914/2.239, allocations: 2.01 MB / 0.726 GB, free: 65.78 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003943/2.243, allocations: 459.7 kB / 0.7265 GB, free: 65.41 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02423/2.268, allocations: 8.989 MB / 0.7352 GB, free: 57.46 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007229/2.275, allocations: 3.629 MB / 0.7388 GB, free: 54.71 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001592/2.277, allocations: 290 kB / 0.739 GB, free: 54.44 MB / 411.1 MB Notification: Performance of SimCode: time 8.81e-07/2.277, allocations: 4 kB / 0.7391 GB, free: 54.44 MB / 411.1 MB Notification: Performance of Templates: time 0.4911/2.768, allocations: 97.3 MB / 0.8341 GB, free: 104.5 MB / 427.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulumInitTip/DoublePendulumInitTip.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches