Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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.DoublePendulumInitTip,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009919/0.0009921, allocations: 190.9 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 226.6 MB / 244.7 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007227/0.0007226, allocations: 100.2 kB / 296.8 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002409/0.000241, allocations: 4 kB / 356.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.215/0.2152, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.03352/0.2488, allocations: 45.66 MB / 453.7 MB, free: 13.89 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02092/0.2698, allocations: 10.29 MB / 464 MB, free: 3.578 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008095/0.2779, allocations: 223.4 kB / 464.2 MB, free: 3.359 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006942/0.2849, allocations: 2.383 MB / 466.6 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01859/0.3035, allocations: 7.074 MB / 473.7 MB, free: 9.867 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003497/0.307, allocations: 0.7333 MB / 474.4 MB, free: 9.133 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.2629/0.57, allocations: 61.4 MB / 0.5233 GB, free: 39.68 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006131/0.5761, allocations: 5.168 MB / 0.5283 GB, free: 39.03 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002023/0.5782, allocations: 1.39 MB / 0.5297 GB, free: 38.54 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002345/0.5806, allocations: 2.133 MB / 0.5317 GB, free: 37.1 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004968/0.5811, allocations: 147.1 kB / 0.5319 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001765/0.5828, allocations: 1.074 MB / 0.5329 GB, free: 36.12 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001484/0.5843, allocations: 1.857 MB / 0.5347 GB, free: 34.77 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002125/0.5865, allocations: 2.004 MB / 0.5367 GB, free: 34.07 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00486/0.5914, allocations: 5.918 MB / 0.5425 GB, free: 28.95 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.5914, allocations: 0 / 0.5425 GB, free: 28.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5914, allocations: 4 kB / 0.5425 GB, free: 28.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002204/0.5916, allocations: 0 / 0.5425 GB, free: 28.95 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: 1508 * Number of variables: 1508 Notification: Performance of Generate backend data structure: time 0.007611/0.5992, allocations: 4.343 MB / 0.5467 GB, free: 24.92 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.5993, allocations: 17.88 kB / 0.5467 GB, free: 24.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02164/0.6209, allocations: 3.24 MB / 0.5499 GB, free: 21.76 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007496/0.6285, allocations: 3.468 MB / 0.5533 GB, free: 19.21 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001626/0.6287, allocations: 240.7 kB / 0.5535 GB, free: 19.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001098/0.6298, allocations: 333.1 kB / 0.5538 GB, free: 18.87 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0136/0.6434, allocations: 10.02 MB / 0.5636 GB, free: 11.08 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001186/0.6436, allocations: 54.45 kB / 0.5637 GB, free: 11.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004165/0.644, allocations: 158.5 kB / 0.5638 GB, free: 11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002615/0.6466, allocations: 1.952 MB / 0.5657 GB, free: 9.371 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01407/0.6607, allocations: 8.572 MB / 0.5741 GB, free: 3.434 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04815/0.7089, allocations: 38.86 MB / 0.6121 GB, free: 0.5352 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008004/0.717, allocations: 3.955 MB / 0.6159 GB, free: 12.45 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002612/0.7196, allocations: 2.179 MB / 0.618 GB, free: 10.27 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000596/0.7202, allocations: 0.6517 MB / 0.6187 GB, free: 9.52 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.775e-05/0.7203, allocations: 55.56 kB / 0.6187 GB, free: 9.457 MB / 426.7 MB Notification: Performance of pre-optimization done (n=166): time 4.458e-06/0.7203, allocations: 0 / 0.6187 GB, free: 9.457 MB / 426.7 MB Notification: Performance of matching and sorting (n=201): time 0.05873/0.779, allocations: 22.57 MB / 0.6408 GB, free: 2.832 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001528/0.7792, allocations: 252.6 kB / 0.641 GB, free: 2.527 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007524/0.7868, allocations: 4.148 MB / 0.6451 GB, free: 14.36 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005048/0.7873, allocations: 53.7 kB / 0.6451 GB, free: 14.3 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002603/0.7899, allocations: 3.126 MB / 0.6482 GB, free: 11.19 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001173/0.7911, allocations: 0.7624 MB / 0.6489 GB, free: 10.44 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006495/0.7918, allocations: 124 kB / 0.649 GB, free: 10.32 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004962/0.7923, allocations: 0.5642 MB / 0.6496 GB, free: 9.746 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004173/0.7965, allocations: 2.471 MB / 0.652 GB, free: 7.27 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00655/0.803, allocations: 5.952 MB / 0.6578 GB, free: 15.65 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01135/0.8144, allocations: 9.03 MB / 0.6666 GB, free: 5.332 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.551e-05/0.8145, allocations: 39.88 kB / 0.6667 GB, free: 5.293 MB / 474.7 MB Notification: Performance of matching and sorting (n=797) (initialization): time 0.02/0.8345, allocations: 10.51 MB / 0.6769 GB, free: 10.77 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001209/0.8347, allocations: 56 kB / 0.677 GB, free: 10.71 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001798/0.8349, allocations: 120.8 kB / 0.6771 GB, free: 10.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007128/0.842, allocations: 2.601 MB / 0.6796 GB, free: 7.984 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004184/0.8462, allocations: 1.306 MB / 0.6809 GB, free: 6.676 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2303/1.077, allocations: 17.22 MB / 0.6977 GB, free: 181.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004186/1.081, allocations: 360.5 kB / 0.6981 GB, free: 181.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006322/1.081, allocations: 364.1 kB / 0.6984 GB, free: 181.3 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 35 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (709): * Single equations (assignments): 703 * 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 {(3,88.9%) 35,(2,100.0%) 12} * Non-linear torn systems: 1 {2 13} Notification: Performance of prepare postOptimizeDAE: time 0.003/1.084, allocations: 2.174 MB / 0.7005 GB, free: 180.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000575/1.085, allocations: 369.8 kB / 0.7009 GB, free: 180.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00836/1.093, allocations: 5.01 MB / 0.7058 GB, free: 178.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.488e-05/1.093, allocations: 30.91 kB / 0.7058 GB, free: 178.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/1.093, allocations: 7.844 kB / 0.7058 GB, free: 178.9 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.957e-05/1.094, allocations: 11.44 kB / 0.7058 GB, free: 178.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01611/1.11, allocations: 10.83 MB / 0.7164 GB, free: 174.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.366e-05/1.11, allocations: 7.094 kB / 0.7164 GB, free: 174.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001183/1.111, allocations: 279.6 kB / 0.7167 GB, free: 174.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004537/1.115, allocations: 1.848 MB / 0.7185 GB, free: 172.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001965/1.116, allocations: 39.98 kB / 0.7185 GB, free: 172.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01052/1.126, allocations: 9.711 MB / 0.728 GB, free: 162.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/1.126, allocations: 2.406 kB / 0.728 GB, free: 162.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01071/1.137, allocations: 8.142 MB / 0.736 GB, free: 154.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001003/1.138, allocations: 433.2 kB / 0.7364 GB, free: 154.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003975/1.138, allocations: 35.28 kB / 0.7364 GB, free: 154.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001435/1.14, allocations: 143.7 kB / 0.7365 GB, free: 154.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003338/1.14, allocations: 125 kB / 0.7367 GB, free: 154.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001359/1.14, allocations: 48 kB / 0.7367 GB, free: 154.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003129/1.143, allocations: 2.6 MB / 0.7392 GB, free: 151.6 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.11e-07/1.143, allocations: 0 / 0.7392 GB, free: 151.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004104/1.148, allocations: 1.182 MB / 0.7404 GB, free: 150.4 MB / 490.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 (147): * Single equations (assignments): 143 * 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.000374/1.148, allocations: 173.7 kB / 0.7406 GB, free: 150.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007981/1.156, allocations: 6.41 MB / 0.7468 GB, free: 143.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/1.156, allocations: 2.188 kB / 0.7468 GB, free: 143.9 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002375/1.158, allocations: 2.148 MB / 0.7489 GB, free: 141.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003563/1.162, allocations: 0.5336 MB / 0.7495 GB, free: 141.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01513/1.177, allocations: 12.55 MB / 0.7617 GB, free: 128.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002722/1.18, allocations: 3.418 MB / 0.765 GB, free: 125.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009749/1.181, allocations: 291.4 kB / 0.7653 GB, free: 125 MB / 490.7 MB Notification: Performance of SimCode: time 8.82e-07/1.181, allocations: 0 / 0.7653 GB, free: 125 MB / 490.7 MB Notification: Performance of Templates: time 0.09125/1.272, allocations: 101 MB / 0.8639 GB, free: 24.07 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulumInitTip/DoublePendulumInitTip.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches