Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.0008727/0.0008727, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008357/0.0008357, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8765/0.8765, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.Loops.Fourbar1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.484e-05/1.615e-05, allocations: 6.219 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01003/0.01004, allocations: 13.77 MB / 338.3 MB, free: 2.086 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008119/0.01816, allocations: 4.949 MB / 343.3 MB, free: 13.12 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001776/0.01994, allocations: 139.2 kB / 343.4 MB, free: 12.98 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004019/0.02396, allocations: 4.543 MB / 348 MB, free: 8.426 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003461/0.02742, allocations: 2.655 MB / 350.6 MB, free: 5.758 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001363/0.02878, allocations: 1.271 MB / 351.9 MB, free: 4.484 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005987/0.03477, allocations: 9.213 MB / 361.1 MB, free: 11.25 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004161/0.03893, allocations: 5.046 MB / 366.2 MB, free: 6.129 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003611/0.04254, allocations: 3.8 MB / 370 MB, free: 2.32 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003086/0.04563, allocations: 3.745 MB / 373.7 MB, free: 14.57 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005138/0.04614, allocations: 0.5195 MB / 374.2 MB, free: 14.05 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001583/0.04772, allocations: 1.467 MB / 375.7 MB, free: 12.58 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001706/0.04943, allocations: 3.195 MB / 378.9 MB, free: 9.375 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001417/0.05085, allocations: 2.08 MB / 381 MB, free: 7.289 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006678/0.05752, allocations: 10.71 MB / 391.7 MB, free: 12.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.05753, allocations: 0 / 391.7 MB, free: 12.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.05753, allocations: 0 / 391.7 MB, free: 12.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001063/0.05764, allocations: 0 / 391.7 MB, free: 12.55 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.009751/0.06739, allocations: 8.17 MB / 399.8 MB, free: 4.301 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.06743, allocations: 8.031 kB / 399.9 MB, free: 4.293 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009862/0.06842, allocations: 1.09 MB / 400.9 MB, free: 3.191 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02708/0.09549, allocations: 9.168 MB / 410.1 MB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007979/0.1035, allocations: 4.967 MB / 415.1 MB, free: 4.953 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002448/0.1037, allocations: 337.1 kB / 415.4 MB, free: 4.621 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008754/0.1046, allocations: 468.1 kB / 415.9 MB, free: 4.164 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01525/0.1198, allocations: 14.55 MB / 430.4 MB, free: 4.664 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001123/0.12, allocations: 79.41 kB / 430.5 MB, free: 4.586 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003831/0.1203, allocations: 219.8 kB / 430.7 MB, free: 4.371 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00283/0.1232, allocations: 2.832 MB / 433.5 MB, free: 1.527 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01526/0.1384, allocations: 12.95 MB / 446.5 MB, free: 4.551 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1867/0.3251, allocations: 55.62 MB / 0.4903 GB, free: 65.55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008849/0.3339, allocations: 7.052 MB / 0.4972 GB, free: 58.48 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002799/0.3367, allocations: 4.554 MB / 0.5017 GB, free: 53.92 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009556/0.3463, allocations: 11.85 MB / 0.5132 GB, free: 42.26 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.3463, allocations: 76.58 kB / 0.5133 GB, free: 42.18 MB / 410.7 MB Notification: Performance of pre-optimization done (n=326): time 4.979e-06/0.3463, allocations: 0 / 0.5133 GB, free: 42.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=572): time 1.149/1.495, allocations: 413.7 MB / 0.9173 GB, free: 48.38 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.301e-05/1.495, allocations: 261.7 kB / 0.9175 GB, free: 48.07 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005726/1.501, allocations: 6.258 MB / 0.9236 GB, free: 42.01 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001646/1.503, allocations: 117.7 kB / 0.9238 GB, free: 41.89 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001617/1.504, allocations: 4.118 MB / 0.9278 GB, free: 38.16 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002124/1.507, allocations: 2.059 MB / 0.9298 GB, free: 36.13 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002899/1.509, allocations: 2.068 MB / 0.9318 GB, free: 34.05 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 2.722e-05/1.51, allocations: 308.9 kB / 0.9321 GB, free: 33.75 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008818/1.518, allocations: 10.87 MB / 0.9427 GB, free: 22.87 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.166/1.684, allocations: 15.06 MB / 0.9574 GB, free: 146.7 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02572/1.71, allocations: 27.12 MB / 0.9839 GB, free: 132.6 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002219/1.71, allocations: 37.31 kB / 0.984 GB, free: 132.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.1897/1.9, allocations: 140.2 MB / 1.121 GB, free: 5.156 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.47e-05/1.9, allocations: 64 kB / 1.121 GB, free: 5.094 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001091/1.9, allocations: 136 kB / 1.121 GB, free: 4.961 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2124/2.113, allocations: 34.56 MB / 1.155 GB, free: 132.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003459/2.116, allocations: 1.488 MB / 1.156 GB, free: 132.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3434/2.459, allocations: 200.8 MB / 1.352 GB, free: 124.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008225/2.468, allocations: 1.792 MB / 1.354 GB, free: 123.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008629/2.469, allocations: 0.5281 MB / 1.355 GB, free: 123 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (783): * Single equations (assignments): 776 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(21,163,34.9%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.003928/2.472, allocations: 3.086 MB / 1.358 GB, free: 120.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00109/2.474, allocations: 0.6103 MB / 1.358 GB, free: 120.2 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3526/2.826, allocations: 136.2 MB / 1.491 GB, free: 143.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.936e-05/2.826, allocations: 59.16 kB / 1.491 GB, free: 143.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001685/2.826, allocations: 59.97 kB / 1.491 GB, free: 143.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001085/2.827, allocations: 27.33 kB / 1.491 GB, free: 143.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4082/3.235, allocations: 203 MB / 1.69 GB, free: 134.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.362e-05/3.235, allocations: 7.625 kB / 1.69 GB, free: 134.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001033/3.236, allocations: 326.7 kB / 1.69 GB, free: 134 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04295/3.279, allocations: 33.27 MB / 1.722 GB, free: 110.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001578/3.28, allocations: 102.1 kB / 1.722 GB, free: 110.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3406/3.621, allocations: 183.6 MB / 1.902 GB, free: 104 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/3.621, allocations: 15.31 kB / 1.902 GB, free: 104 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3747/3.996, allocations: 152 MB / 2.05 GB, free: 129.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001933/3.998, allocations: 0.6594 MB / 2.051 GB, free: 129.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002804/4, allocations: 102.4 kB / 2.051 GB, free: 129.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006514/4.007, allocations: 1.562 MB / 2.052 GB, free: 128.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003312/4.01, allocations: 0.5208 MB / 2.053 GB, free: 127.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006895/4.011, allocations: 141.6 kB / 2.053 GB, free: 127.7 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004496/4.015, allocations: 3.933 MB / 2.057 GB, free: 124.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 6e-08/4.015, allocations: 0 / 2.057 GB, free: 124.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01371/4.029, allocations: 4.059 MB / 2.061 GB, free: 120.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (j1.phi,j1.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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.371/4.4, allocations: 152.5 MB / 2.21 GB, free: 137.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03815/4.438, allocations: 32.59 MB / 2.242 GB, free: 116.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/4.438, allocations: 0 / 2.242 GB, free: 116.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02447/4.463, allocations: 19.56 MB / 2.261 GB, free: 97.31 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005156/4.468, allocations: 0.8301 MB / 2.262 GB, free: 96.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8014/5.269, allocations: 354.8 MB / 2.608 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006188/5.276, allocations: 4.607 MB / 2.613 GB, free: 98.71 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003207/5.279, allocations: 2.079 MB / 2.615 GB, free: 96.76 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002732/5.281, allocations: 3.048 MB / 2.618 GB, free: 96.25 MB / 0.4948 GB Notification: Performance of SimCode: time 2.465e-06/5.281, allocations: 0 / 2.618 GB, free: 96.25 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6512/5.933, allocations: 347.8 MB / 2.957 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.38/23.31, allocations: 0 / 2.957 GB, free: 106.9 MB / 0.4948 GB " [Timeout remaining time 637] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable j1.phi in file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv. Warning: Get data of variable j1.phi from file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv failed! Error: Could not read variable j1.w in file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv. Warning: Get data of variable j1.w from file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 25.37568321172148]