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.001848/0.001849, allocations: 107.7 kB / 17.06 MB, free: 5.996 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.001952/0.001952, allocations: 197.3 kB / 18.01 MB, free: 5.066 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.442/1.442, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 47.94 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2773/0.279, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.01605/0.2951, allocations: 11.91 MB / 412.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01009/0.3053, allocations: 4.349 MB / 416.5 MB, free: 8.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00247/0.3078, allocations: 79.69 kB / 416.6 MB, free: 8.398 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006362/0.3142, allocations: 2.889 MB / 419.5 MB, free: 5.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006429/0.3207, allocations: 1.973 MB / 421.4 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002711/0.3234, allocations: 1.033 MB / 422.5 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009286/0.3327, allocations: 5.564 MB / 428 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00615/0.3389, allocations: 3.991 MB / 432 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004207/0.3432, allocations: 1.721 MB / 433.7 MB, free: 7.129 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00486/0.3481, allocations: 2.305 MB / 436.1 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001285/0.3494, allocations: 368 kB / 436.4 MB, free: 4.457 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003059/0.3525, allocations: 1.256 MB / 437.7 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002434/0.3549, allocations: 2.1 MB / 439.8 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00339/0.3583, allocations: 2.533 MB / 442.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01029/0.3686, allocations: 8.086 MB / 450.4 MB, free: 6.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3687, allocations: 0 / 450.4 MB, free: 6.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3687, allocations: 0 / 450.4 MB, free: 6.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002187/0.3689, allocations: 0 / 450.4 MB, free: 6.43 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.01558/0.3845, allocations: 5.642 MB / 456 MB, free: 0.707 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.3846, allocations: 12.02 kB / 456 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001394/0.386, allocations: 0.7157 MB / 456.8 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1764/0.5624, allocations: 12.39 MB / 469.1 MB, free: 3.559 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01319/0.5756, allocations: 4.205 MB / 473.4 MB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003281/0.576, allocations: 238.2 kB / 473.6 MB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001966/0.578, allocations: 327.8 kB / 473.9 MB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.018/0.596, allocations: 9.896 MB / 483.8 MB, free: 4.207 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001323/0.5962, allocations: 51.62 kB / 483.9 MB, free: 4.156 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004144/0.5966, allocations: 151.9 kB / 484 MB, free: 4.008 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003599/0.6002, allocations: 1.955 MB / 486 MB, free: 2.051 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01676/0.617, allocations: 8.344 MB / 494.3 MB, free: 9.688 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05022/0.6672, allocations: 38.2 MB / 0.52 GB, free: 2.367 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008737/0.676, allocations: 3.828 MB / 0.5238 GB, free: 14.4 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002807/0.6789, allocations: 2.056 MB / 0.5258 GB, free: 12.33 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007728/0.6797, allocations: 0.6593 MB / 0.5264 GB, free: 11.56 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.564e-05/0.6797, allocations: 59.55 kB / 0.5265 GB, free: 11.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=166): time 3.556e-06/0.6797, allocations: 0 / 0.5265 GB, free: 11.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=201): time 0.3042/0.984, allocations: 21.19 MB / 0.5472 GB, free: 126.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.9841, allocations: 262.8 kB / 0.5474 GB, free: 126.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009112/0.9933, allocations: 4.195 MB / 0.5515 GB, free: 125.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003662/0.9937, allocations: 57.11 kB / 0.5516 GB, free: 125.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002669/0.9964, allocations: 3.281 MB / 0.5548 GB, free: 123 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001169/0.9975, allocations: 0.799 MB / 0.5555 GB, free: 122.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002981/1.001, allocations: 1.191 MB / 0.5567 GB, free: 121.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.405e-05/1.001, allocations: 305.7 kB / 0.557 GB, free: 121.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005006/1.006, allocations: 2.274 MB / 0.5592 GB, free: 120.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006903/1.013, allocations: 5.735 MB / 0.5648 GB, free: 114.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01227/1.025, allocations: 8.683 MB / 0.5733 GB, free: 104.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001401/1.025, allocations: 32 kB / 0.5733 GB, free: 104.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=759) (initialization): time 0.02668/1.052, allocations: 9.578 MB / 0.5827 GB, free: 94.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001698/1.052, allocations: 60.03 kB / 0.5827 GB, free: 94.64 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002144/1.052, allocations: 120 kB / 0.5829 GB, free: 94.52 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009138/1.061, allocations: 2.084 MB / 0.5849 GB, free: 92.43 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006028/1.067, allocations: 1.248 MB / 0.5861 GB, free: 91.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03189/1.099, allocations: 17.24 MB / 0.603 GB, free: 73.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008774/1.108, allocations: 339.6 kB / 0.6033 GB, free: 73.21 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001429/1.11, allocations: 352 kB / 0.6036 GB, free: 72.87 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.005905/1.116, allocations: 2.173 MB / 0.6057 GB, free: 70.69 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001359/1.117, allocations: 397.3 kB / 0.6061 GB, free: 70.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0123/1.129, allocations: 4.292 MB / 0.6103 GB, free: 65.98 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.564e-05/1.129, allocations: 27.94 kB / 0.6103 GB, free: 65.96 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-05/1.129, allocations: 8 kB / 0.6103 GB, free: 65.95 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.94e-05/1.129, allocations: 7.969 kB / 0.6103 GB, free: 65.94 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01696/1.146, allocations: 10.06 MB / 0.6202 GB, free: 55.84 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.627e-05/1.146, allocations: 4 kB / 0.6202 GB, free: 55.84 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001199/1.148, allocations: 279.6 kB / 0.6204 GB, free: 55.56 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003431/1.151, allocations: 1.359 MB / 0.6218 GB, free: 54.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001814/1.151, allocations: 39.92 kB / 0.6218 GB, free: 54.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009681/1.161, allocations: 8.971 MB / 0.6306 GB, free: 45.05 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/1.161, allocations: 3.938 kB / 0.6306 GB, free: 45.04 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00935/1.17, allocations: 7.265 MB / 0.6377 GB, free: 37.75 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/1.171, allocations: 438.4 kB / 0.6381 GB, free: 37.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007721/1.172, allocations: 47.67 kB / 0.6381 GB, free: 37.26 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00203/1.174, allocations: 123.8 kB / 0.6382 GB, free: 37.14 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003365/1.175, allocations: 113.1 kB / 0.6384 GB, free: 37.03 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001375/1.175, allocations: 51.98 kB / 0.6384 GB, free: 36.98 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004155/1.179, allocations: 2.645 MB / 0.641 GB, free: 34.33 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.11e-07/1.179, allocations: 0 / 0.641 GB, free: 34.33 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004768/1.184, allocations: 1.125 MB / 0.6421 GB, free: 33.2 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.00971/1.193, allocations: 7.915 MB / 0.6498 GB, free: 25.24 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008025/1.201, allocations: 6.063 MB / 0.6557 GB, free: 19.16 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/1.202, allocations: 0 / 0.6557 GB, free: 19.16 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003171/1.205, allocations: 2.225 MB / 0.6579 GB, free: 16.93 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003824/1.209, allocations: 0.6115 MB / 0.6585 GB, free: 16.34 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08192/1.29, allocations: 50.04 MB / 0.7074 GB, free: 8.875 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004306/1.295, allocations: 3.442 MB / 0.7107 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004221/1.299, allocations: 1.881 MB / 0.7126 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002744/1.302, allocations: 2.014 MB / 0.7145 GB, free: 1.496 MB / 0.4981 GB Notification: Performance of SimCode: time 1.052e-06/1.302, allocations: 0 / 0.7145 GB, free: 1.496 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3818/1.684, allocations: 83.94 MB / 0.7965 GB, free: 126.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.47/28.16, allocations: 8.516 kB / 0.7965 GB, free: 126.6 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