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.001651/0.001651, allocations: 119.3 kB / 17.74 MB, free: 5.352 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.001891/0.001891, allocations: 182.9 kB / 20.67 MB, free: 2.426 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.493/1.493, allocations: 222.9 MB / 246.4 MB, free: 4.207 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.001511/0.001511, allocations: 47.92 kB / 357.5 MB, free: 8.824 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1058, allocations: 49.45 MB / 406.9 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01251/0.1184, allocations: 10.41 MB / 417.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008887/0.1273, allocations: 3.96 MB / 421.3 MB, free: 8.914 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002134/0.1295, allocations: 67.81 kB / 421.4 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004996/0.1346, allocations: 2.207 MB / 423.6 MB, free: 6.633 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005599/0.1402, allocations: 1.848 MB / 425.4 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001822/0.142, allocations: 0.7409 MB / 426.2 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2104/0.3524, allocations: 5.178 MB / 431.4 MB, free: 5.762 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003245/0.3557, allocations: 2.878 MB / 434.2 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002755/0.3585, allocations: 1.476 MB / 435.7 MB, free: 5.379 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002848/0.3614, allocations: 2.033 MB / 437.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005984/0.362, allocations: 299.9 kB / 438 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002243/0.3642, allocations: 1.189 MB / 439.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002334/0.3666, allocations: 1.838 MB / 441.1 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003345/0.3699, allocations: 2.202 MB / 443.3 MB, free: 4.238 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009575/0.3795, allocations: 7.038 MB / 450.3 MB, free: 3.199 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.306e-06/0.3796, allocations: 4.969 kB / 450.3 MB, free: 3.195 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3796, allocations: 0 / 450.3 MB, free: 3.195 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002148/0.3798, allocations: 0 / 450.3 MB, free: 3.195 MB / 350.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.01317/0.393, allocations: 5.049 MB / 455.4 MB, free: 0.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.393, allocations: 12.28 kB / 455.4 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009471/0.394, allocations: 0.6167 MB / 456 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1765/0.5704, allocations: 12.36 MB / 468.3 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01154/0.582, allocations: 3.93 MB / 472.3 MB, free: 6.234 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002447/0.5823, allocations: 202.8 kB / 472.5 MB, free: 6.066 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002238/0.5846, allocations: 275.5 kB / 472.7 MB, free: 5.828 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01996/0.6045, allocations: 8.728 MB / 481.5 MB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001386/0.6047, allocations: 45.84 kB / 481.5 MB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004163/0.6051, allocations: 130.4 kB / 481.6 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003393/0.6085, allocations: 1.766 MB / 483.4 MB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01503/0.6236, allocations: 7.536 MB / 490.9 MB, free: 3.391 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04998/0.6736, allocations: 35.42 MB / 0.514 GB, free: 15.36 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009352/0.683, allocations: 3.686 MB / 0.5176 GB, free: 11.55 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003143/0.6862, allocations: 2.033 MB / 0.5196 GB, free: 9.508 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005508/0.6868, allocations: 323.2 kB / 0.5199 GB, free: 9.141 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.551e-05/0.6868, allocations: 55.39 kB / 0.52 GB, free: 9.082 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 6.261e-06/0.6869, allocations: 0 / 0.52 GB, free: 9.082 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.06216/0.749, allocations: 20.26 MB / 0.5398 GB, free: 4.801 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001801/0.7492, allocations: 260 kB / 0.54 GB, free: 4.496 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008489/0.7577, allocations: 3.951 MB / 0.5439 GB, free: 0.5156 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004876/0.7583, allocations: 49.7 kB / 0.5439 GB, free: 472 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003154/0.7614, allocations: 2.946 MB / 0.5468 GB, free: 13.59 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00121/0.7627, allocations: 0.7464 MB / 0.5475 GB, free: 12.86 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001834/0.7645, allocations: 1.115 MB / 0.5486 GB, free: 11.73 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.7646, allocations: 301.1 kB / 0.5489 GB, free: 11.43 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003357/0.768, allocations: 2.162 MB / 0.551 GB, free: 9.266 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006144/0.7742, allocations: 5.401 MB / 0.5563 GB, free: 2.305 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01138/0.7855, allocations: 8.203 MB / 0.5643 GB, free: 8.789 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.86e-05/0.7857, allocations: 32 kB / 0.5643 GB, free: 8.758 MB / 478.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01831/0.804, allocations: 8.667 MB / 0.5728 GB, free: 84 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001214/0.8042, allocations: 52 kB / 0.5728 GB, free: 32 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002312/0.8044, allocations: 116.2 kB / 0.5729 GB, free: 15.91 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004585/0.809, allocations: 1.504 MB / 0.5744 GB, free: 14.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004269/0.8133, allocations: 1.216 MB / 0.5756 GB, free: 13.19 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01536/0.8287, allocations: 9.942 MB / 0.5853 GB, free: 3.113 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005548/0.8342, allocations: 319.6 kB / 0.5856 GB, free: 2.801 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001581/0.8359, allocations: 331 kB / 0.5859 GB, free: 2.48 MB / 494.1 MB 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.005755/0.8416, allocations: 1.936 MB / 0.5878 GB, free: 0.5352 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00125/0.8429, allocations: 373.5 kB / 0.5882 GB, free: 172 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009866/0.8528, allocations: 4.162 MB / 0.5922 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-05/0.8529, allocations: 20 kB / 0.5923 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.972e-05/0.8529, allocations: 8 kB / 0.5923 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.969e-05/0.853, allocations: 7.969 kB / 0.5923 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02159/0.8746, allocations: 9.275 MB / 0.6013 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.651e-05/0.8746, allocations: 4 kB / 0.6013 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00133/0.8759, allocations: 279.5 kB / 0.6016 GB, free: 2.352 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00417/0.8801, allocations: 1.343 MB / 0.6029 GB, free: 1.004 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002101/0.8803, allocations: 43.44 kB / 0.603 GB, free: 0.9648 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01411/0.8945, allocations: 8.931 MB / 0.6117 GB, free: 7.898 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.417e-05/0.8945, allocations: 4 kB / 0.6117 GB, free: 7.895 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01323/0.9078, allocations: 7.06 MB / 0.6186 GB, free: 0.7969 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001454/0.9093, allocations: 430.5 kB / 0.619 GB, free: 364 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001369/0.9107, allocations: 32 kB / 0.619 GB, free: 332 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002393/0.9131, allocations: 119.7 kB / 0.6191 GB, free: 216 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005012/0.9136, allocations: 117 kB / 0.6192 GB, free: 100 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002244/0.9138, allocations: 44 kB / 0.6193 GB, free: 56 kB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.228/1.142, allocations: 2.505 MB / 0.6217 GB, free: 175.4 MB / 0.5137 GB Notification: Performance of sort global known variables: time 6.62e-07/1.142, allocations: 1 kB / 0.6217 GB, free: 175.4 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005192/1.147, allocations: 1.006 MB / 0.6227 GB, free: 175.4 MB / 0.5137 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.01126/1.158, allocations: 7.699 MB / 0.6302 GB, free: 174.4 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008388/1.167, allocations: 5.384 MB / 0.6355 GB, free: 174 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/1.167, allocations: 0 / 0.6355 GB, free: 174 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003169/1.17, allocations: 2.083 MB / 0.6375 GB, free: 173.8 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003081/1.173, allocations: 0.4886 MB / 0.638 GB, free: 173.6 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05853/1.232, allocations: 45.79 MB / 0.6827 GB, free: 135.2 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002743/1.234, allocations: 3.085 MB / 0.6857 GB, free: 132.1 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00331/1.238, allocations: 1.824 MB / 0.6875 GB, free: 130.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001763/1.24, allocations: 1.745 MB / 0.6892 GB, free: 128.6 MB / 0.5137 GB Notification: Performance of SimCode: time 1.433e-06/1.24, allocations: 0 / 0.6892 GB, free: 128.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1057/1.345, allocations: 74.64 MB / 0.7621 GB, free: 54.41 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.4/23.74, allocations: 4 kB / 0.7621 GB, free: 54.41 MB / 0.5137 GB " [Timeout remaining time 636] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 26.393626866978593]