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.001323/0.001323, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001498/0.001498, allocations: 211.7 kB / 23.73 MB, free: 4.16 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.421/1.421, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.001564/0.001564, allocations: 51.92 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2698, allocations: 53.37 MB / 431.1 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01601/0.2858, allocations: 11.75 MB / 442.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01086/0.2967, allocations: 4.655 MB / 447.5 MB, free: 6.156 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002663/0.2993, allocations: 103.5 kB / 447.6 MB, free: 6.055 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008556/0.3079, allocations: 4.058 MB / 451.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006478/0.3144, allocations: 2.186 MB / 453.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003002/0.3174, allocations: 1.107 MB / 454.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01015/0.3275, allocations: 6.067 MB / 461 MB, free: 8.605 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00624/0.3337, allocations: 4.034 MB / 465 MB, free: 4.504 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004464/0.3382, allocations: 2.189 MB / 467.2 MB, free: 2.309 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005057/0.3433, allocations: 2.882 MB / 470.1 MB, free: 15.42 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001415/0.3447, allocations: 0.4922 MB / 470.6 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003276/0.348, allocations: 1.518 MB / 472.1 MB, free: 13.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003192/0.3512, allocations: 2.661 MB / 474.8 MB, free: 10.74 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003747/0.3549, allocations: 2.226 MB / 477 MB, free: 8.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01387/0.3688, allocations: 9.703 MB / 486.7 MB, free: 14.76 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.215e-06/0.3688, allocations: 0 / 486.7 MB, free: 14.76 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3688, allocations: 0 / 486.7 MB, free: 14.76 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002887/0.3691, allocations: 8 kB / 486.7 MB, free: 14.75 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.01769/0.3868, allocations: 6.264 MB / 493 MB, free: 8.422 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/0.3868, allocations: 12.03 kB / 493 MB, free: 8.41 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002557/0.3894, allocations: 0.9364 MB / 493.9 MB, free: 7.461 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03906/0.4284, allocations: 6.051 MB / 500 MB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01201/0.4404, allocations: 4.203 MB / 0.4924 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004651/0.4409, allocations: 308.1 kB / 0.4927 GB, free: 12.82 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002258/0.4432, allocations: 431.8 kB / 0.4931 GB, free: 12.4 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02788/0.471, allocations: 12.4 MB / 0.5052 GB, free: 15.24 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002966/0.4713, allocations: 51.62 kB / 0.5052 GB, free: 15.19 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001231/0.4726, allocations: 191.9 kB / 0.5054 GB, free: 15 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003579/0.4762, allocations: 2.027 MB / 0.5074 GB, free: 12.97 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02368/0.4998, allocations: 10.35 MB / 0.5175 GB, free: 2.605 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2819/0.7818, allocations: 41.63 MB / 0.5582 GB, free: 71.52 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01065/0.7924, allocations: 4.195 MB / 0.5623 GB, free: 70.53 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001978/0.7944, allocations: 1.837 MB / 0.564 GB, free: 69.78 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0087/0.8031, allocations: 5.632 MB / 0.5695 GB, free: 67.28 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.8031, allocations: 57.94 kB / 0.5696 GB, free: 67.23 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 4.668e-06/0.8031, allocations: 3.656 kB / 0.5696 GB, free: 67.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.06023/0.8634, allocations: 19.2 MB / 0.5884 GB, free: 49.92 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.287e-05/0.8635, allocations: 209.1 kB / 0.5886 GB, free: 49.67 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005531/0.869, allocations: 4.724 MB / 0.5932 GB, free: 45.09 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004744/0.8695, allocations: 53.7 kB / 0.5932 GB, free: 45.03 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001781/0.8712, allocations: 3.698 MB / 0.5968 GB, free: 41.53 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008948/0.8721, allocations: 0.8671 MB / 0.5977 GB, free: 40.68 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001507/0.8736, allocations: 1.278 MB / 0.5989 GB, free: 39.39 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.002e-05/0.8737, allocations: 301.1 kB / 0.5992 GB, free: 39.09 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002752/0.8764, allocations: 2.234 MB / 0.6014 GB, free: 36.85 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004756/0.8812, allocations: 6.027 MB / 0.6073 GB, free: 28.99 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009119/0.8903, allocations: 8.929 MB / 0.616 GB, free: 18.22 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002013/0.8905, allocations: 40 kB / 0.616 GB, free: 18.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01716/0.9077, allocations: 9.053 MB / 0.6249 GB, free: 9.121 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001751/0.9079, allocations: 60 kB / 0.6249 GB, free: 9.062 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002105/0.9081, allocations: 132 kB / 0.6251 GB, free: 8.934 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003647/0.9117, allocations: 1.207 MB / 0.6262 GB, free: 7.723 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004379/0.9161, allocations: 1.411 MB / 0.6276 GB, free: 6.309 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01098/0.9271, allocations: 7.823 MB / 0.6353 GB, free: 14.38 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005208/0.9323, allocations: 335.6 kB / 0.6356 GB, free: 14.05 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001369/0.9337, allocations: 381.8 kB / 0.6359 GB, free: 13.68 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.005931/0.9396, allocations: 2.482 MB / 0.6384 GB, free: 11.18 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001294/0.9409, allocations: 429.1 kB / 0.6388 GB, free: 10.76 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009929/0.9508, allocations: 3.873 MB / 0.6426 GB, free: 6.875 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.597e-05/0.9509, allocations: 31.36 kB / 0.6426 GB, free: 6.848 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.637e-05/0.9509, allocations: 8 kB / 0.6426 GB, free: 6.84 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.497e-05/0.9509, allocations: 7.969 kB / 0.6426 GB, free: 6.832 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02595/0.9769, allocations: 9.511 MB / 0.6519 GB, free: 13.23 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.891e-05/0.9769, allocations: 4 kB / 0.6519 GB, free: 13.22 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001739/0.9787, allocations: 328.1 kB / 0.6522 GB, free: 12.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003715/0.9824, allocations: 0.9959 MB / 0.6532 GB, free: 11.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004243/0.9828, allocations: 39.94 kB / 0.6532 GB, free: 11.86 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01171/0.9945, allocations: 6.513 MB / 0.6596 GB, free: 5.238 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.245e-06/0.9945, allocations: 8.062 kB / 0.6596 GB, free: 5.23 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01394/1.008, allocations: 6.619 MB / 0.6661 GB, free: 14.53 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001559/1.01, allocations: 396.9 kB / 0.6664 GB, free: 14.14 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001253/1.011, allocations: 47.81 kB / 0.6665 GB, free: 14.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00254/1.014, allocations: 107.9 kB / 0.6666 GB, free: 13.99 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005989/1.014, allocations: 156.9 kB / 0.6667 GB, free: 13.84 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003166/1.015, allocations: 56.47 kB / 0.6668 GB, free: 13.78 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006446/1.021, allocations: 2.828 MB / 0.6695 GB, free: 10.95 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/1.021, allocations: 0 / 0.6695 GB, free: 10.95 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006978/1.028, allocations: 1.152 MB / 0.6707 GB, free: 9.801 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.01513/1.043, allocations: 7.339 MB / 0.6778 GB, free: 2.375 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01158/1.055, allocations: 5.322 MB / 0.683 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.362e-05/1.055, allocations: 384 / 0.683 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003246/1.058, allocations: 1.706 MB / 0.6847 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004491/1.063, allocations: 0.5658 MB / 0.6853 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1019/1.164, allocations: 51.56 MB / 0.7356 GB, free: 1.27 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2251/1.39, allocations: 3.335 MB / 0.7389 GB, free: 197.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005944/1.396, allocations: 1.943 MB / 0.7408 GB, free: 197.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004105/1.4, allocations: 2.287 MB / 0.743 GB, free: 197.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.403e-06/1.4, allocations: 0 / 0.743 GB, free: 197.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1547/1.554, allocations: 84.89 MB / 0.8259 GB, free: 123 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.54/19.09, allocations: 10.98 kB / 0.8259 GB, free: 123 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.6586659620516]