Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008009/0.0008009, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007816/0.0007816, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8872/0.8872, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_0_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_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.174e-06/2.174e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.763e-05/1.981e-05, allocations: 2.281 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01138/0.0114, allocations: 11.78 MB / 330.2 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008427/0.01983, allocations: 4.647 MB / 334.9 MB, free: 5.855 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001953/0.02178, allocations: 103.5 kB / 335 MB, free: 5.754 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004305/0.02609, allocations: 4.295 MB / 339.3 MB, free: 1.445 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003656/0.02974, allocations: 2.278 MB / 341.5 MB, free: 15.15 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001609/0.03135, allocations: 1.212 MB / 342.7 MB, free: 13.94 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004911/0.03626, allocations: 6.645 MB / 349.4 MB, free: 7.285 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003441/0.03971, allocations: 4.583 MB / 354 MB, free: 2.633 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002721/0.04243, allocations: 3.294 MB / 357.3 MB, free: 15.33 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002548/0.04497, allocations: 3.106 MB / 360.4 MB, free: 12.21 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005829/0.04556, allocations: 0.5039 MB / 360.9 MB, free: 11.71 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001605/0.04716, allocations: 1.584 MB / 362.5 MB, free: 10.13 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001466/0.04863, allocations: 2.798 MB / 365.3 MB, free: 7.324 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001425/0.05005, allocations: 1.819 MB / 367.1 MB, free: 5.5 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006433/0.05649, allocations: 9.896 MB / 377 MB, free: 11.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.05649, allocations: 0 / 377 MB, free: 11.57 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.05649, allocations: 0 / 377 MB, free: 11.57 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001492/0.05664, allocations: 0 / 377 MB, free: 11.57 MB / 346.7 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.008453/0.06509, allocations: 6.362 MB / 383.3 MB, free: 5.145 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/0.06515, allocations: 12.92 kB / 383.4 MB, free: 5.133 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009039/0.06605, allocations: 0.9364 MB / 384.3 MB, free: 4.184 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01861/0.08466, allocations: 6.508 MB / 390.8 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005686/0.09035, allocations: 3.851 MB / 394.6 MB, free: 9.762 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001577/0.09051, allocations: 308.3 kB / 394.9 MB, free: 9.457 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006098/0.09112, allocations: 444.2 kB / 395.4 MB, free: 9.023 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01355/0.1047, allocations: 12.4 MB / 407.8 MB, free: 11.86 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001158/0.1048, allocations: 47.64 kB / 407.8 MB, free: 11.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003587/0.1051, allocations: 191.9 kB / 408 MB, free: 11.63 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001793/0.1069, allocations: 2.039 MB / 410.1 MB, free: 9.582 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01256/0.1195, allocations: 10.33 MB / 420.4 MB, free: 15.24 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1899/0.3093, allocations: 42.04 MB / 462.4 MB, free: 90.72 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00653/0.3159, allocations: 4.362 MB / 466.8 MB, free: 90.62 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001395/0.3173, allocations: 1.837 MB / 468.6 MB, free: 89.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005641/0.3229, allocations: 5.881 MB / 474.5 MB, free: 87.54 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.3229, allocations: 53.78 kB / 474.6 MB, free: 87.49 MB / 410.7 MB Notification: Performance of pre-optimization done (n=179): time 3.767e-06/0.3229, allocations: 0 / 474.6 MB, free: 87.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=223): time 0.03343/0.3564, allocations: 20.12 MB / 494.7 MB, free: 69.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.13e-05/0.3564, allocations: 205.9 kB / 494.9 MB, free: 69.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003773/0.3602, allocations: 5.071 MB / 499.9 MB, free: 64.35 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.679e-05/0.3603, allocations: 57.7 kB / 0.4883 GB, free: 64.29 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001017/0.3613, allocations: 3.679 MB / 0.4919 GB, free: 60.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000386/0.3617, allocations: 0.8556 MB / 0.4927 GB, free: 59.96 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008847/0.3626, allocations: 1.259 MB / 0.4939 GB, free: 58.69 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.712e-05/0.3626, allocations: 312.5 kB / 0.4942 GB, free: 58.39 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001794/0.3644, allocations: 2.222 MB / 0.4964 GB, free: 56.16 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002537/0.367, allocations: 6.025 MB / 0.5023 GB, free: 48.32 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005131/0.3721, allocations: 8.913 MB / 0.511 GB, free: 37.68 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-05/0.3721, allocations: 40 kB / 0.511 GB, free: 37.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.008639/0.3808, allocations: 9.053 MB / 0.5199 GB, free: 28.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.988e-05/0.3808, allocations: 64 kB / 0.5199 GB, free: 28.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-05/0.3809, allocations: 132 kB / 0.5201 GB, free: 28.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001874/0.3828, allocations: 1.207 MB / 0.5212 GB, free: 27.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002011/0.3848, allocations: 1.408 MB / 0.5226 GB, free: 25.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00596/0.3907, allocations: 7.854 MB / 0.5303 GB, free: 17.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002733/0.3935, allocations: 395.5 kB / 0.5307 GB, free: 17.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002464/0.3937, allocations: 376 kB / 0.531 GB, free: 17.06 MB / 410.7 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.002174/0.3959, allocations: 2.48 MB / 0.5334 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000354/0.3962, allocations: 429.1 kB / 0.5339 GB, free: 14.15 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003995/0.4002, allocations: 3.865 MB / 0.5376 GB, free: 10.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.717e-05/0.4002, allocations: 24 kB / 0.5376 GB, free: 10.24 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.4003, allocations: 7.938 kB / 0.5377 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.4003, allocations: 11.97 kB / 0.5377 GB, free: 10.22 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009968/0.4102, allocations: 9.652 MB / 0.5471 GB, free: 492 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.387e-06/0.4102, allocations: 11.94 kB / 0.5471 GB, free: 480 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007074/0.411, allocations: 319.5 kB / 0.5474 GB, free: 160 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001879/0.4128, allocations: 0.9879 MB / 0.5484 GB, free: 15.17 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001208/0.413, allocations: 43.98 kB / 0.5484 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006548/0.4195, allocations: 6.534 MB / 0.5548 GB, free: 8.477 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.4195, allocations: 11.94 kB / 0.5548 GB, free: 8.465 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007076/0.4266, allocations: 6.594 MB / 0.5612 GB, free: 1.785 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007049/0.4273, allocations: 453 kB / 0.5617 GB, free: 1.34 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002664/0.4276, allocations: 47.84 kB / 0.5617 GB, free: 1.297 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009626/0.4285, allocations: 159.8 kB / 0.5619 GB, free: 1.141 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002046/0.4287, allocations: 144.9 kB / 0.562 GB, free: 1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.626e-05/0.4288, allocations: 68 kB / 0.5621 GB, free: 0.9336 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002929/0.4317, allocations: 3.105 MB / 0.5651 GB, free: 13.83 MB / 442.7 MB Notification: Performance of sort global known variables: time 8e-08/0.4317, allocations: 0 / 0.5651 GB, free: 13.83 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003272/0.435, allocations: 1.308 MB / 0.5664 GB, free: 12.52 MB / 442.7 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.006864/0.4419, allocations: 7.35 MB / 0.5736 GB, free: 5.086 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005353/0.4472, allocations: 5.314 MB / 0.5788 GB, free: 15.79 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.4472, allocations: 0.875 kB / 0.5788 GB, free: 15.79 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001519/0.4488, allocations: 1.698 MB / 0.5804 GB, free: 14.07 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001723/0.4505, allocations: 0.5741 MB / 0.581 GB, free: 13.51 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.203/0.6535, allocations: 52.62 MB / 0.6324 GB, free: 174.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003182/0.6567, allocations: 3.352 MB / 0.6356 GB, free: 173.5 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002521/0.6592, allocations: 1.953 MB / 0.6375 GB, free: 173.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001505/0.6607, allocations: 2.298 MB / 0.6398 GB, free: 171.5 MB / 490.7 MB Notification: Performance of SimCode: time 1.012e-06/0.6607, allocations: 0 / 0.6398 GB, free: 171.5 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.076/0.7367, allocations: 87.34 MB / 0.7251 GB, free: 85.16 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/11.27, allocations: 7.094 kB / 0.7251 GB, free: 85.16 MB / 490.7 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv. Warning: Get data of variable j1.phi from file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv failed! Error: Could not read variable j1.w in file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv. Warning: Get data of variable j1.w from file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.150163020007312]