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.001853/0.001853, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.002315/0.002315, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.548/1.548, allocations: 230.6 MB / 257.5 MB, free: 8.027 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.001663/0.001663, allocations: 51.92 kB / 377.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.3008, allocations: 53.36 MB / 431.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01756/0.3184, allocations: 13.53 MB / 444.7 MB, free: 9.281 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01172/0.3301, allocations: 4.939 MB / 449.6 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002969/0.3331, allocations: 103.5 kB / 449.7 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009215/0.3423, allocations: 4.244 MB / 454 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007123/0.3494, allocations: 2.179 MB / 456.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003372/0.3528, allocations: 1.107 MB / 457.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01064/0.3634, allocations: 6.066 MB / 463.3 MB, free: 6.598 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00724/0.3706, allocations: 4.062 MB / 467.4 MB, free: 2.469 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005153/0.3758, allocations: 2.181 MB / 469.6 MB, free: 288 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005989/0.3818, allocations: 3.085 MB / 472.6 MB, free: 13.19 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001759/0.3835, allocations: 0.5 MB / 473.1 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004178/0.3877, allocations: 1.666 MB / 474.8 MB, free: 11.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004119/0.3918, allocations: 2.653 MB / 477.5 MB, free: 8.359 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006012/0.3979, allocations: 2.949 MB / 480.4 MB, free: 5.395 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01543/0.4133, allocations: 9.66 MB / 490.1 MB, free: 11.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.518e-06/0.4133, allocations: 0 / 490.1 MB, free: 11.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.4133, allocations: 0 / 490.1 MB, free: 11.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003669/0.4137, allocations: 0 / 490.1 MB, free: 11.7 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.02003/0.4337, allocations: 6.276 MB / 496.3 MB, free: 5.355 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.819e-05/0.4337, allocations: 16.03 kB / 496.4 MB, free: 5.34 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002963/0.4367, allocations: 0.9286 MB / 497.3 MB, free: 4.398 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03781/0.4745, allocations: 6.051 MB / 0.4915 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01161/0.4861, allocations: 4.179 MB / 0.4956 GB, free: 10.09 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003578/0.4865, allocations: 308.1 kB / 0.4959 GB, free: 9.785 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001932/0.4884, allocations: 451.7 kB / 0.4963 GB, free: 9.344 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03018/0.5186, allocations: 12.32 MB / 0.5084 GB, free: 12.29 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002189/0.5188, allocations: 43.64 kB / 0.5084 GB, free: 12.24 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001229/0.5201, allocations: 199.8 kB / 0.5086 GB, free: 12.05 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003776/0.5238, allocations: 2.027 MB / 0.5106 GB, free: 10.02 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02506/0.5489, allocations: 10.37 MB / 0.5207 GB, free: 15.63 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2764/0.8253, allocations: 43.84 MB / 0.5635 GB, free: 68.62 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01212/0.8374, allocations: 4.208 MB / 0.5676 GB, free: 67.62 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002609/0.84, allocations: 1.838 MB / 0.5694 GB, free: 66.87 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01182/0.8518, allocations: 6.07 MB / 0.5754 GB, free: 63.59 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.382e-05/0.8519, allocations: 54.19 kB / 0.5754 GB, free: 63.54 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 4.9e-06/0.8519, allocations: 0 / 0.5754 GB, free: 63.54 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.05906/0.9109, allocations: 19.17 MB / 0.5941 GB, free: 47.64 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.622e-05/0.911, allocations: 201.9 kB / 0.5943 GB, free: 47.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005402/0.9164, allocations: 4.49 MB / 0.5987 GB, free: 42.97 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003847/0.9168, allocations: 65.64 kB / 0.5988 GB, free: 42.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00174/0.9185, allocations: 3.694 MB / 0.6024 GB, free: 39.49 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007767/0.9193, allocations: 0.8694 MB / 0.6032 GB, free: 38.63 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001525/0.9208, allocations: 1.278 MB / 0.6045 GB, free: 37.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.302e-05/0.9209, allocations: 309.1 kB / 0.6048 GB, free: 37.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002985/0.9239, allocations: 2.23 MB / 0.607 GB, free: 34.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004817/0.9287, allocations: 5.983 MB / 0.6128 GB, free: 26.96 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008285/0.937, allocations: 8.926 MB / 0.6215 GB, free: 16.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001039/0.9371, allocations: 36 kB / 0.6215 GB, free: 16.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01656/0.9536, allocations: 9.046 MB / 0.6304 GB, free: 7.105 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.162e-05/0.9537, allocations: 64 kB / 0.6304 GB, free: 7.043 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001489/0.9539, allocations: 135.8 kB / 0.6306 GB, free: 6.914 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003658/0.9575, allocations: 1.21 MB / 0.6318 GB, free: 5.699 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004519/0.962, allocations: 1.415 MB / 0.6331 GB, free: 4.281 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01162/0.9737, allocations: 7.9 MB / 0.6409 GB, free: 12.27 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004634/0.9783, allocations: 347.5 kB / 0.6412 GB, free: 11.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008649/0.9792, allocations: 379.3 kB / 0.6415 GB, free: 11.56 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.004501/0.9837, allocations: 2.486 MB / 0.644 GB, free: 9.066 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008717/0.9845, allocations: 421.2 kB / 0.6444 GB, free: 8.652 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008898/0.9934, allocations: 3.877 MB / 0.6482 GB, free: 4.762 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.751e-05/0.9935, allocations: 24 kB / 0.6482 GB, free: 4.738 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.62e-05/0.9935, allocations: 8 kB / 0.6482 GB, free: 4.73 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-05/0.9935, allocations: 11.91 kB / 0.6482 GB, free: 4.719 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02298/1.017, allocations: 9.909 MB / 0.6579 GB, free: 10.71 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.838e-05/1.017, allocations: 4.594 kB / 0.6579 GB, free: 10.71 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001717/1.018, allocations: 335.5 kB / 0.6582 GB, free: 10.38 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003689/1.022, allocations: 0.98 MB / 0.6592 GB, free: 9.398 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003254/1.022, allocations: 47.98 kB / 0.6592 GB, free: 9.352 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01107/1.033, allocations: 6.58 MB / 0.6656 GB, free: 2.66 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.066e-05/1.033, allocations: 11.94 kB / 0.6656 GB, free: 2.648 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01312/1.046, allocations: 6.632 MB / 0.6721 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001435/1.048, allocations: 393 kB / 0.6725 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001093/1.049, allocations: 39.98 kB / 0.6725 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002309/1.051, allocations: 111.8 kB / 0.6726 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005597/1.052, allocations: 153 kB / 0.6728 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002225/1.052, allocations: 67.98 kB / 0.6728 GB, free: 11.19 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006048/1.058, allocations: 2.824 MB / 0.6756 GB, free: 8.363 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.058, allocations: 0 / 0.6756 GB, free: 8.363 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007217/1.065, allocations: 1.152 MB / 0.6767 GB, free: 7.211 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.01644/1.082, allocations: 7.33 MB / 0.6839 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01063/1.092, allocations: 5.335 MB / 0.6891 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/1.092, allocations: 4 kB / 0.6891 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003149/1.096, allocations: 1.704 MB / 0.6908 GB, free: 8.758 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003727/1.099, allocations: 0.579 MB / 0.6913 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3039/1.403, allocations: 51.55 MB / 0.7417 GB, free: 196.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005413/1.409, allocations: 3.876 MB / 0.7455 GB, free: 196.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00415/1.413, allocations: 1.935 MB / 0.7473 GB, free: 196.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002763/1.416, allocations: 2.292 MB / 0.7496 GB, free: 195.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.292e-06/1.416, allocations: 0 / 0.7496 GB, free: 195.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1568/1.572, allocations: 89.5 MB / 0.837 GB, free: 115.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.66/31.23, allocations: 3.266 kB / 0.837 GB, free: 115.5 MB / 0.545 GB " [Timeout remaining time 629] (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: 34.11456856999939]