Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001824/0.001824, allocations: 111.1 kB / 20.44 MB, free: 1.336 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002281/0.002281, allocations: 213.1 kB / 23.73 MB, free: 4.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.444/1.444, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 55.86 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2259/0.2274, allocations: 53.35 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01207/0.2395, allocations: 9.128 MB / 440.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008019/0.2475, allocations: 3.783 MB / 444 MB, free: 9.699 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001265/0.2488, allocations: 79.56 kB / 444.1 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004341/0.2531, allocations: 2.149 MB / 446.2 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004665/0.2578, allocations: 1.891 MB / 448.1 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001681/0.2594, allocations: 0.7409 MB / 448.9 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007371/0.2668, allocations: 5.267 MB / 454.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003557/0.2704, allocations: 2.408 MB / 456.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002636/0.273, allocations: 1.507 MB / 458 MB, free: 11.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003459/0.2765, allocations: 2.208 MB / 460.2 MB, free: 9.355 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007493/0.2772, allocations: 300 kB / 460.5 MB, free: 9.062 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00222/0.2794, allocations: 1.092 MB / 461.6 MB, free: 7.969 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002116/0.2815, allocations: 1.897 MB / 463.5 MB, free: 6.066 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002268/0.2838, allocations: 1.655 MB / 465.2 MB, free: 4.402 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008616/0.2924, allocations: 7.009 MB / 472.2 MB, free: 13.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.997e-05/0.2925, allocations: 3.984 kB / 472.2 MB, free: 13.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2925, allocations: 3.938 kB / 472.2 MB, free: 13.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001806/0.2926, allocations: 3.938 kB / 472.2 MB, free: 13.35 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01372/0.3064, allocations: 4.963 MB / 477.2 MB, free: 8.328 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.3064, allocations: 12.03 kB / 477.2 MB, free: 8.316 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001033/0.3074, allocations: 0.6206 MB / 477.8 MB, free: 7.688 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1655/0.4729, allocations: 12.3 MB / 490.1 MB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009682/0.4826, allocations: 3.643 MB / 493.7 MB, free: 7.676 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001944/0.4828, allocations: 201 kB / 493.9 MB, free: 7.477 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009392/0.4837, allocations: 267.8 kB / 494.2 MB, free: 7.215 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01527/0.499, allocations: 8.834 MB / 0.4912 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001481/0.4991, allocations: 51.59 kB / 0.4913 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004056/0.4996, allocations: 131.9 kB / 0.4914 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003281/0.5028, allocations: 1.762 MB / 0.4931 GB, free: 11.77 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01535/0.5182, allocations: 7.507 MB / 0.5005 GB, free: 4.254 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04466/0.5629, allocations: 33.6 MB / 0.5333 GB, free: 1.684 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1814/0.7443, allocations: 3.104 MB / 0.5363 GB, free: 101.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002197/0.7465, allocations: 1.898 MB / 0.5382 GB, free: 101 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003047/0.7468, allocations: 94.84 kB / 0.5383 GB, free: 101 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.7468, allocations: 57.95 kB / 0.5383 GB, free: 100.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.248e-06/0.7468, allocations: 0 / 0.5383 GB, free: 100.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.04461/0.7914, allocations: 20.07 MB / 0.5579 GB, free: 89.88 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.621e-05/0.7915, allocations: 260.6 kB / 0.5582 GB, free: 89.57 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003885/0.7954, allocations: 4.134 MB / 0.5622 GB, free: 85.59 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002389/0.7956, allocations: 49.7 kB / 0.5622 GB, free: 85.54 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001099/0.7967, allocations: 2.924 MB / 0.5651 GB, free: 82.88 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004873/0.7972, allocations: 0.7536 MB / 0.5658 GB, free: 82.13 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001065/0.7983, allocations: 1.111 MB / 0.5669 GB, free: 81.01 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.778e-05/0.7983, allocations: 308.7 kB / 0.5672 GB, free: 80.71 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002291/0.8006, allocations: 2.162 MB / 0.5693 GB, free: 78.54 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003123/0.8037, allocations: 5.507 MB / 0.5747 GB, free: 71.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006201/0.8099, allocations: 8.189 MB / 0.5827 GB, free: 61.65 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.163e-05/0.81, allocations: 32 kB / 0.5827 GB, free: 61.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01184/0.8218, allocations: 8.648 MB / 0.5912 GB, free: 52.96 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.785e-05/0.8219, allocations: 55.94 kB / 0.5912 GB, free: 52.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.443e-05/0.8219, allocations: 112 kB / 0.5913 GB, free: 52.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003533/0.8255, allocations: 1.505 MB / 0.5928 GB, free: 51.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003275/0.8288, allocations: 1.226 MB / 0.594 GB, free: 50.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01021/0.839, allocations: 9.735 MB / 0.6035 GB, free: 40.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004065/0.843, allocations: 315.6 kB / 0.6038 GB, free: 39.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007313/0.8438, allocations: 333.5 kB / 0.6041 GB, free: 39.58 MB / 446.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.002485/0.8463, allocations: 1.938 MB / 0.606 GB, free: 37.64 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00067/0.8469, allocations: 369.6 kB / 0.6064 GB, free: 37.28 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006423/0.8533, allocations: 4.127 MB / 0.6104 GB, free: 33.14 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.71e-05/0.8534, allocations: 24 kB / 0.6104 GB, free: 33.11 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/0.8534, allocations: 6.906 kB / 0.6104 GB, free: 33.11 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.508e-05/0.8534, allocations: 15.97 kB / 0.6104 GB, free: 33.09 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01326/0.8667, allocations: 8.796 MB / 0.619 GB, free: 24.28 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.8667, allocations: 0 / 0.619 GB, free: 24.28 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.8678, allocations: 267.6 kB / 0.6193 GB, free: 24.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003314/0.8711, allocations: 1.351 MB / 0.6206 GB, free: 22.66 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000133/0.8713, allocations: 35.92 kB / 0.6206 GB, free: 22.63 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00935/0.8806, allocations: 8.758 MB / 0.6292 GB, free: 13.76 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.8806, allocations: 4 kB / 0.6292 GB, free: 13.75 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00891/0.8895, allocations: 7.034 MB / 0.6361 GB, free: 6.691 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009087/0.8905, allocations: 353.4 kB / 0.6364 GB, free: 6.344 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004218/0.8909, allocations: 31.59 kB / 0.6364 GB, free: 6.316 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001419/0.8923, allocations: 115.8 kB / 0.6366 GB, free: 6.203 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003097/0.8926, allocations: 125 kB / 0.6367 GB, free: 6.078 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001239/0.8927, allocations: 48 kB / 0.6367 GB, free: 6.031 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002751/0.8955, allocations: 2.497 MB / 0.6392 GB, free: 3.555 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.8955, allocations: 0 / 0.6392 GB, free: 3.555 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003984/0.8995, allocations: 0.996 MB / 0.6401 GB, free: 2.559 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 (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.01133/0.9108, allocations: 7.676 MB / 0.6476 GB, free: 10.84 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008598/0.9194, allocations: 5.154 MB / 0.6527 GB, free: 5.699 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.381e-06/0.9194, allocations: 0 / 0.6527 GB, free: 5.699 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003493/0.9229, allocations: 1.94 MB / 0.6546 GB, free: 3.75 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002799/0.9257, allocations: 493.1 kB / 0.655 GB, free: 3.273 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07631/1.002, allocations: 45.78 MB / 0.6997 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003668/1.006, allocations: 2.543 MB / 0.7022 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004181/1.01, allocations: 1.823 MB / 0.704 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002655/1.013, allocations: 1.749 MB / 0.7057 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of SimCode: time 9.32e-07/1.013, allocations: 4 kB / 0.7057 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.312/1.325, allocations: 78.41 MB / 0.7823 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.36/17.68, allocations: 11.94 kB / 0.7823 GB, free: 146.3 MB / 0.5294 GB " [Timeout remaining time 642] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 20.297440795984585]