Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.001425/0.001426, allocations: 112.8 kB / 17.74 MB, free: 5.316 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.001499/0.001499, allocations: 186.9 kB / 20.68 MB, free: 2.383 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.42/1.42, allocations: 222.9 MB / 246.4 MB, free: 4.188 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.Loops.Fourbar1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 55.91 kB / 357.5 MB, free: 8.809 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1017, allocations: 49.43 MB / 406.9 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01769/0.1194, allocations: 15.91 MB / 422.8 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01235/0.1318, allocations: 5.116 MB / 428 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003518/0.1354, allocations: 111.6 kB / 428.1 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2165/0.3519, allocations: 4.44 MB / 432.5 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006901/0.3589, allocations: 2.526 MB / 435 MB, free: 3.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002688/0.3616, allocations: 1.154 MB / 436.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01256/0.3742, allocations: 7.953 MB / 444.1 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007129/0.3814, allocations: 5.322 MB / 449.5 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005265/0.3867, allocations: 2.457 MB / 451.9 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005293/0.392, allocations: 3.367 MB / 455.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001425/0.3934, allocations: 0.5036 MB / 455.8 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003374/0.3968, allocations: 1.501 MB / 457.3 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002646/0.3995, allocations: 2.954 MB / 460.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005/0.4045, allocations: 3.446 MB / 463.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01328/0.4178, allocations: 10.6 MB / 474.3 MB, free: 3.441 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.4178, allocations: 0 / 474.3 MB, free: 3.441 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4178, allocations: 0 / 474.3 MB, free: 3.441 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002824/0.4181, allocations: 0 / 474.3 MB, free: 3.441 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.0201/0.4382, allocations: 8.069 MB / 482.4 MB, free: 11.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.4383, allocations: 8.031 kB / 482.4 MB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002338/0.4407, allocations: 1.088 MB / 483.5 MB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0569/0.4976, allocations: 8.447 MB / 491.9 MB, free: 1.887 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01347/0.5111, allocations: 5.86 MB / 497.8 MB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003318/0.5115, allocations: 338.1 kB / 498.1 MB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001602/0.5131, allocations: 485.2 kB / 498.6 MB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02769/0.5408, allocations: 14.46 MB / 0.501 GB, free: 12.08 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002297/0.541, allocations: 75.47 kB / 0.5011 GB, free: 12 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000797/0.5419, allocations: 214.2 kB / 0.5013 GB, free: 11.84 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005704/0.5476, allocations: 2.831 MB / 0.504 GB, free: 9.02 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02729/0.5749, allocations: 13.01 MB / 0.5168 GB, free: 11.99 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08326/0.6582, allocations: 58.14 MB / 0.5735 GB, free: 0.6562 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01901/0.6772, allocations: 7.679 MB / 0.581 GB, free: 8.832 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00737/0.6847, allocations: 5.006 MB / 0.5859 GB, free: 3.812 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02476/0.7095, allocations: 12.71 MB / 0.5983 GB, free: 7.035 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.414e-05/0.7096, allocations: 68.64 kB / 0.5984 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=326): time 7.424e-06/0.7096, allocations: 0 / 0.5984 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of matching and sorting (n=572): time 2.275/2.984, allocations: 411.5 MB / 1 GB, free: 156 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001303/2.984, allocations: 270.1 kB / 1.001 GB, free: 155.7 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007958/2.992, allocations: 5.508 MB / 1.006 GB, free: 155.4 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.002076/2.994, allocations: 113.9 kB / 1.006 GB, free: 155.4 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003142/2.998, allocations: 4.153 MB / 1.01 GB, free: 154.4 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.004118/3.002, allocations: 2.099 MB / 1.012 GB, free: 152.8 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007223/3.009, allocations: 2.081 MB / 1.014 GB, free: 152 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001243/3.009, allocations: 305 kB / 1.014 GB, free: 151.7 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01274/3.022, allocations: 10.88 MB / 1.025 GB, free: 147.5 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01472/3.037, allocations: 14.99 MB / 1.04 GB, free: 136.7 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02984/3.066, allocations: 27.11 MB / 1.066 GB, free: 113.5 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001298/3.067, allocations: 47.94 kB / 1.066 GB, free: 113.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5449/3.612, allocations: 140.4 MB / 1.203 GB, free: 138.8 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.321e-05/3.612, allocations: 63.5 kB / 1.203 GB, free: 138.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001405/3.612, allocations: 139.1 kB / 1.204 GB, free: 138.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07721/3.689, allocations: 34.57 MB / 1.237 GB, free: 126.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005015/3.694, allocations: 1.483 MB / 1.239 GB, free: 125.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4951/4.189, allocations: 203.2 MB / 1.437 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01364/4.203, allocations: 1.705 MB / 1.439 GB, free: 127.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002584/4.206, allocations: 0.5236 MB / 1.439 GB, free: 126.7 MB / 0.5294 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.006842/4.212, allocations: 3.086 MB / 1.442 GB, free: 124.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002056/4.215, allocations: 0.6166 MB / 1.443 GB, free: 123.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5176/4.732, allocations: 136.4 MB / 1.576 GB, free: 149.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001022/4.732, allocations: 55.97 kB / 1.576 GB, free: 149.3 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001996/4.732, allocations: 58.56 kB / 1.576 GB, free: 149.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001169/4.733, allocations: 30.44 kB / 1.576 GB, free: 149.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5979/5.331, allocations: 205.9 MB / 1.777 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.442e-05/5.331, allocations: 5.75 kB / 1.777 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001699/5.332, allocations: 331.8 kB / 1.778 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07129/5.404, allocations: 33.29 MB / 1.81 GB, free: 145.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00193/5.406, allocations: 99.98 kB / 1.81 GB, free: 145.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4977/5.903, allocations: 185.8 MB / 1.992 GB, free: 141 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-05/5.903, allocations: 9.469 kB / 1.992 GB, free: 141 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3237/6.227, allocations: 152.3 MB / 2.141 GB, free: 10.74 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002316/6.23, allocations: 0.6621 MB / 2.141 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003744/6.233, allocations: 98 kB / 2.141 GB, free: 9.973 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.2765/6.51, allocations: 1.476 MB / 2.143 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004914/6.515, allocations: 499.9 kB / 2.143 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001395/6.516, allocations: 147.8 kB / 2.143 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007403/6.524, allocations: 3.514 MB / 2.147 GB, free: 150.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.81e-07/6.524, allocations: 0 / 2.147 GB, free: 150.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01837/6.542, allocations: 3.802 MB / 2.151 GB, free: 150.2 MB / 0.5294 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.3235/6.866, allocations: 152.8 MB / 2.3 GB, free: 46.67 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.05407/6.92, allocations: 33.66 MB / 2.333 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.235e-05/6.92, allocations: 0 / 2.333 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.2792/7.199, allocations: 20.54 MB / 2.353 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008998/7.208, allocations: 0.8305 MB / 2.353 GB, free: 158 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9866/8.195, allocations: 353.3 MB / 2.699 GB, free: 29.44 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009794/8.205, allocations: 5.104 MB / 2.704 GB, free: 24.36 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004971/8.21, allocations: 2.06 MB / 2.706 GB, free: 22.38 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004383/8.214, allocations: 3.03 MB / 2.708 GB, free: 19.35 MB / 0.5294 GB Notification: Performance of SimCode: time 1.833e-06/8.214, allocations: 0 / 2.708 GB, free: 19.35 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9055/9.119, allocations: 334.3 MB / 3.035 GB, free: 92.21 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.86/39.98, allocations: 21.48 kB / 3.035 GB, free: 92.2 MB / 0.545 GB " [Timeout remaining time 620] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv. Warning: Get data of variable j1.phi from file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv failed! Error: Could not read variable j1.w in file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv. Warning: Get data of variable j1.w from file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 42.91900978900958]