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.00139/0.00139, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001647/0.001647, allocations: 214.2 kB / 23.72 MB, free: 4.531 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.474/1.474, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.001569/0.001569, allocations: 51.92 kB / 377.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2681, allocations: 53.36 MB / 431.1 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01666/0.2848, allocations: 13.74 MB / 444.8 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01043/0.2952, allocations: 4.945 MB / 449.8 MB, free: 3.922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002811/0.298, allocations: 135.3 kB / 449.9 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008911/0.3069, allocations: 4.314 MB / 454.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006789/0.3137, allocations: 2.595 MB / 456.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002665/0.3164, allocations: 1.151 MB / 458 MB, free: 11.7 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01077/0.3271, allocations: 8.132 MB / 466.1 MB, free: 3.555 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005386/0.3325, allocations: 4.279 MB / 470.4 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003995/0.3365, allocations: 2.5 MB / 472.9 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004832/0.3413, allocations: 3.622 MB / 476.5 MB, free: 9.055 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001041/0.3424, allocations: 0.5039 MB / 477 MB, free: 8.551 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002642/0.345, allocations: 1.397 MB / 478.4 MB, free: 7.152 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003191/0.3482, allocations: 3.058 MB / 481.5 MB, free: 4.086 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00371/0.3519, allocations: 2.587 MB / 484 MB, free: 1.484 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01256/0.3645, allocations: 10.6 MB / 494.6 MB, free: 6.844 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.3645, allocations: 0 / 494.6 MB, free: 6.844 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3645, allocations: 4 kB / 494.6 MB, free: 6.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002623/0.3648, allocations: 0 / 494.6 MB, free: 6.84 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.02059/0.3853, allocations: 8.031 MB / 0.4909 GB, free: 14.73 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.3854, allocations: 8.031 kB / 0.4909 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002643/0.388, allocations: 1.074 MB / 0.4919 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05475/0.4428, allocations: 8.562 MB / 0.5003 GB, free: 5.059 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0138/0.4566, allocations: 5.47 MB / 0.5057 GB, free: 15.5 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003357/0.4569, allocations: 336.9 kB / 0.506 GB, free: 15.17 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001875/0.4588, allocations: 475.7 kB / 0.5064 GB, free: 14.71 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02865/0.4874, allocations: 14.54 MB / 0.5206 GB, free: 15.21 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002407/0.4877, allocations: 75.42 kB / 0.5207 GB, free: 15.14 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007657/0.4884, allocations: 211.8 kB / 0.5209 GB, free: 14.93 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005595/0.494, allocations: 2.84 MB / 0.5237 GB, free: 12.09 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2258/0.7199, allocations: 12.94 MB / 0.5363 GB, free: 92.53 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06361/0.7835, allocations: 55.01 MB / 0.59 GB, free: 49.81 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01496/0.7985, allocations: 6.895 MB / 0.5968 GB, free: 42.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004529/0.803, allocations: 4.546 MB / 0.6012 GB, free: 38.35 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01796/0.8209, allocations: 11.43 MB / 0.6124 GB, free: 27.11 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.208e-05/0.821, allocations: 76.62 kB / 0.6124 GB, free: 27.02 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 8.055e-06/0.821, allocations: 3.938 kB / 0.6124 GB, free: 27.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.113/2.934, allocations: 411.3 MB / 1.014 GB, free: 147.5 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.088e-05/2.934, allocations: 265.7 kB / 1.014 GB, free: 147.2 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007068/2.941, allocations: 5.721 MB / 1.02 GB, free: 141.9 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.00162/2.943, allocations: 113.7 kB / 1.02 GB, free: 141.8 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001982/2.945, allocations: 4.15 MB / 1.024 GB, free: 138.7 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002359/2.947, allocations: 2.1 MB / 1.026 GB, free: 136.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003901/2.951, allocations: 2.08 MB / 1.028 GB, free: 134.5 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.189e-05/2.951, allocations: 308.9 kB / 1.028 GB, free: 134.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01194/2.963, allocations: 10.88 MB / 1.039 GB, free: 123.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01417/2.977, allocations: 15.07 MB / 1.054 GB, free: 106.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02808/3.006, allocations: 27.12 MB / 1.08 GB, free: 77.37 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000119/3.006, allocations: 42.44 kB / 1.08 GB, free: 77.33 MB / 0.545 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.6052/3.611, allocations: 140.2 MB / 1.217 GB, free: 135.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.043e-05/3.611, allocations: 64 kB / 1.217 GB, free: 135.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001245/3.611, allocations: 143.9 kB / 1.217 GB, free: 135.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07393/3.685, allocations: 34.57 MB / 1.251 GB, free: 101.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004499/3.69, allocations: 1.476 MB / 1.253 GB, free: 99.84 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4489/4.138, allocations: 200.7 MB / 1.449 GB, free: 102.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01257/4.151, allocations: 1.709 MB / 1.45 GB, free: 101.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002552/4.154, allocations: 0.5267 MB / 1.451 GB, free: 101.1 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.006388/4.16, allocations: 3.083 MB / 1.454 GB, free: 98.65 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001919/4.162, allocations: 0.6093 MB / 1.454 GB, free: 98.38 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5161/4.678, allocations: 136.2 MB / 1.587 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.004e-05/4.678, allocations: 61.78 kB / 1.587 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001424/4.678, allocations: 59.22 kB / 1.588 GB, free: 158.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001109/4.678, allocations: 27.88 kB / 1.588 GB, free: 158.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.591/5.269, allocations: 202.7 MB / 1.786 GB, free: 166.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.735e-05/5.269, allocations: 9.062 kB / 1.786 GB, free: 166.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001521/5.271, allocations: 331.7 kB / 1.786 GB, free: 166.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06897/5.34, allocations: 33.27 MB / 1.818 GB, free: 164.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00161/5.342, allocations: 104.2 kB / 1.818 GB, free: 164.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4357/5.777, allocations: 183.5 MB / 1.998 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.869e-06/5.777, allocations: 14.22 kB / 1.998 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3106/6.088, allocations: 152 MB / 2.146 GB, free: 37.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001782/6.09, allocations: 0.5804 MB / 2.147 GB, free: 37.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002648/6.092, allocations: 99.98 kB / 2.147 GB, free: 37.23 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009201/6.102, allocations: 1.488 MB / 2.148 GB, free: 35.75 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003839/6.105, allocations: 0.5183 MB / 2.149 GB, free: 35.23 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001214/6.107, allocations: 144 kB / 2.149 GB, free: 35.09 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005344/6.112, allocations: 3.514 MB / 2.152 GB, free: 31.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/6.112, allocations: 0 / 2.152 GB, free: 31.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01401/6.126, allocations: 3.786 MB / 2.156 GB, free: 27.82 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.5424/6.668, allocations: 152.5 MB / 2.305 GB, free: 84.88 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.05358/6.722, allocations: 32.6 MB / 2.337 GB, free: 52.48 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.321e-05/6.722, allocations: 4 kB / 2.337 GB, free: 52.48 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.03634/6.758, allocations: 19.56 MB / 2.356 GB, free: 33.05 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008018/6.766, allocations: 0.8223 MB / 2.357 GB, free: 32.25 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.198/7.965, allocations: 352.9 MB / 2.701 GB, free: 89.16 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006503/7.971, allocations: 4.605 MB / 2.706 GB, free: 85.32 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004515/7.976, allocations: 2.068 MB / 2.708 GB, free: 83.38 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005033/7.981, allocations: 3.023 MB / 2.711 GB, free: 82.88 MB / 0.5606 GB Notification: Performance of SimCode: time 1.113e-06/7.981, allocations: 0 / 2.711 GB, free: 82.88 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8877/8.868, allocations: 344.6 MB / 3.047 GB, free: 153.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.7/35.57, allocations: 4.906 kB / 3.047 GB, free: 153.6 MB / 0.5606 GB " [Timeout remaining time 624] (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: 38.74731406700448]