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.002179/0.002179, allocations: 123.4 kB / 17.79 MB, free: 5.246 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.002738/0.002738, allocations: 208.3 kB / 20.75 MB, free: 2.297 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.571/1.571, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.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 0.001539/0.001539, allocations: 51.94 kB / 373 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.121, allocations: 53.33 MB / 426.3 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2456/0.3666, allocations: 15.93 MB / 442.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01273/0.3793, allocations: 5.153 MB / 447.4 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004481/0.3838, allocations: 132.7 kB / 447.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009851/0.3936, allocations: 4.481 MB / 452 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008897/0.4025, allocations: 2.567 MB / 454.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003805/0.4063, allocations: 1.149 MB / 455.7 MB, free: 11.15 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0141/0.4204, allocations: 8.103 MB / 463.8 MB, free: 6.965 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008096/0.4285, allocations: 4.53 MB / 468.4 MB, free: 4.145 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008774/0.4373, allocations: 2.506 MB / 470.9 MB, free: 2.727 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007044/0.4444, allocations: 3.619 MB / 474.5 MB, free: 500 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001858/0.4462, allocations: 0.507 MB / 475 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004069/0.4503, allocations: 1.522 MB / 476.5 MB, free: 14.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003771/0.4541, allocations: 3.046 MB / 479.6 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005264/0.4593, allocations: 3.426 MB / 483 MB, free: 7.961 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01471/0.474, allocations: 10.54 MB / 493.5 MB, free: 13.38 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.474, allocations: 3.938 kB / 493.5 MB, free: 13.37 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.474, allocations: 0 / 493.5 MB, free: 13.37 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003629/0.4744, allocations: 4 kB / 493.5 MB, free: 13.37 MB / 398.1 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.02268/0.4971, allocations: 8.099 MB / 0.4899 GB, free: 5.172 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/0.4971, allocations: 8.031 kB / 0.4899 GB, free: 5.164 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003173/0.5003, allocations: 1.078 MB / 0.4909 GB, free: 4.074 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05672/0.557, allocations: 8.562 MB / 0.4993 GB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01399/0.571, allocations: 5.55 MB / 0.5047 GB, free: 5.867 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003559/0.5714, allocations: 337.1 kB / 0.505 GB, free: 5.535 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001998/0.5734, allocations: 475.6 kB / 0.5055 GB, free: 5.07 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03131/0.6047, allocations: 14.46 MB / 0.5196 GB, free: 5.676 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003109/0.605, allocations: 71.42 kB / 0.5197 GB, free: 5.605 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001276/0.6063, allocations: 219.8 kB / 0.5199 GB, free: 5.391 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006286/0.6126, allocations: 2.836 MB / 0.5227 GB, free: 2.547 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03004/0.6426, allocations: 13 MB / 0.5354 GB, free: 5.527 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08907/0.7317, allocations: 58.14 MB / 0.5921 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01941/0.7511, allocations: 7.335 MB / 0.5993 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007026/0.7581, allocations: 4.504 MB / 0.6037 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02265/0.7808, allocations: 12.7 MB / 0.6161 GB, free: 1.027 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.921e-05/0.7808, allocations: 69.58 kB / 0.6162 GB, free: 0.9492 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=326): time 8.055e-06/0.7808, allocations: 3.984 kB / 0.6162 GB, free: 0.9453 MB / 0.5137 GB Notification: Performance of matching and sorting (n=572): time 2.374/3.155, allocations: 411.3 MB / 1.018 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002063/3.155, allocations: 268 kB / 1.018 GB, free: 158.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01173/3.167, allocations: 5.502 MB / 1.024 GB, free: 157.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.002103/3.169, allocations: 116 kB / 1.024 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003765/3.173, allocations: 4.15 MB / 1.028 GB, free: 155.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.003514/3.176, allocations: 2.1 MB / 1.03 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006051/3.183, allocations: 2.083 MB / 1.032 GB, free: 152.9 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.255e-05/3.183, allocations: 306.2 kB / 1.032 GB, free: 152.6 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01687/3.199, allocations: 10.88 MB / 1.043 GB, free: 148.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01753/3.217, allocations: 14.98 MB / 1.057 GB, free: 138.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03074/3.248, allocations: 27.13 MB / 1.084 GB, free: 123.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001879/3.248, allocations: 38.88 kB / 1.084 GB, free: 123.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5637/3.812, allocations: 140.2 MB / 1.221 GB, free: 157.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001367/3.812, allocations: 64.34 kB / 1.221 GB, free: 157.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000293/3.812, allocations: 140.7 kB / 1.221 GB, free: 157.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08116/3.893, allocations: 34.59 MB / 1.255 GB, free: 152.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004631/3.898, allocations: 1.48 MB / 1.256 GB, free: 152.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5724/4.47, allocations: 203.2 MB / 1.455 GB, free: 137.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01355/4.484, allocations: 1.71 MB / 1.456 GB, free: 137.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00239/4.486, allocations: 0.5214 MB / 1.457 GB, free: 137.5 MB / 0.545 GB 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.007231/4.493, allocations: 3.082 MB / 1.46 GB, free: 136.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002164/4.496, allocations: 0.6137 MB / 1.46 GB, free: 136.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.308/4.804, allocations: 136.2 MB / 1.593 GB, free: 25.55 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-05/4.804, allocations: 60.34 kB / 1.593 GB, free: 25.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000184/4.804, allocations: 61 kB / 1.593 GB, free: 25.44 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001371/4.804, allocations: 27.89 kB / 1.593 GB, free: 25.41 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6269/5.431, allocations: 205.7 MB / 1.794 GB, free: 22.23 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.946e-05/5.431, allocations: 8 kB / 1.794 GB, free: 22.22 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001512/5.432, allocations: 323.5 kB / 1.795 GB, free: 21.91 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07769/5.51, allocations: 33.3 MB / 1.827 GB, free: 4.863 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001794/5.512, allocations: 100 kB / 1.827 GB, free: 4.766 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4969/6.009, allocations: 185.9 MB / 2.009 GB, free: 46.98 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.246e-06/6.009, allocations: 6.469 kB / 2.009 GB, free: 46.98 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6119/6.621, allocations: 152 MB / 2.157 GB, free: 99.97 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001806/6.623, allocations: 0.6508 MB / 2.158 GB, free: 99.65 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002786/6.625, allocations: 104 kB / 2.158 GB, free: 99.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009939/6.635, allocations: 1.478 MB / 2.159 GB, free: 98.07 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00443/6.64, allocations: 0.4969 MB / 2.16 GB, free: 97.58 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001145/6.641, allocations: 141.8 kB / 2.16 GB, free: 97.45 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004761/6.646, allocations: 3.517 MB / 2.163 GB, free: 93.95 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/6.646, allocations: 0 / 2.163 GB, free: 93.95 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01565/6.661, allocations: 3.782 MB / 2.167 GB, free: 90.18 MB / 0.5606 GB 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.6156/7.277, allocations: 152.5 MB / 2.316 GB, free: 143.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.05515/7.332, allocations: 32.61 MB / 2.348 GB, free: 114.3 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.25e-05/7.332, allocations: 3.562 kB / 2.348 GB, free: 114.3 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.03855/7.371, allocations: 19.55 MB / 2.367 GB, free: 94.75 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007155/7.378, allocations: 0.8316 MB / 2.368 GB, free: 93.95 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.282/8.659, allocations: 352.8 MB / 2.712 GB, free: 138.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006814/8.666, allocations: 5.098 MB / 2.717 GB, free: 136.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004298/8.67, allocations: 2.067 MB / 2.719 GB, free: 135.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003659/8.674, allocations: 3.027 MB / 2.722 GB, free: 135.1 MB / 0.5606 GB Notification: Performance of SimCode: time 1.583e-06/8.674, allocations: 0 / 2.722 GB, free: 135.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6861/9.36, allocations: 336.1 MB / 3.051 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.29/39.65, allocations: 14.42 kB / 3.051 GB, free: 6.82 MB / 0.5606 GB " [Timeout remaining time 620] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/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: 42.850684407996596]