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.001864/0.001864, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002368/0.002368, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.504/1.504, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 71.88 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2544, allocations: 50.53 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.0156/0.27, allocations: 11.78 MB / 420.5 MB, free: 5.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01079/0.2809, allocations: 4.339 MB / 424.9 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00273/0.2836, allocations: 79.69 kB / 425 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00649/0.2902, allocations: 2.873 MB / 427.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005639/0.2959, allocations: 1.93 MB / 429.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002778/0.2987, allocations: 1.045 MB / 430.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008552/0.3073, allocations: 5.585 MB / 436.4 MB, free: 5.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005858/0.3132, allocations: 3.976 MB / 440.4 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003431/0.3166, allocations: 1.698 MB / 442.1 MB, free: 80 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003807/0.3205, allocations: 2.286 MB / 444.4 MB, free: 13.78 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001098/0.3216, allocations: 360 kB / 444.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002991/0.3246, allocations: 1.229 MB / 445.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002887/0.3275, allocations: 2.061 MB / 448 MB, free: 10.14 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004635/0.3322, allocations: 2.486 MB / 450.5 MB, free: 7.637 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01228/0.3445, allocations: 7.903 MB / 458.4 MB, free: 15.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.3445, allocations: 0 / 458.4 MB, free: 15.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3446, allocations: 0 / 458.4 MB, free: 15.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003126/0.3449, allocations: 4 kB / 458.4 MB, free: 15.7 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.0172/0.3621, allocations: 5.567 MB / 464 MB, free: 10.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.854e-05/0.3622, allocations: 12.03 kB / 464 MB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002177/0.3644, allocations: 0.7071 MB / 464.7 MB, free: 9.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1495/0.5139, allocations: 12.38 MB / 477.1 MB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01053/0.5244, allocations: 3.967 MB / 481 MB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003006/0.5248, allocations: 242 kB / 481.3 MB, free: 8.656 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001459/0.5263, allocations: 323.8 kB / 481.6 MB, free: 8.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02135/0.5476, allocations: 9.718 MB / 491.3 MB, free: 13.97 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002714/0.5479, allocations: 47.59 kB / 491.3 MB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001302/0.5493, allocations: 155.9 kB / 491.5 MB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003655/0.5529, allocations: 1.904 MB / 493.4 MB, free: 11.86 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01825/0.5712, allocations: 8.238 MB / 0.4899 GB, free: 3.605 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05587/0.6271, allocations: 37.76 MB / 0.5268 GB, free: 12.75 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009197/0.6364, allocations: 3.824 MB / 0.5305 GB, free: 8.781 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003042/0.6394, allocations: 2.063 MB / 0.5325 GB, free: 6.711 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009179/0.6404, allocations: 0.644 MB / 0.5331 GB, free: 5.957 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.062e-05/0.6405, allocations: 59.48 kB / 0.5332 GB, free: 5.891 MB / 462.1 MB Notification: Performance of pre-optimization done (n=166): time 5.781e-06/0.6405, allocations: 0 / 0.5332 GB, free: 5.891 MB / 462.1 MB Notification: Performance of matching and sorting (n=201): time 0.277/0.9175, allocations: 21.14 MB / 0.5538 GB, free: 119.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.28e-05/0.9176, allocations: 248.4 kB / 0.5541 GB, free: 119.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004784/0.9224, allocations: 4.186 MB / 0.5582 GB, free: 117.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003432/0.9228, allocations: 53.7 kB / 0.5582 GB, free: 117.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001493/0.9243, allocations: 3.241 MB / 0.5614 GB, free: 114.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006614/0.9249, allocations: 0.7973 MB / 0.5622 GB, free: 114.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001171/0.9261, allocations: 1.191 MB / 0.5633 GB, free: 113 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.497e-05/0.9262, allocations: 301.1 kB / 0.5636 GB, free: 112.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002382/0.9285, allocations: 2.272 MB / 0.5658 GB, free: 110.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003516/0.9321, allocations: 5.743 MB / 0.5714 GB, free: 103 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00668/0.9388, allocations: 8.678 MB / 0.5799 GB, free: 92.64 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-05/0.9389, allocations: 36 kB / 0.5799 GB, free: 92.61 MB / 462.1 MB Notification: Performance of matching and sorting (n=759) (initialization): time 0.01431/0.9532, allocations: 9.574 MB / 0.5893 GB, free: 83.02 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.894e-05/0.9533, allocations: 56 kB / 0.5893 GB, free: 82.96 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001054/0.9534, allocations: 120 kB / 0.5895 GB, free: 82.85 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005099/0.9585, allocations: 2.077 MB / 0.5915 GB, free: 80.77 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003512/0.962, allocations: 1.252 MB / 0.5927 GB, free: 79.51 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01721/0.9793, allocations: 17.26 MB / 0.6096 GB, free: 61.86 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004426/0.9838, allocations: 335.6 kB / 0.6099 GB, free: 61.53 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006068/0.9844, allocations: 352 kB / 0.6102 GB, free: 61.18 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.002557/0.9869, allocations: 2.138 MB / 0.6123 GB, free: 59.04 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005805/0.9875, allocations: 397.3 kB / 0.6127 GB, free: 58.65 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006456/0.994, allocations: 4.297 MB / 0.6169 GB, free: 54.33 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.021e-05/0.9941, allocations: 20 kB / 0.6169 GB, free: 54.31 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.724e-05/0.9941, allocations: 8 kB / 0.6169 GB, free: 54.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.821e-05/0.9941, allocations: 11.95 kB / 0.6169 GB, free: 54.29 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01477/1.009, allocations: 9.982 MB / 0.6267 GB, free: 44.27 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.574e-05/1.009, allocations: 4.062 kB / 0.6267 GB, free: 44.27 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001227/1.01, allocations: 291.5 kB / 0.627 GB, free: 43.98 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00325/1.013, allocations: 1.347 MB / 0.6283 GB, free: 42.63 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001603/1.014, allocations: 43.94 kB / 0.6283 GB, free: 42.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009386/1.023, allocations: 8.96 MB / 0.6371 GB, free: 33.48 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/1.023, allocations: 11.94 kB / 0.6371 GB, free: 33.47 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00885/1.032, allocations: 7.271 MB / 0.6442 GB, free: 26.17 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008416/1.033, allocations: 446.3 kB / 0.6446 GB, free: 25.71 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004108/1.033, allocations: 28 kB / 0.6446 GB, free: 25.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001396/1.035, allocations: 123.8 kB / 0.6447 GB, free: 25.56 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003291/1.035, allocations: 121.4 kB / 0.6449 GB, free: 25.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001237/1.035, allocations: 48 kB / 0.6449 GB, free: 25.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003/1.038, allocations: 2.637 MB / 0.6475 GB, free: 22.75 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.9e-07/1.038, allocations: 3.938 kB / 0.6475 GB, free: 22.75 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004244/1.042, allocations: 1.101 MB / 0.6486 GB, free: 21.65 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.008957/1.051, allocations: 7.918 MB / 0.6563 GB, free: 13.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007136/1.058, allocations: 6.055 MB / 0.6622 GB, free: 7.625 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/1.058, allocations: 4 kB / 0.6622 GB, free: 7.621 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003133/1.062, allocations: 2.222 MB / 0.6644 GB, free: 5.387 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003133/1.065, allocations: 0.5949 MB / 0.665 GB, free: 4.805 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08459/1.149, allocations: 49.85 MB / 0.7136 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004571/1.154, allocations: 3.401 MB / 0.717 GB, free: 10.08 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004512/1.159, allocations: 1.88 MB / 0.7188 GB, free: 8.191 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002971/1.162, allocations: 1.979 MB / 0.7207 GB, free: 6.215 MB / 0.5137 GB Notification: Performance of SimCode: time 1.012e-06/1.162, allocations: 0 / 0.7207 GB, free: 6.215 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3725/1.534, allocations: 83.5 MB / 0.8023 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.95/30.48, allocations: 23.77 kB / 0.8023 GB, free: 142.6 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.1.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