Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.001604/0.001604, allocations: 107.1 kB / 20.44 MB, free: 1.355 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.002144/0.002144, allocations: 210.2 kB / 23.73 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.439/1.439, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.Fourbar_analytic,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 43.94 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2663, allocations: 53.36 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01516/0.2815, allocations: 11.75 MB / 442.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0116/0.2931, allocations: 4.659 MB / 447.5 MB, free: 6.191 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002277/0.2954, allocations: 103.5 kB / 447.6 MB, free: 6.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008266/0.3036, allocations: 4.058 MB / 451.6 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006061/0.3097, allocations: 2.186 MB / 453.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002752/0.3124, allocations: 1.115 MB / 454.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008759/0.3212, allocations: 6.063 MB / 461 MB, free: 8.637 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005764/0.327, allocations: 4.065 MB / 465.1 MB, free: 4.504 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00416/0.3311, allocations: 2.185 MB / 467.3 MB, free: 2.312 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004996/0.3361, allocations: 3.085 MB / 470.3 MB, free: 15.22 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001414/0.3375, allocations: 0.4922 MB / 470.8 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003531/0.3411, allocations: 1.533 MB / 472.4 MB, free: 13.19 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004027/0.3451, allocations: 2.661 MB / 475 MB, free: 10.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004787/0.3499, allocations: 2.23 MB / 477.3 MB, free: 8.281 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01293/0.3628, allocations: 9.699 MB / 487 MB, free: 14.55 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.3628, allocations: 4 kB / 487 MB, free: 14.54 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3628, allocations: 0 / 487 MB, free: 14.54 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002967/0.3631, allocations: 0 / 487 MB, free: 14.54 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01591/0.379, allocations: 6.272 MB / 493.2 MB, free: 8.203 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.3791, allocations: 8.031 kB / 493.2 MB, free: 8.195 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001936/0.381, allocations: 0.9364 MB / 494.2 MB, free: 7.246 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03796/0.419, allocations: 6.055 MB / 0.4885 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0107/0.4297, allocations: 4.187 MB / 0.4926 GB, free: 12.93 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003102/0.43, allocations: 308.1 kB / 0.4929 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00144/0.4314, allocations: 443.7 kB / 0.4933 GB, free: 12.19 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02225/0.4537, allocations: 12.4 MB / 0.5054 GB, free: 15.03 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001345/0.4538, allocations: 43.64 kB / 0.5055 GB, free: 14.98 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004794/0.4543, allocations: 187.9 kB / 0.5056 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003251/0.4575, allocations: 2.035 MB / 0.5076 GB, free: 12.76 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02188/0.4794, allocations: 10.35 MB / 0.5177 GB, free: 2.395 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2605/0.74, allocations: 41.62 MB / 0.5584 GB, free: 71.55 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01098/0.7509, allocations: 4.198 MB / 0.5625 GB, free: 70.56 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002043/0.753, allocations: 1.85 MB / 0.5643 GB, free: 69.81 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009861/0.7628, allocations: 5.631 MB / 0.5698 GB, free: 67.31 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.374e-05/0.7629, allocations: 57.58 kB / 0.5698 GB, free: 67.25 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 5.391e-06/0.7629, allocations: 0 / 0.5698 GB, free: 67.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.05732/0.8202, allocations: 19.2 MB / 0.5886 GB, free: 49.95 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.327e-05/0.8203, allocations: 217.3 kB / 0.5888 GB, free: 49.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005177/0.8255, allocations: 4.709 MB / 0.5934 GB, free: 45.13 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004335/0.8259, allocations: 57.7 kB / 0.5935 GB, free: 45.07 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001693/0.8276, allocations: 3.696 MB / 0.5971 GB, free: 41.57 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008432/0.8284, allocations: 0.8699 MB / 0.5979 GB, free: 40.71 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001344/0.8298, allocations: 1.275 MB / 0.5992 GB, free: 39.43 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.588e-05/0.8298, allocations: 305.1 kB / 0.5995 GB, free: 39.13 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00257/0.8324, allocations: 2.234 MB / 0.6016 GB, free: 36.89 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003875/0.8363, allocations: 6.032 MB / 0.6075 GB, free: 29.02 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007575/0.8438, allocations: 8.929 MB / 0.6162 GB, free: 18.25 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001145/0.844, allocations: 36 kB / 0.6163 GB, free: 18.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01485/0.8588, allocations: 9.053 MB / 0.6251 GB, free: 9.152 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.666e-05/0.8589, allocations: 64.06 kB / 0.6252 GB, free: 9.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001557/0.859, allocations: 135.9 kB / 0.6253 GB, free: 8.957 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003266/0.8623, allocations: 1.201 MB / 0.6265 GB, free: 7.754 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004034/0.8663, allocations: 1.419 MB / 0.6279 GB, free: 6.332 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009852/0.8762, allocations: 7.81 MB / 0.6355 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005944/0.8821, allocations: 343.6 kB / 0.6358 GB, free: 14.08 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001082/0.8832, allocations: 380 kB / 0.6362 GB, free: 13.71 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (766): * Single equations (assignments): 762 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004578/0.8878, allocations: 2.474 MB / 0.6386 GB, free: 11.22 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00106/0.8889, allocations: 429.1 kB / 0.639 GB, free: 10.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008299/0.8972, allocations: 3.877 MB / 0.6428 GB, free: 6.91 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.483e-05/0.8972, allocations: 24 kB / 0.6428 GB, free: 6.887 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.781e-05/0.8972, allocations: 12 kB / 0.6428 GB, free: 6.875 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.537e-05/0.8973, allocations: 7.969 kB / 0.6428 GB, free: 6.867 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02204/0.9193, allocations: 9.504 MB / 0.6521 GB, free: 13.27 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-05/0.9193, allocations: 12.12 kB / 0.6521 GB, free: 13.26 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001604/0.9209, allocations: 332 kB / 0.6524 GB, free: 12.93 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003347/0.9243, allocations: 0.9842 MB / 0.6534 GB, free: 11.95 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002353/0.9245, allocations: 47.98 kB / 0.6535 GB, free: 11.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01054/0.935, allocations: 6.509 MB / 0.6598 GB, free: 5.277 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.656e-06/0.9351, allocations: 7.938 kB / 0.6598 GB, free: 5.27 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01292/0.948, allocations: 6.625 MB / 0.6663 GB, free: 14.56 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00162/0.9496, allocations: 394 kB / 0.6667 GB, free: 14.17 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006151/0.9502, allocations: 47.42 kB / 0.6667 GB, free: 14.13 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001584/0.9518, allocations: 107.9 kB / 0.6668 GB, free: 14.02 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003855/0.9522, allocations: 148.9 kB / 0.667 GB, free: 13.88 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000155/0.9523, allocations: 60 kB / 0.667 GB, free: 13.82 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004596/0.9569, allocations: 2.828 MB / 0.6698 GB, free: 10.99 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.9569, allocations: 0 / 0.6698 GB, free: 10.99 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005683/0.9626, allocations: 1.156 MB / 0.6709 GB, free: 9.832 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01273/0.9753, allocations: 7.33 MB / 0.6781 GB, free: 2.418 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01018/0.9855, allocations: 5.328 MB / 0.6833 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-05/0.9855, allocations: 4 kB / 0.6833 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003223/0.9888, allocations: 1.707 MB / 0.6849 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003563/0.9923, allocations: 0.5681 MB / 0.6855 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09309/1.085, allocations: 51.55 MB / 0.7358 GB, free: 1.309 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2384/1.324, allocations: 3.344 MB / 0.7391 GB, free: 197.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005545/1.329, allocations: 1.939 MB / 0.741 GB, free: 197.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003172/1.333, allocations: 2.285 MB / 0.7432 GB, free: 197 MB / 0.545 GB Notification: Performance of SimCode: time 1.001e-06/1.333, allocations: 1.375 kB / 0.7432 GB, free: 197 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1324/1.465, allocations: 87.64 MB / 0.8288 GB, free: 120.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.18/18.65, allocations: 10.61 kB / 0.8288 GB, free: 120.2 MB / 0.545 GB " [Timeout remaining time 641] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_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_Fourbar_analytic.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.Fourbar_analytic_res.csv. Warning: Get data of variable j1.phi from file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv failed! Error: Could not read variable j1.w in file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv. Warning: Get data of variable j1.w from file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 21.317661017004866]