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.001523/0.001523, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.001442/0.001442, allocations: 181.7 kB / 23.72 MB, free: 4.699 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.505/1.505, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.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.001526/0.001526, allocations: 52.06 kB / 370.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.263, allocations: 52.18 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01865/0.2817, allocations: 16.01 MB / 438.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01107/0.2927, allocations: 5.152 MB / 443.8 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002832/0.2956, allocations: 135.2 kB / 443.9 MB, free: 9.199 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008664/0.3042, allocations: 4.52 MB / 448.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007407/0.3116, allocations: 2.621 MB / 451.1 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002863/0.3145, allocations: 1.154 MB / 452.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01251/0.327, allocations: 7.979 MB / 460.2 MB, free: 8.887 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006716/0.3337, allocations: 4.295 MB / 464.5 MB, free: 4.512 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005045/0.3388, allocations: 2.519 MB / 467 MB, free: 1.984 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006193/0.345, allocations: 3.622 MB / 470.6 MB, free: 14.35 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001211/0.3462, allocations: 0.5039 MB / 471.1 MB, free: 13.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003183/0.3494, allocations: 1.541 MB / 472.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003501/0.3529, allocations: 3.07 MB / 475.8 MB, free: 9.227 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004639/0.3575, allocations: 3.442 MB / 479.2 MB, free: 5.766 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01467/0.3722, allocations: 10.6 MB / 489.8 MB, free: 11.12 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3722, allocations: 0 / 489.8 MB, free: 11.12 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3722, allocations: 0 / 489.8 MB, free: 11.12 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000302/0.3725, allocations: 0 / 489.8 MB, free: 11.12 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.02142/0.3939, allocations: 7.996 MB / 497.8 MB, free: 3.051 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.3939, allocations: 8.031 kB / 497.8 MB, free: 3.043 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002233/0.3962, allocations: 1.086 MB / 498.9 MB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05275/0.4489, allocations: 8.441 MB / 0.4954 GB, free: 9.484 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01373/0.4627, allocations: 5.771 MB / 0.5011 GB, free: 3.633 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003458/0.463, allocations: 348.8 kB / 0.5014 GB, free: 3.289 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001616/0.4646, allocations: 467.7 kB / 0.5018 GB, free: 2.832 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0266/0.4912, allocations: 14.47 MB / 0.516 GB, free: 3.434 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001953/0.4914, allocations: 79.41 kB / 0.5161 GB, free: 3.355 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005737/0.492, allocations: 215.8 kB / 0.5163 GB, free: 3.145 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005496/0.4975, allocations: 2.832 MB / 0.519 GB, free: 312 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02695/0.5244, allocations: 13.01 MB / 0.5317 GB, free: 3.27 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.279/0.8034, allocations: 58.02 MB / 0.5884 GB, free: 57.52 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01477/0.8182, allocations: 6.902 MB / 0.5951 GB, free: 50.57 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004503/0.8227, allocations: 4.55 MB / 0.5996 GB, free: 46.02 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01636/0.8391, allocations: 12.29 MB / 0.6116 GB, free: 33.93 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.214e-05/0.8391, allocations: 68.64 kB / 0.6116 GB, free: 33.86 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.241e-06/0.8391, allocations: 0 / 0.6116 GB, free: 33.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.03/2.869, allocations: 411 MB / 1.013 GB, free: 125.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.863e-05/2.869, allocations: 269.7 kB / 1.013 GB, free: 125.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006332/2.876, allocations: 5.502 MB / 1.019 GB, free: 119.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001739/2.877, allocations: 109.7 kB / 1.019 GB, free: 119.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00217/2.879, allocations: 4.157 MB / 1.023 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002682/2.882, allocations: 2.105 MB / 1.025 GB, free: 114.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003918/2.886, allocations: 2.08 MB / 1.027 GB, free: 112.6 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.925e-05/2.886, allocations: 301.1 kB / 1.027 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0122/2.898, allocations: 10.87 MB / 1.038 GB, free: 101.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01467/2.913, allocations: 15 MB / 1.052 GB, free: 84.61 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02882/2.942, allocations: 27.12 MB / 1.079 GB, free: 55.62 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001758/2.942, allocations: 40 kB / 1.079 GB, free: 55.58 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5753/3.517, allocations: 140.1 MB / 1.216 GB, free: 110 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.788e-05/3.517, allocations: 60 kB / 1.216 GB, free: 109.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001188/3.518, allocations: 140 kB / 1.216 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07181/3.589, allocations: 34.57 MB / 1.25 GB, free: 75.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004712/3.594, allocations: 1.479 MB / 1.251 GB, free: 73.95 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5096/4.104, allocations: 202.8 MB / 1.449 GB, free: 88.68 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0124/4.116, allocations: 1.708 MB / 1.451 GB, free: 86.99 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002033/4.118, allocations: 0.5242 MB / 1.451 GB, free: 86.47 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.005725/4.124, allocations: 3.085 MB / 1.454 GB, free: 83.59 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001766/4.126, allocations: 0.6142 MB / 1.455 GB, free: 83.26 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5639/4.689, allocations: 136.1 MB / 1.588 GB, free: 147 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-05/4.69, allocations: 60 kB / 1.588 GB, free: 146.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001667/4.69, allocations: 56 kB / 1.588 GB, free: 146.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001207/4.69, allocations: 31.89 kB / 1.588 GB, free: 146.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5976/5.287, allocations: 205.5 MB / 1.789 GB, free: 145.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.737e-05/5.288, allocations: 5.656 kB / 1.789 GB, free: 145.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001484/5.289, allocations: 336.7 kB / 1.789 GB, free: 145.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06702/5.356, allocations: 33.28 MB / 1.822 GB, free: 117.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001713/5.358, allocations: 99.98 kB / 1.822 GB, free: 117.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4837/5.841, allocations: 185.4 MB / 2.003 GB, free: 133.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/5.841, allocations: 4 kB / 2.003 GB, free: 133.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5492/6.391, allocations: 151.9 MB / 2.151 GB, free: 152.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002218/6.393, allocations: 0.5821 MB / 2.152 GB, free: 152.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002728/6.396, allocations: 98.09 kB / 2.152 GB, free: 152.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009227/6.405, allocations: 1.476 MB / 2.153 GB, free: 152.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003693/6.408, allocations: 0.5262 MB / 2.154 GB, free: 152.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001007/6.409, allocations: 141.6 kB / 2.154 GB, free: 152.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005413/6.415, allocations: 3.521 MB / 2.157 GB, free: 152 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/6.415, allocations: 0.9688 kB / 2.157 GB, free: 152 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0143/6.429, allocations: 3.803 MB / 2.161 GB, free: 152 MB / 0.545 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.304/6.733, allocations: 152.4 MB / 2.31 GB, free: 25.79 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.3081/7.041, allocations: 32.59 MB / 2.342 GB, free: 173.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.079e-05/7.041, allocations: 2.031 kB / 2.342 GB, free: 173.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.03632/7.078, allocations: 19.54 MB / 2.361 GB, free: 172.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006484/7.084, allocations: 0.8272 MB / 2.362 GB, free: 172.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9635/8.048, allocations: 352.8 MB / 2.706 GB, free: 23.58 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006295/8.054, allocations: 5.095 MB / 2.711 GB, free: 18.47 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004044/8.058, allocations: 2.064 MB / 2.713 GB, free: 16.41 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003078/8.061, allocations: 3.03 MB / 2.716 GB, free: 13.38 MB / 0.545 GB Notification: Performance of SimCode: time 1.433e-06/8.061, allocations: 0 / 2.716 GB, free: 13.38 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9259/8.987, allocations: 344.9 MB / 3.053 GB, free: 88.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 32.58/41.56, allocations: 4.062 kB / 3.053 GB, free: 88.8 MB / 0.5606 GB " [Timeout remaining time 618] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 44.640171207000094]