Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001827/0.001827, allocations: 116 kB / 17.78 MB, free: 5.289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00208/0.00208, allocations: 190.9 kB / 20.73 MB, free: 2.352 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] 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.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001712/0.001712, allocations: 51.92 kB / 365.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09989/0.1016, allocations: 52.15 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01417/0.1158, allocations: 10.48 MB / 428.3 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00942/0.1252, allocations: 3.975 MB / 432.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00206/0.1272, allocations: 83.56 kB / 432.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005132/0.1324, allocations: 2.231 MB / 434.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005469/0.1378, allocations: 1.899 MB / 436.5 MB, free: 9.887 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002254/0.1401, allocations: 0.7409 MB / 437.2 MB, free: 9.145 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00836/0.1485, allocations: 5.173 MB / 442.4 MB, free: 3.961 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004702/0.1532, allocations: 2.464 MB / 444.8 MB, free: 1.441 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2304/0.3836, allocations: 1.508 MB / 446.3 MB, free: 10.83 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003431/0.387, allocations: 2.21 MB / 448.5 MB, free: 10.83 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001201/0.3882, allocations: 302.3 kB / 448.8 MB, free: 10.83 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00329/0.3915, allocations: 1.229 MB / 450.1 MB, free: 10.83 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003225/0.3947, allocations: 1.911 MB / 452 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005986/0.4007, allocations: 2.204 MB / 454.2 MB, free: 9.875 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01264/0.4133, allocations: 7.04 MB / 461.2 MB, free: 8.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.4133, allocations: 0 / 461.2 MB, free: 8.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.4133, allocations: 0 / 461.2 MB, free: 8.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002623/0.4136, allocations: 1.781 kB / 461.2 MB, free: 8.84 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.02066/0.4343, allocations: 5.053 MB / 466.3 MB, free: 6.801 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/0.4343, allocations: 9.625 kB / 466.3 MB, free: 6.801 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002656/0.437, allocations: 0.6174 MB / 466.9 MB, free: 6.637 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1659/0.6029, allocations: 12.3 MB / 479.2 MB, free: 2.871 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01012/0.613, allocations: 3.927 MB / 483.1 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002052/0.6132, allocations: 200.4 kB / 483.3 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001755/0.615, allocations: 276.7 kB / 483.6 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02295/0.6379, allocations: 8.731 MB / 492.3 MB, free: 8.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003133/0.6382, allocations: 47.36 kB / 492.4 MB, free: 8.043 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001572/0.6398, allocations: 126 kB / 492.5 MB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004078/0.6439, allocations: 1.765 MB / 494.3 MB, free: 6.207 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01871/0.6626, allocations: 7.539 MB / 0.49 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05767/0.7203, allocations: 35.42 MB / 0.5246 GB, free: 10.86 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009534/0.7298, allocations: 3.566 MB / 0.5281 GB, free: 7.16 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003239/0.733, allocations: 1.881 MB / 0.53 GB, free: 5.273 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005967/0.7336, allocations: 333.3 kB / 0.5303 GB, free: 4.898 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.676e-05/0.7337, allocations: 47.56 kB / 0.5303 GB, free: 4.844 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 5.28e-06/0.7337, allocations: 0 / 0.5303 GB, free: 4.844 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.06726/0.801, allocations: 20.23 MB / 0.5501 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001834/0.8012, allocations: 252.6 kB / 0.5503 GB, free: 300 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009807/0.811, allocations: 3.955 MB / 0.5542 GB, free: 12.31 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006714/0.8117, allocations: 49.7 kB / 0.5542 GB, free: 12.25 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003292/0.815, allocations: 2.926 MB / 0.5571 GB, free: 9.344 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001434/0.8164, allocations: 0.7518 MB / 0.5578 GB, free: 8.602 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003717/0.8201, allocations: 1.114 MB / 0.5589 GB, free: 7.48 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.8202, allocations: 305.1 kB / 0.5592 GB, free: 7.18 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004391/0.8246, allocations: 2.166 MB / 0.5613 GB, free: 5.008 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007489/0.8321, allocations: 5.402 MB / 0.5666 GB, free: 14.04 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01185/0.844, allocations: 8.199 MB / 0.5746 GB, free: 4.723 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001366/0.8441, allocations: 36 kB / 0.5746 GB, free: 4.688 MB / 478.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.02059/0.8647, allocations: 8.643 MB / 0.5831 GB, free: 12.12 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001528/0.8648, allocations: 52 kB / 0.5831 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002192/0.8651, allocations: 116 kB / 0.5832 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005039/0.8701, allocations: 1.507 MB / 0.5847 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004626/0.8747, allocations: 1.229 MB / 0.5859 GB, free: 9.223 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01595/0.8907, allocations: 9.936 MB / 0.5956 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005416/0.8961, allocations: 313.8 kB / 0.5959 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001421/0.8975, allocations: 332 kB / 0.5962 GB, free: 14.52 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * Number of states: 0 () * Number of discrete variables: 30 (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 (650): * Single equations (assignments): 646 * 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 {(2,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005291/0.9028, allocations: 1.941 MB / 0.5981 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001341/0.9042, allocations: 370.6 kB / 0.5985 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01052/0.9147, allocations: 4.128 MB / 0.6025 GB, free: 8.066 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.642e-05/0.9147, allocations: 30.33 kB / 0.6025 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.072e-05/0.9148, allocations: 12 kB / 0.6025 GB, free: 8.027 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.112e-05/0.9148, allocations: 11.97 kB / 0.6025 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02446/0.9393, allocations: 9.253 MB / 0.6116 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.832e-05/0.9393, allocations: 4 kB / 0.6116 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001596/0.9409, allocations: 267.6 kB / 0.6118 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004518/0.9454, allocations: 1.351 MB / 0.6132 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000479/0.9459, allocations: 35.61 kB / 0.6132 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01454/0.9604, allocations: 8.934 MB / 0.6219 GB, free: 3.977 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/0.9604, allocations: 4 kB / 0.6219 GB, free: 3.973 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01428/0.9747, allocations: 7.052 MB / 0.6288 GB, free: 12.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001331/0.976, allocations: 418.5 kB / 0.6292 GB, free: 12.47 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001458/0.9775, allocations: 32 kB / 0.6292 GB, free: 12.44 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002776/0.9803, allocations: 119.8 kB / 0.6294 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007647/0.981, allocations: 116 kB / 0.6295 GB, free: 12.21 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003945/0.9814, allocations: 51.75 kB / 0.6295 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006132/0.9876, allocations: 2.506 MB / 0.632 GB, free: 9.641 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.91e-07/0.9876, allocations: 0 / 0.632 GB, free: 9.641 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007089/0.9947, allocations: 1.004 MB / 0.6329 GB, free: 8.637 MB / 0.5294 GB 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 (136): * Single equations (assignments): 132 * 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 {(4,31,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01541/1.01, allocations: 7.687 MB / 0.6405 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2557/1.266, allocations: 5.155 MB / 0.6455 GB, free: 191.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.458e-06/1.266, allocations: 1.125 kB / 0.6455 GB, free: 191.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004336/1.27, allocations: 1.928 MB / 0.6474 GB, free: 191.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003862/1.274, allocations: 494.9 kB / 0.6478 GB, free: 191 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08672/1.361, allocations: 45.76 MB / 0.6925 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005441/1.366, allocations: 3.085 MB / 0.6955 GB, free: 156.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004619/1.371, allocations: 1.822 MB / 0.6973 GB, free: 154.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0033/1.374, allocations: 1.757 MB / 0.699 GB, free: 152.5 MB / 0.5294 GB Notification: Performance of SimCode: time 1.954e-06/1.374, allocations: 0 / 0.699 GB, free: 152.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1237/1.498, allocations: 75.16 MB / 0.7724 GB, free: 77.88 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.32/24.82, allocations: 6.953 kB / 0.7724 GB, free: 77.87 MB / 0.5294 GB " [Timeout remaining time 635] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00059976 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 27.561710675247014]