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.001559/0.001559, allocations: 108.2 kB / 16.92 MB, free: 6.145 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.001842/0.001842, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.007/2.007, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 50.73 kB / 300.7 MB, free: 5.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.11, allocations: 49.44 MB / 350.2 MB, free: 4.301 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.02211/0.1322, allocations: 11.91 MB / 362.1 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01205/0.1443, allocations: 4.348 MB / 366.4 MB, free: 3.965 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002744/0.1471, allocations: 83.69 kB / 366.5 MB, free: 3.883 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0079/0.155, allocations: 2.885 MB / 369.4 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2434/0.3984, allocations: 1.967 MB / 371.4 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003871/0.4024, allocations: 1.039 MB / 372.4 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01194/0.4143, allocations: 5.554 MB / 378 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00886/0.4232, allocations: 4.001 MB / 382 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004836/0.4281, allocations: 1.709 MB / 383.7 MB, free: 8.461 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004648/0.4328, allocations: 2.313 MB / 386 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001755/0.4346, allocations: 366.3 kB / 386.3 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004354/0.4389, allocations: 1.251 MB / 387.6 MB, free: 7.574 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003686/0.4427, allocations: 2.107 MB / 389.7 MB, free: 6.848 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005774/0.4485, allocations: 2.535 MB / 392.2 MB, free: 4.965 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01098/0.4595, allocations: 7.817 MB / 400 MB, free: 15.58 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.4595, allocations: 0 / 400 MB, free: 15.58 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4595, allocations: 0 / 400 MB, free: 15.58 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002932/0.4598, allocations: 0 / 400 MB, free: 15.58 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: 1508 * Number of variables: 1508 Notification: Performance of Generate backend data structure: time 0.01822/0.4781, allocations: 5.493 MB / 405.5 MB, free: 10.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.905e-05/0.4781, allocations: 8.031 kB / 405.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002354/0.4805, allocations: 0.7278 MB / 406.3 MB, free: 9.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2092/0.6897, allocations: 12.36 MB / 418.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01136/0.7011, allocations: 4.107 MB / 422.7 MB, free: 9.074 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002862/0.7015, allocations: 240.6 kB / 423 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001555/0.703, allocations: 332.1 kB / 423.3 MB, free: 8.582 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02081/0.7239, allocations: 9.899 MB / 433.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002749/0.7242, allocations: 46.17 kB / 433.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00151/0.7257, allocations: 150.9 kB / 433.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006337/0.7321, allocations: 1.959 MB / 435.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02964/0.7618, allocations: 8.336 MB / 443.7 MB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06846/0.8303, allocations: 38.33 MB / 482 MB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01277/0.8431, allocations: 3.824 MB / 485.8 MB, free: 8.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004126/0.8473, allocations: 2.056 MB / 487.9 MB, free: 6.508 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001107/0.8484, allocations: 0.6535 MB / 488.6 MB, free: 5.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.625e-05/0.8485, allocations: 55.56 kB / 488.6 MB, free: 5.688 MB / 398.1 MB Notification: Performance of pre-optimization done (n=166): time 8.776e-06/0.8486, allocations: 0 / 488.6 MB, free: 5.688 MB / 398.1 MB Notification: Performance of matching and sorting (n=201): time 0.1048/0.9533, allocations: 20.94 MB / 0.4976 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001929/0.9536, allocations: 256.5 kB / 0.4979 GB, free: 340 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01506/0.9687, allocations: 4.193 MB / 0.5019 GB, free: 12.12 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000773/0.9695, allocations: 57.7 kB / 0.502 GB, free: 12.06 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00479/0.9743, allocations: 3.156 MB / 0.5051 GB, free: 8.898 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001764/0.9761, allocations: 0.7601 MB / 0.5058 GB, free: 8.145 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005153/0.9813, allocations: 1.184 MB / 0.507 GB, free: 6.949 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.9815, allocations: 305.1 kB / 0.5073 GB, free: 6.648 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00687/0.9884, allocations: 2.272 MB / 0.5095 GB, free: 4.371 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01118/0.9997, allocations: 5.738 MB / 0.5151 GB, free: 12.91 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01822/1.018, allocations: 8.686 MB / 0.5236 GB, free: 2.551 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004374/1.018, allocations: 36 kB / 0.5236 GB, free: 2.516 MB / 446.1 MB Notification: Performance of matching and sorting (n=759) (initialization): time 0.2836/1.302, allocations: 9.543 MB / 0.5329 GB, free: 142 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002771/1.302, allocations: 60.42 kB / 0.533 GB, free: 142 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003995/1.303, allocations: 122.6 kB / 0.5331 GB, free: 142 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0132/1.316, allocations: 2.081 MB / 0.5351 GB, free: 141.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008893/1.325, allocations: 1.254 MB / 0.5364 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03964/1.365, allocations: 17.25 MB / 0.5532 GB, free: 132.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008697/1.374, allocations: 343.4 kB / 0.5535 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001522/1.375, allocations: 353.2 kB / 0.5539 GB, free: 132.2 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.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.006373/1.381, allocations: 2.164 MB / 0.556 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001529/1.383, allocations: 385.1 kB / 0.5563 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01452/1.398, allocations: 4.29 MB / 0.5605 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.171e-05/1.398, allocations: 21.53 kB / 0.5606 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-05/1.398, allocations: 13.06 kB / 0.5606 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.315e-05/1.398, allocations: 9.609 kB / 0.5606 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0324/1.43, allocations: 10.11 MB / 0.5705 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.269e-05/1.43, allocations: 4 kB / 0.5705 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00277/1.433, allocations: 287.6 kB / 0.5707 GB, free: 120.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007174/1.44, allocations: 1.36 MB / 0.5721 GB, free: 119.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005098/1.441, allocations: 39.98 kB / 0.5721 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02014/1.461, allocations: 8.967 MB / 0.5809 GB, free: 110.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.868e-06/1.461, allocations: 4 kB / 0.5809 GB, free: 110.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01962/1.481, allocations: 7.252 MB / 0.5879 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002061/1.483, allocations: 424.1 kB / 0.5883 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001865/1.485, allocations: 31.98 kB / 0.5884 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003852/1.489, allocations: 131.9 kB / 0.5885 GB, free: 102.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007944/1.49, allocations: 122 kB / 0.5886 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003523/1.49, allocations: 52 kB / 0.5887 GB, free: 102.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.008029/1.498, allocations: 2.645 MB / 0.5912 GB, free: 99.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.162e-06/1.498, allocations: 0 / 0.5912 GB, free: 99.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01086/1.509, allocations: 1.124 MB / 0.5923 GB, free: 98.7 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.0208/1.53, allocations: 7.902 MB / 0.6001 GB, free: 90.76 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01867/1.548, allocations: 7.256 MB / 0.6071 GB, free: 83.51 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/1.549, allocations: 0 / 0.6071 GB, free: 83.51 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006752/1.555, allocations: 2.22 MB / 0.6093 GB, free: 81.28 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007018/1.562, allocations: 0.6007 MB / 0.6099 GB, free: 80.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1294/1.692, allocations: 56.59 MB / 0.6652 GB, free: 16.45 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008375/1.7, allocations: 3.442 MB / 0.6685 GB, free: 12.97 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.009217/1.71, allocations: 1.888 MB / 0.6704 GB, free: 11.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005279/1.715, allocations: 2.011 MB / 0.6723 GB, free: 9.066 MB / 446.1 MB Notification: Performance of SimCode: time 1.112e-06/1.715, allocations: 0 / 0.6723 GB, free: 9.066 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4651/2.18, allocations: 87.44 MB / 0.7577 GB, free: 115.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.07/25.25, allocations: 11.67 kB / 0.7577 GB, free: 115.4 MB / 462.1 MB (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) Reference file matches