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.001299/0.001299, allocations: 123.1 kB / 17.79 MB, free: 5.219 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.001321/0.001321, allocations: 194.9 kB / 20.74 MB, free: 2.277 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.474/1.474, allocations: 225.6 MB / 249.1 MB, free: 3.617 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.001544/0.001544, allocations: 51.92 kB / 365.6 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1129, allocations: 52.14 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01966/0.1325, allocations: 15.99 MB / 433.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01243/0.145, allocations: 5.136 MB / 438.9 MB, free: 7.395 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003418/0.1484, allocations: 135.2 kB / 439 MB, free: 7.262 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009096/0.1575, allocations: 4.497 MB / 443.5 MB, free: 2.75 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007798/0.1653, allocations: 2.595 MB / 446.1 MB, free: 148 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2391/0.4044, allocations: 1.148 MB / 447.3 MB, free: 7.723 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01323/0.4176, allocations: 7.96 MB / 455.2 MB, free: 7.703 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007772/0.4254, allocations: 4.535 MB / 459.8 MB, free: 7.328 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006352/0.4318, allocations: 2.512 MB / 462.3 MB, free: 7.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006904/0.4387, allocations: 3.623 MB / 465.9 MB, free: 6.422 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00269/0.4414, allocations: 0.5048 MB / 466.4 MB, free: 6.422 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004949/0.4463, allocations: 1.542 MB / 468 MB, free: 6.234 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005011/0.4513, allocations: 3.069 MB / 471 MB, free: 5.148 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007471/0.4588, allocations: 3.44 MB / 474.5 MB, free: 2.805 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.015/0.4738, allocations: 10.6 MB / 485.1 MB, free: 12.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.347e-06/0.4738, allocations: 2.469 kB / 485.1 MB, free: 12.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.4738, allocations: 0 / 485.1 MB, free: 12.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004824/0.4743, allocations: 0 / 485.1 MB, free: 12.21 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02556/0.4998, allocations: 8.071 MB / 493.1 MB, free: 6.059 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.798e-05/0.4999, allocations: 8.031 kB / 493.2 MB, free: 6.051 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003345/0.5032, allocations: 1.082 MB / 494.2 MB, free: 5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05673/0.56, allocations: 8.445 MB / 0.4909 GB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01445/0.5744, allocations: 5.872 MB / 0.4966 GB, free: 6.887 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003846/0.5748, allocations: 334.9 kB / 0.497 GB, free: 6.602 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002255/0.5771, allocations: 475.2 kB / 0.4974 GB, free: 6.184 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03121/0.6083, allocations: 14.46 MB / 0.5115 GB, free: 7.035 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002185/0.6085, allocations: 76.27 kB / 0.5116 GB, free: 6.988 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006586/0.6092, allocations: 215.2 kB / 0.5118 GB, free: 6.824 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006/0.6152, allocations: 2.834 MB / 0.5146 GB, free: 4.023 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02871/0.6439, allocations: 13.01 MB / 0.5273 GB, free: 7.23 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08915/0.733, allocations: 58.13 MB / 0.584 GB, free: 11.97 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0206/0.7536, allocations: 7.361 MB / 0.5912 GB, free: 4.477 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007272/0.7609, allocations: 4.497 MB / 0.5956 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02717/0.7881, allocations: 12.69 MB / 0.608 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001252/0.7882, allocations: 65.33 kB / 0.6081 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=326): time 1.235e-05/0.7882, allocations: 4 kB / 0.6081 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of matching and sorting (n=572): time 2.053/2.841, allocations: 411.2 MB / 1.01 GB, free: 5.023 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.413e-05/2.841, allocations: 269.6 kB / 1.01 GB, free: 4.707 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2396/3.08, allocations: 5.497 MB / 1.015 GB, free: 152.3 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001946/3.082, allocations: 113.4 kB / 1.015 GB, free: 152.2 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003141/3.086, allocations: 4.157 MB / 1.019 GB, free: 150.8 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.00312/3.089, allocations: 2.098 MB / 1.021 GB, free: 149.3 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007396/3.096, allocations: 2.078 MB / 1.024 GB, free: 148.5 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 5.212e-05/3.096, allocations: 302.1 kB / 1.024 GB, free: 148.2 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01725/3.113, allocations: 10.88 MB / 1.034 GB, free: 144 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02157/3.135, allocations: 14.99 MB / 1.049 GB, free: 134.5 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0315/3.166, allocations: 27.11 MB / 1.076 GB, free: 119.2 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002269/3.167, allocations: 40.5 kB / 1.076 GB, free: 119.2 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.6511/3.818, allocations: 140.1 MB / 1.212 GB, free: 148.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001263/3.818, allocations: 64.22 kB / 1.212 GB, free: 148.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002682/3.818, allocations: 137.7 kB / 1.213 GB, free: 148.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08425/3.902, allocations: 34.57 MB / 1.246 GB, free: 143.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004833/3.907, allocations: 1.483 MB / 1.248 GB, free: 143.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5313/4.439, allocations: 203.2 MB / 1.446 GB, free: 128.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01426/4.453, allocations: 1.707 MB / 1.448 GB, free: 128 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002892/4.456, allocations: 0.5227 MB / 1.448 GB, free: 127.9 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.008371/4.464, allocations: 3.089 MB / 1.451 GB, free: 126.7 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002675/4.467, allocations: 0.6173 MB / 1.452 GB, free: 126.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3054/4.772, allocations: 136.1 MB / 1.585 GB, free: 16.19 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001236/4.772, allocations: 56 kB / 1.585 GB, free: 16.13 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002155/4.772, allocations: 60 kB / 1.585 GB, free: 16.07 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001516/4.773, allocations: 28.64 kB / 1.585 GB, free: 16.05 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5948/5.367, allocations: 205.6 MB / 1.786 GB, free: 22.92 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001008/5.368, allocations: 8 kB / 1.786 GB, free: 22.91 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001644/5.369, allocations: 328.1 kB / 1.786 GB, free: 22.59 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.328/5.697, allocations: 33.28 MB / 1.819 GB, free: 156.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001757/5.699, allocations: 100.7 kB / 1.819 GB, free: 156.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2287/5.928, allocations: 185.8 MB / 2 GB, free: 23.29 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.094e-05/5.928, allocations: 11.19 kB / 2 GB, free: 23.28 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5865/6.514, allocations: 151.9 MB / 2.149 GB, free: 72.25 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001844/6.516, allocations: 0.6588 MB / 2.149 GB, free: 71.77 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003092/6.519, allocations: 97.97 kB / 2.149 GB, free: 71.67 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009832/6.529, allocations: 1.478 MB / 2.151 GB, free: 70.19 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004496/6.533, allocations: 0.4933 MB / 2.151 GB, free: 69.71 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001231/6.535, allocations: 140 kB / 2.151 GB, free: 69.57 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005446/6.54, allocations: 3.521 MB / 2.155 GB, free: 66.07 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.41e-07/6.54, allocations: 0 / 2.155 GB, free: 66.07 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01528/6.555, allocations: 3.81 MB / 2.159 GB, free: 62.27 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.5673/7.123, allocations: 152.4 MB / 2.307 GB, free: 110.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.05399/7.177, allocations: 32.6 MB / 2.339 GB, free: 80.52 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.098e-05/7.177, allocations: 0 / 2.339 GB, free: 80.52 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.03755/7.214, allocations: 19.54 MB / 2.358 GB, free: 61.12 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007639/7.222, allocations: 0.8231 MB / 2.359 GB, free: 60.32 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.217/8.439, allocations: 352.7 MB / 2.703 GB, free: 106.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006418/8.445, allocations: 5.101 MB / 2.708 GB, free: 101.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004107/8.449, allocations: 2.063 MB / 2.71 GB, free: 99.89 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003224/8.452, allocations: 3.026 MB / 2.713 GB, free: 99.39 MB / 0.545 GB Notification: Performance of SimCode: time 1.472e-06/8.452, allocations: 2.344 kB / 2.713 GB, free: 99.39 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9308/9.383, allocations: 336.2 MB / 3.042 GB, free: 137 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 32.35/41.73, allocations: 7.625 kB / 3.042 GB, free: 137 MB / 0.545 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.725085912272334]