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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001237/0.001237, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001221/0.001221, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001289, allocations: 63.41 kB / 307.1 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08255/0.08387, allocations: 50.52 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.01246/0.09636, allocations: 11.78 MB / 369.4 MB, free: 2.141 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1582/0.2546, allocations: 4.33 MB / 373.7 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001871/0.2565, allocations: 85.72 kB / 373.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006425/0.263, allocations: 2.876 MB / 376.7 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006767/0.2698, allocations: 1.922 MB / 378.6 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002802/0.2726, allocations: 1.042 MB / 379.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009232/0.2819, allocations: 5.602 MB / 385.2 MB, free: 7.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004642/0.2866, allocations: 3.978 MB / 389.2 MB, free: 5.141 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002897/0.2895, allocations: 1.693 MB / 390.9 MB, free: 4.289 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002662/0.2922, allocations: 2.285 MB / 393.2 MB, free: 3.039 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007629/0.293, allocations: 361.5 kB / 393.5 MB, free: 3.039 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002149/0.2951, allocations: 1.233 MB / 394.8 MB, free: 2.625 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001445/0.2966, allocations: 2.06 MB / 396.8 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00229/0.2989, allocations: 2.482 MB / 399.3 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007205/0.3061, allocations: 7.646 MB / 407 MB, free: 8.051 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.3061, allocations: 4 kB / 407 MB, free: 8.047 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3062, allocations: 0 / 407 MB, free: 8.047 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001797/0.3063, allocations: 4 kB / 407 MB, free: 8.043 MB / 318.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.01414/0.3205, allocations: 5.423 MB / 412.4 MB, free: 2.645 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.3205, allocations: 16.03 kB / 412.4 MB, free: 2.629 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009513/0.3215, allocations: 0.7059 MB / 413.1 MB, free: 1.945 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1742/0.4957, allocations: 12.35 MB / 425.5 MB, free: 5.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008763/0.5045, allocations: 3.877 MB / 429.3 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002117/0.5048, allocations: 235.8 kB / 429.6 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001173/0.506, allocations: 330.8 kB / 429.9 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01529/0.5213, allocations: 9.717 MB / 439.6 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001192/0.5214, allocations: 51.5 kB / 439.7 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003792/0.5218, allocations: 153.3 kB / 439.8 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003174/0.525, allocations: 1.895 MB / 441.7 MB, free: 4.871 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01467/0.5397, allocations: 8.237 MB / 449.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04183/0.5815, allocations: 37.88 MB / 487.8 MB, free: 5.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008229/0.5898, allocations: 3.82 MB / 491.6 MB, free: 1.871 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002393/0.5922, allocations: 2.065 MB / 493.7 MB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006376/0.5929, allocations: 0.6435 MB / 494.3 MB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.005e-05/0.5929, allocations: 59.44 kB / 494.4 MB, free: 14.99 MB / 414.1 MB Notification: Performance of pre-optimization done (n=166): time 4.789e-06/0.5929, allocations: 0 / 494.4 MB, free: 14.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=201): time 0.05815/0.6511, allocations: 20.88 MB / 0.5032 GB, free: 10 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/0.6512, allocations: 252.6 kB / 0.5034 GB, free: 9.703 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006944/0.6582, allocations: 4.169 MB / 0.5075 GB, free: 5.516 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004024/0.6586, allocations: 57.7 kB / 0.5076 GB, free: 5.453 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002433/0.6611, allocations: 3.125 MB / 0.5106 GB, free: 2.324 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00111/0.6622, allocations: 0.7682 MB / 0.5114 GB, free: 1.562 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002984/0.6652, allocations: 1.18 MB / 0.5125 GB, free: 380 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.218e-05/0.6653, allocations: 301.1 kB / 0.5128 GB, free: 76 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003539/0.6689, allocations: 2.278 MB / 0.515 GB, free: 13.79 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005686/0.6746, allocations: 5.735 MB / 0.5206 GB, free: 6.328 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1602/0.8349, allocations: 8.681 MB / 0.5291 GB, free: 133.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.755e-05/0.835, allocations: 34.41 kB / 0.5292 GB, free: 133.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=759) (initialization): time 0.01753/0.8525, allocations: 9.549 MB / 0.5385 GB, free: 131.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.787e-05/0.8526, allocations: 56.34 kB / 0.5385 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001516/0.8528, allocations: 122.8 kB / 0.5386 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006401/0.8592, allocations: 2.088 MB / 0.5407 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00398/0.8632, allocations: 1.253 MB / 0.5419 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01833/0.8815, allocations: 17.26 MB / 0.5588 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004423/0.886, allocations: 341.4 kB / 0.5591 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009912/0.887, allocations: 352 kB / 0.5594 GB, free: 121.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 (671): * Single equations (assignments): 665 * 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 {(2,36,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,13)} Notification: Performance of prepare postOptimizeDAE: time 0.002989/0.89, allocations: 2.137 MB / 0.5615 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000756/0.8908, allocations: 373.2 kB / 0.5619 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006927/0.8977, allocations: 4.288 MB / 0.5661 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-05/0.8978, allocations: 28.97 kB / 0.5661 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.8978, allocations: 7.5 kB / 0.5661 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.229e-05/0.8978, allocations: 9.328 kB / 0.5661 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01391/0.9117, allocations: 10.03 MB / 0.5759 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/0.9118, allocations: 0 / 0.5759 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001279/0.9131, allocations: 291.5 kB / 0.5762 GB, free: 109.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003506/0.9166, allocations: 1.359 MB / 0.5775 GB, free: 107.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001498/0.9168, allocations: 32 kB / 0.5775 GB, free: 107.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00971/0.9265, allocations: 8.976 MB / 0.5863 GB, free: 98.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.9265, allocations: 0 / 0.5863 GB, free: 98.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008979/0.9355, allocations: 7.243 MB / 0.5934 GB, free: 91.56 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000793/0.9363, allocations: 420.2 kB / 0.5938 GB, free: 91.13 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004485/0.9368, allocations: 39.94 kB / 0.5938 GB, free: 91.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001547/0.9383, allocations: 119.8 kB / 0.5939 GB, free: 90.97 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003512/0.9387, allocations: 120.8 kB / 0.594 GB, free: 90.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/0.9388, allocations: 52 kB / 0.5941 GB, free: 90.81 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003005/0.9418, allocations: 2.633 MB / 0.5967 GB, free: 88.17 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9418, allocations: 4.547 kB / 0.5967 GB, free: 88.16 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004182/0.946, allocations: 1.111 MB / 0.5978 GB, free: 87.06 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 {(5,30,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009264/0.9553, allocations: 7.9 MB / 0.6055 GB, free: 79.13 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009818/0.9651, allocations: 7.245 MB / 0.6125 GB, free: 71.88 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.365e-05/0.9652, allocations: 3.938 kB / 0.6125 GB, free: 71.88 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003161/0.9684, allocations: 2.219 MB / 0.6147 GB, free: 69.65 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003011/0.9714, allocations: 0.59 MB / 0.6153 GB, free: 69.09 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06307/1.034, allocations: 56.37 MB / 0.6703 GB, free: 5.023 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003507/1.038, allocations: 3.389 MB / 0.6737 GB, free: 1.598 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004197/1.042, allocations: 1.888 MB / 0.6755 GB, free: 15.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003062/1.045, allocations: 1.972 MB / 0.6774 GB, free: 13.73 MB / 462.1 MB Notification: Performance of SimCode: time 1.934e-06/1.045, allocations: 0 / 0.6774 GB, free: 13.73 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.281/1.326, allocations: 87 MB / 0.7624 GB, free: 98.89 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.46/14.79, allocations: 3.953 kB / 0.7624 GB, free: 98.88 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.csv","/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