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.001684/0.001684, allocations: 115.8 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.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.002095/0.002095, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.447/1.447, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.001819/0.001819, allocations: 51.92 kB / 377.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3223, allocations: 53.36 MB / 431.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.03288/0.3552, allocations: 15.96 MB / 447.1 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01755/0.3727, allocations: 5.182 MB / 452.3 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004243/0.377, allocations: 131.3 kB / 452.4 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01349/0.3905, allocations: 4.509 MB / 456.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007745/0.3982, allocations: 2.568 MB / 459.5 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003301/0.4015, allocations: 1.162 MB / 460.7 MB, free: 9.242 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01362/0.4151, allocations: 8.122 MB / 468.8 MB, free: 1.105 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007656/0.4228, allocations: 4.288 MB / 473.1 MB, free: 12.74 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005512/0.4283, allocations: 2.504 MB / 475.6 MB, free: 10.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006441/0.4347, allocations: 3.618 MB / 479.2 MB, free: 6.598 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001905/0.4366, allocations: 0.5039 MB / 479.7 MB, free: 6.094 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004039/0.4407, allocations: 1.533 MB / 481.2 MB, free: 4.559 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00465/0.4453, allocations: 3.054 MB / 484.3 MB, free: 1.496 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006447/0.4518, allocations: 3.414 MB / 487.7 MB, free: 14.06 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01489/0.4667, allocations: 10.55 MB / 498.2 MB, free: 3.477 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.4667, allocations: 0 / 498.2 MB, free: 3.477 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4667, allocations: 4 kB / 498.2 MB, free: 3.473 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003571/0.467, allocations: 0 / 498.2 MB, free: 3.473 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.02217/0.4892, allocations: 8.031 MB / 0.4944 GB, free: 11.36 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.4892, allocations: 8.031 kB / 0.4944 GB, free: 11.36 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002924/0.4922, allocations: 1.078 MB / 0.4955 GB, free: 10.27 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05571/0.5479, allocations: 8.558 MB / 0.5038 GB, free: 1.691 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01395/0.5618, allocations: 5.444 MB / 0.5091 GB, free: 12.16 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003478/0.5622, allocations: 344.5 kB / 0.5095 GB, free: 11.82 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001792/0.564, allocations: 471.6 kB / 0.5099 GB, free: 11.36 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03131/0.5953, allocations: 14.47 MB / 0.524 GB, free: 11.96 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002735/0.5955, allocations: 75.45 kB / 0.5241 GB, free: 11.89 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0013/0.5968, allocations: 219.8 kB / 0.5243 GB, free: 11.68 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006165/0.603, allocations: 2.832 MB / 0.5271 GB, free: 8.836 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2376/0.8406, allocations: 13.01 MB / 0.5398 GB, free: 91.7 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05824/0.8988, allocations: 58.01 MB / 0.5965 GB, free: 43.72 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01458/0.9134, allocations: 6.9 MB / 0.6032 GB, free: 36.78 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004392/0.9178, allocations: 4.553 MB / 0.6076 GB, free: 32.22 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01643/0.9342, allocations: 12.28 MB / 0.6196 GB, free: 20.14 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.33e-05/0.9342, allocations: 72.69 kB / 0.6197 GB, free: 20.06 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.923e-06/0.9343, allocations: 0 / 0.6197 GB, free: 20.06 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.08/3.014, allocations: 411.2 MB / 1.021 GB, free: 140.8 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/3.014, allocations: 265.6 kB / 1.021 GB, free: 140.5 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00804/3.022, allocations: 5.491 MB / 1.027 GB, free: 135.3 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001781/3.024, allocations: 117.7 kB / 1.027 GB, free: 135.1 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002418/3.026, allocations: 4.155 MB / 1.031 GB, free: 132.1 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00292/3.029, allocations: 2.101 MB / 1.033 GB, free: 130.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005716/3.035, allocations: 2.08 MB / 1.035 GB, free: 128 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.359e-05/3.035, allocations: 305.1 kB / 1.035 GB, free: 127.7 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01356/3.049, allocations: 10.88 MB / 1.046 GB, free: 116.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0163/3.065, allocations: 14.99 MB / 1.061 GB, free: 99.98 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03034/3.095, allocations: 27.12 MB / 1.087 GB, free: 71.02 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001746/3.095, allocations: 40 kB / 1.087 GB, free: 70.98 MB / 0.545 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5715/3.667, allocations: 140.2 MB / 1.224 GB, free: 129 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001074/3.667, allocations: 66.81 kB / 1.224 GB, free: 129 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001679/3.667, allocations: 137 kB / 1.224 GB, free: 128.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07639/3.743, allocations: 34.58 MB / 1.258 GB, free: 94.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00503/3.749, allocations: 1.482 MB / 1.259 GB, free: 93.34 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5455/4.294, allocations: 202.8 MB / 1.458 GB, free: 95.46 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01453/4.309, allocations: 1.707 MB / 1.459 GB, free: 94.48 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003005/4.312, allocations: 0.5267 MB / 1.46 GB, free: 94.01 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.007887/4.319, allocations: 3.094 MB / 1.463 GB, free: 91.52 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002659/4.322, allocations: 0.6139 MB / 1.463 GB, free: 91.21 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5712/4.893, allocations: 136.2 MB / 1.596 GB, free: 151.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.423e-05/4.893, allocations: 61.53 kB / 1.596 GB, free: 151.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001471/4.894, allocations: 59.28 kB / 1.596 GB, free: 151.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00011/4.894, allocations: 23.91 kB / 1.596 GB, free: 151.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5846/5.478, allocations: 205.6 MB / 1.797 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.378e-05/5.478, allocations: 7.594 kB / 1.797 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001693/5.48, allocations: 332.4 kB / 1.798 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06835/5.548, allocations: 33.29 MB / 1.83 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001712/5.55, allocations: 100 kB / 1.83 GB, free: 154 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4631/6.013, allocations: 185.5 MB / 2.011 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.276e-06/6.013, allocations: 11.34 kB / 2.011 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3128/6.326, allocations: 152 MB / 2.16 GB, free: 24.62 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001661/6.328, allocations: 0.5803 MB / 2.16 GB, free: 24.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002748/6.33, allocations: 103.8 kB / 2.16 GB, free: 23.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009367/6.34, allocations: 1.478 MB / 2.162 GB, free: 22.46 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004111/6.344, allocations: 0.5251 MB / 2.162 GB, free: 21.95 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001383/6.345, allocations: 147.7 kB / 2.163 GB, free: 21.8 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005515/6.351, allocations: 3.521 MB / 2.166 GB, free: 18.31 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.7e-07/6.351, allocations: 0 / 2.166 GB, free: 18.31 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01339/6.364, allocations: 3.778 MB / 2.17 GB, free: 14.54 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.6073/6.971, allocations: 152.5 MB / 2.319 GB, free: 70.29 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.05772/7.029, allocations: 32.62 MB / 2.35 GB, free: 37.8 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-05/7.029, allocations: 0 / 2.35 GB, free: 37.8 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.03811/7.067, allocations: 19.55 MB / 2.369 GB, free: 18.24 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007949/7.075, allocations: 0.8349 MB / 2.37 GB, free: 17.43 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.246/8.321, allocations: 352.9 MB / 2.715 GB, free: 80.31 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007811/8.329, allocations: 5.101 MB / 2.72 GB, free: 75.21 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004347/8.333, allocations: 2.067 MB / 2.722 GB, free: 73.27 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003295/8.336, allocations: 3.026 MB / 2.725 GB, free: 70.25 MB / 0.5606 GB Notification: Performance of SimCode: time 1.001e-06/8.336, allocations: 0 / 2.725 GB, free: 70.25 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.997/9.333, allocations: 344.8 MB / 3.062 GB, free: 136.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 33.87/43.2, allocations: 2.656 kB / 3.062 GB, free: 136.7 MB / 0.5606 GB " [Timeout remaining time 617] (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: 46.092964898998616]