Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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.DoublePendulumInitTip,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.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_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001246/0.001246, allocations: 94.53 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001801/0.001801, allocations: 203.4 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.7 MB / 247.5 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002369/0.000237, allocations: 8 kB / 308.4 MB, free: 0.8125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09276/0.09301, allocations: 51.52 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.22/0.3131, allocations: 45.21 MB / 405.1 MB, free: 9.086 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02342/0.3365, allocations: 10.01 MB / 415.1 MB, free: 2.133 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009273/0.3459, allocations: 205.5 kB / 415.3 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001938/0.3478, allocations: 475.8 kB / 415.8 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005603/0.3535, allocations: 1.822 MB / 417.6 MB, free: 476 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001999/0.3555, allocations: 0.7292 MB / 418.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009142/0.3647, allocations: 7.858 MB / 426.2 MB, free: 8.527 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007402/0.3721, allocations: 5.34 MB / 431.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002467/0.3746, allocations: 1.249 MB / 432.8 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003444/0.3781, allocations: 2.133 MB / 434.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006859/0.3788, allocations: 144 kB / 435.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002254/0.3811, allocations: 1.084 MB / 436.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002109/0.3832, allocations: 1.846 MB / 438 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002562/0.3858, allocations: 2.078 MB / 440.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006398/0.3922, allocations: 5.783 MB / 445.9 MB, free: 4.746 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.3922, allocations: 0 / 445.9 MB, free: 4.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3922, allocations: 0 / 445.9 MB, free: 4.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000184/0.3924, allocations: 0 / 445.9 MB, free: 4.746 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1479 * Number of variables: 1479 Notification: Performance of Generate backend data structure: time 0.009686/0.4021, allocations: 4.275 MB / 450.1 MB, free: 412 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.4022, allocations: 8.031 kB / 450.2 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02866/0.4309, allocations: 3.244 MB / 453.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00791/0.4388, allocations: 3.454 MB / 456.9 MB, free: 9.629 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002141/0.4391, allocations: 246 kB / 457.1 MB, free: 9.387 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001014/0.4401, allocations: 327.7 kB / 457.4 MB, free: 9.066 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01673/0.4568, allocations: 9.867 MB / 467.3 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001425/0.457, allocations: 47.5 kB / 467.3 MB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004555/0.4575, allocations: 147.9 kB / 467.5 MB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003317/0.4608, allocations: 1.908 MB / 469.4 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01609/0.4769, allocations: 8.511 MB / 477.9 MB, free: 3.914 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0482/0.5251, allocations: 38.4 MB / 0.5042 GB, free: 12.42 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008771/0.5339, allocations: 3.946 MB / 0.508 GB, free: 8.324 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002908/0.5369, allocations: 2.185 MB / 0.5102 GB, free: 6.125 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007584/0.5377, allocations: 0.6477 MB / 0.5108 GB, free: 5.367 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.409e-05/0.5378, allocations: 63.44 kB / 0.5109 GB, free: 5.297 MB / 430.1 MB Notification: Performance of pre-optimization done (n=166): time 5.35e-06/0.5378, allocations: 0 / 0.5109 GB, free: 5.297 MB / 430.1 MB Notification: Performance of matching and sorting (n=201): time 0.2343/0.772, allocations: 22.52 MB / 0.5329 GB, free: 145 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.7722, allocations: 258.6 kB / 0.5331 GB, free: 144.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008394/0.7806, allocations: 4.156 MB / 0.5372 GB, free: 144.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005026/0.7811, allocations: 57.2 kB / 0.5372 GB, free: 144.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002312/0.7835, allocations: 3.077 MB / 0.5402 GB, free: 142.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001187/0.7847, allocations: 0.7715 MB / 0.541 GB, free: 141.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001276/0.786, allocations: 0.5313 MB / 0.5415 GB, free: 141.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.401e-05/0.786, allocations: 301.9 kB / 0.5418 GB, free: 141.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004367/0.7904, allocations: 2.49 MB / 0.5442 GB, free: 140.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005757/0.7962, allocations: 5.978 MB / 0.5501 GB, free: 134.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009948/0.8061, allocations: 9.072 MB / 0.5589 GB, free: 127.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002071/0.8064, allocations: 36.12 kB / 0.5589 GB, free: 127.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=797) (initialization): time 0.0199/0.8263, allocations: 10.55 MB / 0.5692 GB, free: 124.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001717/0.8265, allocations: 61.56 kB / 0.5693 GB, free: 124.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002084/0.8267, allocations: 121.2 kB / 0.5694 GB, free: 124.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00706/0.8338, allocations: 2.596 MB / 0.572 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003928/0.8378, allocations: 1.306 MB / 0.5732 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01941/0.8572, allocations: 17.25 MB / 0.5901 GB, free: 104.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004849/0.8621, allocations: 366.2 kB / 0.5904 GB, free: 103.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00104/0.8632, allocations: 360 kB / 0.5908 GB, free: 103.3 MB / 446.1 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.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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,35,100.0%), (3,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,13)} Notification: Performance of prepare postOptimizeDAE: time 0.004239/0.8674, allocations: 2.142 MB / 0.5929 GB, free: 101.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009837/0.8684, allocations: 367.2 kB / 0.5932 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009353/0.8778, allocations: 5.022 MB / 0.5981 GB, free: 95.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.328e-05/0.8779, allocations: 24 kB / 0.5981 GB, free: 95.78 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.316e-05/0.8779, allocations: 7.938 kB / 0.5982 GB, free: 95.77 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-05/0.878, allocations: 15.95 kB / 0.5982 GB, free: 95.75 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01918/0.8972, allocations: 10.77 MB / 0.6087 GB, free: 84.94 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.098e-05/0.8972, allocations: 0.75 kB / 0.6087 GB, free: 84.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0013/0.8985, allocations: 287.5 kB / 0.609 GB, free: 84.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004766/0.9033, allocations: 1.846 MB / 0.6108 GB, free: 82.81 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002874/0.9036, allocations: 36.53 kB / 0.6108 GB, free: 82.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01112/0.9147, allocations: 9.719 MB / 0.6203 GB, free: 72.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.9148, allocations: 4.812 kB / 0.6203 GB, free: 72.91 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01125/0.926, allocations: 8.152 MB / 0.6283 GB, free: 64.73 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001048/0.9271, allocations: 428.2 kB / 0.6287 GB, free: 64.29 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004985/0.9276, allocations: 32.7 kB / 0.6287 GB, free: 64.26 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00169/0.9293, allocations: 140.5 kB / 0.6288 GB, free: 64.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003488/0.9297, allocations: 125 kB / 0.6289 GB, free: 64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001331/0.9298, allocations: 52.7 kB / 0.629 GB, free: 63.95 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003127/0.933, allocations: 2.615 MB / 0.6316 GB, free: 61.32 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.933, allocations: 0 / 0.6316 GB, free: 61.32 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005056/0.9381, allocations: 1.163 MB / 0.6327 GB, free: 60.16 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 (147): * Single equations (assignments): 143 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,33,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004589/0.9385, allocations: 172 kB / 0.6329 GB, free: 59.99 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008593/0.9471, allocations: 6.479 MB / 0.6392 GB, free: 53.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.9472, allocations: 288 / 0.6392 GB, free: 53.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002524/0.9497, allocations: 2.159 MB / 0.6413 GB, free: 51.33 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004391/0.9541, allocations: 0.5253 MB / 0.6418 GB, free: 50.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01741/0.9716, allocations: 12.87 MB / 0.6544 GB, free: 37.89 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003984/0.9756, allocations: 3.37 MB / 0.6577 GB, free: 34.48 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001029/0.9766, allocations: 287.4 kB / 0.6579 GB, free: 34.2 MB / 446.1 MB Notification: Performance of SimCode: time 8.71e-07/0.9767, allocations: 0 / 0.6579 GB, free: 34.2 MB / 446.1 MB Notification: Performance of Templates: time 0.3067/1.283, allocations: 99.37 MB / 0.755 GB, free: 103.1 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulumInitTip/DoublePendulumInitTip.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches