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.00166/0.00166, allocations: 113.2 kB / 17.78 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001956/0.001956, allocations: 204.6 kB / 18.74 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2658, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.01197/0.2778, allocations: 11.78 MB / 420.5 MB, free: 5.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00837/0.2862, allocations: 4.343 MB / 424.9 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00196/0.2882, allocations: 75.75 kB / 425 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005253/0.2935, allocations: 2.877 MB / 427.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005273/0.2989, allocations: 1.972 MB / 429.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002387/0.3013, allocations: 1.045 MB / 430.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007437/0.3087, allocations: 5.589 MB / 436.4 MB, free: 5.773 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004734/0.3135, allocations: 3.976 MB / 440.4 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002754/0.3163, allocations: 1.713 MB / 442.1 MB, free: 16 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003179/0.3195, allocations: 2.286 MB / 444.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001124/0.3207, allocations: 360 kB / 444.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002807/0.3235, allocations: 1.241 MB / 446 MB, free: 12.13 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002584/0.3261, allocations: 2.081 MB / 448.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003968/0.3301, allocations: 2.478 MB / 450.6 MB, free: 7.551 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009922/0.3401, allocations: 7.915 MB / 458.5 MB, free: 15.6 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.3401, allocations: 0 / 458.5 MB, free: 15.6 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3401, allocations: 0 / 458.5 MB, free: 15.6 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002152/0.3403, allocations: 0 / 458.5 MB, free: 15.6 MB / 382.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.01502/0.3554, allocations: 5.579 MB / 464.1 MB, free: 9.945 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.542e-05/0.3554, allocations: 12.03 kB / 464.1 MB, free: 9.934 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001229/0.3567, allocations: 0.711 MB / 464.8 MB, free: 9.211 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1746/0.5312, allocations: 12.38 MB / 477.2 MB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01025/0.5415, allocations: 3.967 MB / 481.1 MB, free: 8.789 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000243/0.5418, allocations: 242.1 kB / 481.4 MB, free: 8.551 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001243/0.5431, allocations: 319.8 kB / 481.7 MB, free: 8.238 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01797/0.5611, allocations: 9.707 MB / 491.4 MB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001545/0.5613, allocations: 55.58 kB / 491.4 MB, free: 13.83 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005035/0.5618, allocations: 155.9 kB / 491.6 MB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003328/0.5651, allocations: 1.904 MB / 493.5 MB, free: 11.77 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01696/0.5821, allocations: 8.23 MB / 0.49 GB, free: 3.516 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05363/0.6358, allocations: 37.76 MB / 0.5268 GB, free: 12.66 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009274/0.6451, allocations: 3.824 MB / 0.5306 GB, free: 8.695 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002701/0.6479, allocations: 2.07 MB / 0.5326 GB, free: 6.617 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007198/0.6486, allocations: 0.6444 MB / 0.5332 GB, free: 5.863 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.993e-05/0.6487, allocations: 55.5 kB / 0.5333 GB, free: 5.801 MB / 462.1 MB Notification: Performance of pre-optimization done (n=166): time 5.25e-06/0.6487, allocations: 0 / 0.5333 GB, free: 5.801 MB / 462.1 MB Notification: Performance of matching and sorting (n=201): time 0.2841/0.9328, allocations: 21.15 MB / 0.5539 GB, free: 119.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.399e-05/0.9329, allocations: 255.8 kB / 0.5542 GB, free: 119.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005363/0.9383, allocations: 4.174 MB / 0.5583 GB, free: 117.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004415/0.9388, allocations: 59.78 kB / 0.5583 GB, free: 117.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001644/0.9404, allocations: 3.244 MB / 0.5615 GB, free: 114.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008624/0.9413, allocations: 0.7925 MB / 0.5623 GB, free: 114.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001556/0.9429, allocations: 1.19 MB / 0.5634 GB, free: 112.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.9e-05/0.9429, allocations: 305.1 kB / 0.5637 GB, free: 112.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002718/0.9457, allocations: 2.272 MB / 0.5659 GB, free: 110.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004081/0.9498, allocations: 5.742 MB / 0.5715 GB, free: 103 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007466/0.9573, allocations: 8.678 MB / 0.58 GB, free: 92.59 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.665e-05/0.9574, allocations: 32 kB / 0.58 GB, free: 92.55 MB / 462.1 MB Notification: Performance of matching and sorting (n=759) (initialization): time 0.01607/0.9735, allocations: 9.574 MB / 0.5894 GB, free: 82.97 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.944e-05/0.9736, allocations: 56 kB / 0.5894 GB, free: 82.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.475e-05/0.9737, allocations: 120 kB / 0.5896 GB, free: 82.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005374/0.9791, allocations: 2.079 MB / 0.5916 GB, free: 80.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003651/0.9827, allocations: 1.248 MB / 0.5928 GB, free: 79.46 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01771/1, allocations: 17.26 MB / 0.6097 GB, free: 61.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005423/1.006, allocations: 335.6 kB / 0.61 GB, free: 61.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009749/1.007, allocations: 355.2 kB / 0.6103 GB, free: 61.13 MB / 462.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.003634/1.011, allocations: 2.143 MB / 0.6124 GB, free: 58.98 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008412/1.011, allocations: 397.3 kB / 0.6128 GB, free: 58.59 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006869/1.018, allocations: 4.29 MB / 0.617 GB, free: 54.28 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.423e-05/1.018, allocations: 20 kB / 0.617 GB, free: 54.26 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.388e-05/1.018, allocations: 8 kB / 0.617 GB, free: 54.25 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.676e-05/1.018, allocations: 11.95 kB / 0.617 GB, free: 54.24 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01607/1.035, allocations: 9.98 MB / 0.6268 GB, free: 44.22 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.157e-05/1.035, allocations: 7.531 kB / 0.6268 GB, free: 44.21 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001387/1.036, allocations: 287.5 kB / 0.627 GB, free: 43.93 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003545/1.04, allocations: 1.359 MB / 0.6284 GB, free: 42.57 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002893/1.04, allocations: 39.98 kB / 0.6284 GB, free: 42.53 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01019/1.05, allocations: 8.968 MB / 0.6372 GB, free: 33.42 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/1.05, allocations: 4 kB / 0.6372 GB, free: 33.42 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009712/1.06, allocations: 7.265 MB / 0.6443 GB, free: 26.11 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00105/1.061, allocations: 442.3 kB / 0.6447 GB, free: 25.66 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006906/1.062, allocations: 39.52 kB / 0.6447 GB, free: 25.62 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001826/1.063, allocations: 119.8 kB / 0.6448 GB, free: 25.51 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003712/1.064, allocations: 125 kB / 0.645 GB, free: 25.39 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001388/1.064, allocations: 52 kB / 0.645 GB, free: 25.34 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003789/1.068, allocations: 2.637 MB / 0.6476 GB, free: 22.69 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.2e-07/1.068, allocations: 0 / 0.6476 GB, free: 22.69 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005413/1.073, allocations: 1.102 MB / 0.6487 GB, free: 21.59 MB / 462.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.009972/1.083, allocations: 7.91 MB / 0.6564 GB, free: 13.64 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007878/1.091, allocations: 6.051 MB / 0.6623 GB, free: 7.574 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.173e-05/1.091, allocations: 4 kB / 0.6623 GB, free: 7.57 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003292/1.095, allocations: 2.227 MB / 0.6645 GB, free: 5.332 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003307/1.098, allocations: 0.6015 MB / 0.6651 GB, free: 4.746 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08556/1.183, allocations: 49.84 MB / 0.7137 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005638/1.189, allocations: 3.397 MB / 0.717 GB, free: 10.03 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00479/1.194, allocations: 1.88 MB / 0.7189 GB, free: 8.141 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00337/1.197, allocations: 1.979 MB / 0.7208 GB, free: 6.164 MB / 0.5137 GB Notification: Performance of SimCode: time 9.92e-07/1.197, allocations: 0 / 0.7208 GB, free: 6.164 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3538/1.551, allocations: 83.5 MB / 0.8024 GB, free: 142.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.36/26.91, allocations: 14.95 kB / 0.8024 GB, free: 142.7 MB / 0.5294 GB (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) "" Variables in the reference:time,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w Variables in the result:time,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w