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.003004/0.003004, allocations: 196.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.738/1.738, allocations: 226.6 MB / 244.3 MB, free: 6.594 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001908/0.001909, allocations: 99.95 kB / 296.4 MB, free: 6.797 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002695/0.0002697, allocations: 4 kB / 356.2 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.2988, allocations: 51.29 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.03595/0.3348, allocations: 45.67 MB / 453.2 MB, free: 14.01 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02947/0.3643, allocations: 10.29 MB / 463.5 MB, free: 3.699 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01291/0.3773, allocations: 219.4 kB / 463.7 MB, free: 3.484 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008355/0.3857, allocations: 2.383 MB / 466.1 MB, free: 1.09 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02207/0.4078, allocations: 7.054 MB / 473.1 MB, free: 10.01 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003676/0.4115, allocations: 0.6942 MB / 473.8 MB, free: 9.312 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.3703/0.7818, allocations: 61.32 MB / 0.5226 GB, free: 39.95 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005887/0.7878, allocations: 4.621 MB / 0.5271 GB, free: 39.52 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001887/0.7897, allocations: 1.379 MB / 0.5284 GB, free: 39.37 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002134/0.7918, allocations: 2.137 MB / 0.5305 GB, free: 37.91 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004111/0.7923, allocations: 148 kB / 0.5307 GB, free: 37.77 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00147/0.7938, allocations: 0.929 MB / 0.5316 GB, free: 37.03 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001131/0.7949, allocations: 1.865 MB / 0.5334 GB, free: 35.67 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006707/0.7956, allocations: 0.8802 MB / 0.5343 GB, free: 35.36 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003763/0.7993, allocations: 5.903 MB / 0.54 GB, free: 30.26 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.7994, allocations: 0 / 0.54 GB, free: 30.26 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.7994, allocations: 0 / 0.54 GB, free: 30.26 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001129/0.7995, allocations: 0 / 0.54 GB, free: 30.26 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.007028/0.8065, allocations: 4.415 MB / 0.5443 GB, free: 26.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.8066, allocations: 8.031 kB / 0.5443 GB, free: 26.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02324/0.8298, allocations: 3.254 MB / 0.5475 GB, free: 23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007649/0.8375, allocations: 3.399 MB / 0.5508 GB, free: 20.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000141/0.8377, allocations: 248.8 kB / 0.5511 GB, free: 20.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009262/0.8386, allocations: 330.7 kB / 0.5514 GB, free: 20.17 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01414/0.8528, allocations: 10.02 MB / 0.5612 GB, free: 12.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001204/0.853, allocations: 52.12 kB / 0.5612 GB, free: 12.35 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004307/0.8534, allocations: 155.7 kB / 0.5614 GB, free: 12.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002779/0.8562, allocations: 1.957 MB / 0.5633 GB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01386/0.8701, allocations: 8.568 MB / 0.5717 GB, free: 4.734 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04697/0.9171, allocations: 38.84 MB / 0.6096 GB, free: 2.168 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008283/0.9254, allocations: 3.927 MB / 0.6134 GB, free: 14.11 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002704/0.9282, allocations: 2.183 MB / 0.6156 GB, free: 11.92 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000704/0.9289, allocations: 0.6433 MB / 0.6162 GB, free: 11.17 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.518e-05/0.929, allocations: 62.58 kB / 0.6162 GB, free: 11.11 MB / 426.7 MB Notification: Performance of pre-optimization done (n=166): time 5.44e-06/0.929, allocations: 0 / 0.6162 GB, free: 11.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=201): time 0.06133/0.9903, allocations: 22.57 MB / 0.6383 GB, free: 4.477 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.9905, allocations: 255.7 kB / 0.6385 GB, free: 4.176 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006372/0.9969, allocations: 4.15 MB / 0.6426 GB, free: 8 kB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005798/0.9975, allocations: 55.34 kB / 0.6426 GB, free: 15.95 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002536/1, allocations: 3.126 MB / 0.6457 GB, free: 12.84 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001336/1.001, allocations: 0.7623 MB / 0.6464 GB, free: 12.08 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00031/1.002, allocations: 120 kB / 0.6465 GB, free: 11.96 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004517/1.002, allocations: 0.5623 MB / 0.6471 GB, free: 11.39 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003865/1.006, allocations: 2.47 MB / 0.6495 GB, free: 8.918 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006679/1.013, allocations: 5.955 MB / 0.6553 GB, free: 1.289 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006179/1.019, allocations: 3.75 MB / 0.659 GB, free: 13.64 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-05/1.019, allocations: 35.95 kB / 0.659 GB, free: 13.61 MB / 474.7 MB Notification: Performance of matching and sorting (n=797) (initialization): time 0.02332/1.042, allocations: 10.5 MB / 0.6693 GB, free: 3.848 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001167/1.043, allocations: 56 kB / 0.6693 GB, free: 3.793 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001675/1.043, allocations: 120.8 kB / 0.6694 GB, free: 3.676 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008025/1.051, allocations: 2.623 MB / 0.672 GB, free: 1.047 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2659/1.317, allocations: 1.305 MB / 0.6733 GB, free: 170.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02479/1.342, allocations: 17.23 MB / 0.6901 GB, free: 163 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005997/1.348, allocations: 365.7 kB / 0.6904 GB, free: 162.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00118/1.349, allocations: 363.3 kB / 0.6908 GB, free: 162.8 MB / 474.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.004343/1.353, allocations: 2.17 MB / 0.6929 GB, free: 162 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009464/1.354, allocations: 373.2 kB / 0.6933 GB, free: 162 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008831/1.363, allocations: 5.018 MB / 0.6982 GB, free: 160.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.954e-05/1.363, allocations: 23.78 kB / 0.6982 GB, free: 160.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.641e-05/1.363, allocations: 11.33 kB / 0.6982 GB, free: 160.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.897e-05/1.363, allocations: 11.64 kB / 0.6982 GB, free: 160.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01794/1.381, allocations: 10.83 MB / 0.7088 GB, free: 152.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-05/1.381, allocations: 0 / 0.7088 GB, free: 152.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001373/1.383, allocations: 283.2 kB / 0.7091 GB, free: 152.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004712/1.387, allocations: 1.848 MB / 0.7109 GB, free: 150.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003055/1.388, allocations: 31.34 kB / 0.7109 GB, free: 150.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01111/1.399, allocations: 9.708 MB / 0.7204 GB, free: 140.9 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/1.399, allocations: 7.703 kB / 0.7204 GB, free: 140.9 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01145/1.41, allocations: 8.147 MB / 0.7283 GB, free: 132.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001419/1.412, allocations: 432.2 kB / 0.7288 GB, free: 132.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006362/1.412, allocations: 32 kB / 0.7288 GB, free: 132.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001714/1.414, allocations: 136.5 kB / 0.7289 GB, free: 132.3 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000325/1.415, allocations: 125 kB / 0.729 GB, free: 132.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001375/1.415, allocations: 52.7 kB / 0.7291 GB, free: 132.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003689/1.418, allocations: 2.598 MB / 0.7316 GB, free: 129.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.81e-07/1.418, allocations: 0 / 0.7316 GB, free: 129.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006095/1.425, allocations: 1.182 MB / 0.7328 GB, free: 128.3 MB / 474.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.0004977/1.425, allocations: 170.1 kB / 0.7329 GB, free: 128.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008701/1.434, allocations: 6.431 MB / 0.7392 GB, free: 122.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/1.434, allocations: 0 / 0.7392 GB, free: 122.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00256/1.436, allocations: 2.142 MB / 0.7413 GB, free: 120 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003268/1.44, allocations: 0.529 MB / 0.7418 GB, free: 119.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01709/1.457, allocations: 12.55 MB / 0.7541 GB, free: 107 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002912/1.46, allocations: 3.424 MB / 0.7574 GB, free: 103.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001071/1.461, allocations: 287.4 kB / 0.7577 GB, free: 103.2 MB / 474.7 MB Notification: Performance of SimCode: time 1.102e-06/1.461, allocations: 0 / 0.7577 GB, free: 103.2 MB / 474.7 MB Notification: Performance of Templates: time 0.3167/1.778, allocations: 101.1 MB / 0.8564 GB, free: 164.5 MB / 474.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