Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 113.4 kB / 17.07 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 195 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 52.06 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2589, allocations: 49.45 MB / 400.3 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.01318/0.2721, allocations: 11.9 MB / 412.2 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009074/0.2813, allocations: 4.351 MB / 416.5 MB, free: 8.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002029/0.2833, allocations: 83.69 kB / 416.6 MB, free: 8.414 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00529/0.2887, allocations: 2.881 MB / 419.5 MB, free: 5.523 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005383/0.2941, allocations: 2.035 MB / 421.5 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002589/0.2967, allocations: 1.037 MB / 422.5 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007832/0.3046, allocations: 5.554 MB / 428.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005355/0.3099, allocations: 3.995 MB / 432.1 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002975/0.313, allocations: 1.725 MB / 433.8 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003552/0.3165, allocations: 2.317 MB / 436.1 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001242/0.3178, allocations: 368 kB / 436.5 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002741/0.3206, allocations: 1.252 MB / 437.7 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002525/0.3231, allocations: 2.127 MB / 439.9 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004038/0.3272, allocations: 2.537 MB / 442.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009587/0.3368, allocations: 8.078 MB / 450.5 MB, free: 6.359 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.3368, allocations: 0 / 450.5 MB, free: 6.359 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3368, allocations: 0 / 450.5 MB, free: 6.359 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002207/0.3371, allocations: 3.938 kB / 450.5 MB, free: 6.355 MB / 366.1 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.01492/0.352, allocations: 5.642 MB / 456.1 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.3521, allocations: 8.031 kB / 456.1 MB, free: 0.625 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001581/0.3536, allocations: 0.7235 MB / 456.9 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1686/0.5223, allocations: 12.39 MB / 469.2 MB, free: 3.484 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01015/0.5325, allocations: 4.205 MB / 473.5 MB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002167/0.5327, allocations: 242.1 kB / 473.7 MB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001113/0.5339, allocations: 327.7 kB / 474 MB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01766/0.5515, allocations: 9.896 MB / 483.9 MB, free: 4.125 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001517/0.5517, allocations: 43.64 kB / 483.9 MB, free: 4.082 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005358/0.5523, allocations: 155.9 kB / 484.1 MB, free: 3.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00345/0.5557, allocations: 1.959 MB / 486.1 MB, free: 1.969 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01623/0.572, allocations: 8.328 MB / 494.4 MB, free: 9.621 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.049/0.621, allocations: 38.21 MB / 0.5201 GB, free: 2.293 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008399/0.6295, allocations: 3.825 MB / 0.5239 GB, free: 14.32 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002577/0.6321, allocations: 2.068 MB / 0.5259 GB, free: 12.25 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007291/0.6328, allocations: 0.6438 MB / 0.5265 GB, free: 11.49 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.881e-05/0.6329, allocations: 55.5 kB / 0.5266 GB, free: 11.43 MB / 462.1 MB Notification: Performance of pre-optimization done (n=166): time 3.967e-06/0.6329, allocations: 3.938 kB / 0.5266 GB, free: 11.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=201): time 0.2603/0.8932, allocations: 21.19 MB / 0.5473 GB, free: 126.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.925e-05/0.8934, allocations: 250.9 kB / 0.5475 GB, free: 126.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005101/0.8985, allocations: 4.204 MB / 0.5516 GB, free: 125.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003791/0.8989, allocations: 56.3 kB / 0.5517 GB, free: 125.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001558/0.9005, allocations: 3.284 MB / 0.5549 GB, free: 122.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007516/0.9012, allocations: 0.7979 MB / 0.5556 GB, free: 122.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001402/0.9026, allocations: 1.191 MB / 0.5568 GB, free: 121.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.352e-05/0.9027, allocations: 301.1 kB / 0.5571 GB, free: 121.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002657/0.9054, allocations: 2.274 MB / 0.5593 GB, free: 120.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003752/0.9091, allocations: 5.742 MB / 0.5649 GB, free: 114.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006797/0.9159, allocations: 8.674 MB / 0.5734 GB, free: 104.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.332e-05/0.916, allocations: 36 kB / 0.5734 GB, free: 104.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=759) (initialization): time 0.01518/0.9312, allocations: 9.577 MB / 0.5828 GB, free: 94.61 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.666e-05/0.9313, allocations: 64.03 kB / 0.5828 GB, free: 94.54 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001079/0.9315, allocations: 127.9 kB / 0.583 GB, free: 94.42 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005392/0.9369, allocations: 2.082 MB / 0.585 GB, free: 92.33 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003637/0.9405, allocations: 1.252 MB / 0.5862 GB, free: 91.08 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01825/0.9588, allocations: 17.24 MB / 0.603 GB, free: 73.45 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004779/0.9636, allocations: 339.2 kB / 0.6034 GB, free: 73.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008963/0.9646, allocations: 360 kB / 0.6037 GB, free: 72.77 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.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 (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.00344/0.968, allocations: 2.164 MB / 0.6058 GB, free: 70.59 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008659/0.9689, allocations: 397.3 kB / 0.6062 GB, free: 70.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006913/0.9758, allocations: 4.294 MB / 0.6104 GB, free: 65.88 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.001e-05/0.9759, allocations: 24 kB / 0.6104 GB, free: 65.86 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.371e-05/0.9759, allocations: 8 kB / 0.6104 GB, free: 65.85 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.843e-05/0.9759, allocations: 19.33 kB / 0.6104 GB, free: 65.84 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01689/0.9928, allocations: 10.06 MB / 0.6203 GB, free: 55.74 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.12e-05/0.9929, allocations: 0 / 0.6203 GB, free: 55.74 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001312/0.9942, allocations: 291.5 kB / 0.6205 GB, free: 55.46 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003584/0.9978, allocations: 1.347 MB / 0.6219 GB, free: 54.11 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003026/0.9981, allocations: 39.98 kB / 0.6219 GB, free: 54.07 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01004/1.008, allocations: 8.975 MB / 0.6307 GB, free: 44.95 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/1.008, allocations: 7.938 kB / 0.6307 GB, free: 44.94 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009628/1.018, allocations: 7.25 MB / 0.6378 GB, free: 37.66 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001191/1.019, allocations: 450.3 kB / 0.6382 GB, free: 37.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005898/1.02, allocations: 35.94 kB / 0.6382 GB, free: 37.17 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001685/1.021, allocations: 127.7 kB / 0.6383 GB, free: 37.05 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003474/1.022, allocations: 113.2 kB / 0.6384 GB, free: 36.94 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001322/1.022, allocations: 52.11 kB / 0.6385 GB, free: 36.89 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003487/1.025, allocations: 2.645 MB / 0.6411 GB, free: 34.23 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.4e-07/1.025, allocations: 0 / 0.6411 GB, free: 34.23 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00546/1.031, allocations: 1.129 MB / 0.6422 GB, free: 33.11 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.01016/1.041, allocations: 7.923 MB / 0.6499 GB, free: 25.14 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008225/1.049, allocations: 6.058 MB / 0.6558 GB, free: 19.06 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/1.049, allocations: 0 / 0.6558 GB, free: 19.06 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003309/1.053, allocations: 2.229 MB / 0.658 GB, free: 16.83 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003552/1.056, allocations: 0.5954 MB / 0.6586 GB, free: 16.25 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07769/1.134, allocations: 50.04 MB / 0.7075 GB, free: 8.789 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004236/1.138, allocations: 3.45 MB / 0.7108 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004251/1.143, allocations: 1.877 MB / 0.7127 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002953/1.145, allocations: 2.011 MB / 0.7146 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of SimCode: time 1.332e-06/1.146, allocations: 0 / 0.7146 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3747/1.52, allocations: 83.94 MB / 0.7966 GB, free: 126.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.96/28.48, allocations: 8.516 kB / 0.7966 GB, free: 126.5 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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