Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.0008278/0.0008278, 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.0008783/0.0008783, 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.9072/0.9072, allocations: 173.4 MB / 200.5 MB, free: 9.422 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.Fourbar1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.385e-06/2.385e-06, allocations: 0 / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.022e-05/2.26e-05, allocations: 2.281 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.009938/0.009961, allocations: 13.79 MB / 332.2 MB, free: 8.488 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007681/0.01764, allocations: 4.937 MB / 337.2 MB, free: 3.535 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00135/0.01899, allocations: 135.2 kB / 337.3 MB, free: 3.402 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003891/0.02288, allocations: 4.559 MB / 341.9 MB, free: 14.82 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003567/0.02645, allocations: 2.694 MB / 344.6 MB, free: 12.12 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001441/0.02789, allocations: 1.275 MB / 345.8 MB, free: 10.84 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006159/0.03405, allocations: 8.964 MB / 354.8 MB, free: 1.855 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00364/0.03769, allocations: 5.058 MB / 359.9 MB, free: 12.71 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003318/0.04101, allocations: 3.812 MB / 363.7 MB, free: 8.895 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002725/0.04373, allocations: 3.757 MB / 367.4 MB, free: 5.129 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005387/0.04427, allocations: 0.5195 MB / 367.9 MB, free: 4.609 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001455/0.04573, allocations: 1.467 MB / 369.4 MB, free: 3.141 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001758/0.04749, allocations: 3.23 MB / 372.6 MB, free: 15.9 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001367/0.04885, allocations: 2.103 MB / 374.7 MB, free: 13.79 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006694/0.05555, allocations: 10.77 MB / 385.5 MB, free: 2.992 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.05555, allocations: 0 / 385.5 MB, free: 2.992 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.05555, allocations: 0 / 385.5 MB, free: 2.992 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000102/0.05566, allocations: 0 / 385.5 MB, free: 2.992 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.01016/0.06582, allocations: 8.129 MB / 393.6 MB, free: 10.79 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/0.06587, allocations: 12.92 kB / 393.6 MB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009922/0.06686, allocations: 1.086 MB / 394.7 MB, free: 9.676 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02628/0.09314, allocations: 9.051 MB / 403.8 MB, free: 0.6055 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008371/0.1015, allocations: 4.975 MB / 408.8 MB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001681/0.1017, allocations: 337.1 kB / 409.1 MB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006164/0.1023, allocations: 468 kB / 409.5 MB, free: 10.76 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0156/0.1179, allocations: 14.55 MB / 424.1 MB, free: 11.26 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001576/0.1181, allocations: 75.47 kB / 424.2 MB, free: 11.18 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003988/0.1185, allocations: 207.8 kB / 424.4 MB, free: 10.98 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003148/0.1216, allocations: 2.832 MB / 427.2 MB, free: 8.141 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02022/0.1418, allocations: 12.96 MB / 440.2 MB, free: 11.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2155/0.3573, allocations: 55.6 MB / 495.8 MB, free: 78.33 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009727/0.367, allocations: 7.07 MB / 0.4911 GB, free: 72 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003406/0.3704, allocations: 4.547 MB / 0.4955 GB, free: 67.44 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01227/0.3827, allocations: 11.84 MB / 0.5071 GB, free: 55.73 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.729e-05/0.3827, allocations: 68.17 kB / 0.5071 GB, free: 55.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=326): time 6.533e-06/0.3827, allocations: 0 / 0.5071 GB, free: 55.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=572): time 1.159/1.542, allocations: 413.5 MB / 0.9109 GB, free: 33.38 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.6e-05/1.542, allocations: 265.6 kB / 0.9112 GB, free: 33.07 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005347/1.547, allocations: 6.269 MB / 0.9173 GB, free: 26.84 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001372/1.548, allocations: 116.1 kB / 0.9174 GB, free: 26.72 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001248/1.55, allocations: 4.115 MB / 0.9214 GB, free: 22.62 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00192/1.552, allocations: 2.07 MB / 0.9235 GB, free: 20.59 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002638/1.554, allocations: 2.053 MB / 0.9255 GB, free: 18.52 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 2.618e-05/1.554, allocations: 305.1 kB / 0.9258 GB, free: 18.22 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009323/1.564, allocations: 10.88 MB / 0.9364 GB, free: 7.336 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1667/1.73, allocations: 15.07 MB / 0.9511 GB, free: 137 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02203/1.752, allocations: 27.12 MB / 0.9776 GB, free: 120.2 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001009/1.752, allocations: 40 kB / 0.9776 GB, free: 120.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.3699/2.122, allocations: 140.1 MB / 1.114 GB, free: 139.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.576e-05/2.122, allocations: 62.06 kB / 1.114 GB, free: 139.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001235/2.122, allocations: 140 kB / 1.115 GB, free: 139.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04597/2.168, allocations: 34.55 MB / 1.148 GB, free: 133.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003159/2.172, allocations: 1.479 MB / 1.15 GB, free: 133.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3419/2.513, allocations: 200.8 MB / 1.346 GB, free: 100.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009026/2.523, allocations: 1.796 MB / 1.348 GB, free: 99.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001921/2.524, allocations: 0.5179 MB / 1.348 GB, free: 99.31 MB / 474.7 MB 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.00519/2.53, allocations: 3.091 MB / 1.351 GB, free: 96.82 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001454/2.531, allocations: 0.6098 MB / 1.352 GB, free: 96.55 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3612/2.892, allocations: 136.1 MB / 1.485 GB, free: 128.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.401e-05/2.892, allocations: 58.84 kB / 1.485 GB, free: 128.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001699/2.893, allocations: 58.25 kB / 1.485 GB, free: 128.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000128/2.893, allocations: 26.56 kB / 1.485 GB, free: 128.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3921/3.285, allocations: 202.9 MB / 1.683 GB, free: 130 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.227e-05/3.285, allocations: 5.312 kB / 1.683 GB, free: 130 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009726/3.286, allocations: 327.4 kB / 1.683 GB, free: 129.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04414/3.33, allocations: 33.27 MB / 1.716 GB, free: 101 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001729/3.332, allocations: 104 kB / 1.716 GB, free: 100.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3328/3.664, allocations: 183.6 MB / 1.895 GB, free: 92.05 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/3.664, allocations: 8 kB / 1.895 GB, free: 92.05 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3683/4.033, allocations: 151.9 MB / 2.043 GB, free: 111.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00189/4.035, allocations: 0.6595 MB / 2.044 GB, free: 110.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002881/4.038, allocations: 105.1 kB / 2.044 GB, free: 110.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007369/4.045, allocations: 1.558 MB / 2.046 GB, free: 109.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004067/4.049, allocations: 0.5209 MB / 2.046 GB, free: 108.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001557/4.051, allocations: 144.3 kB / 2.046 GB, free: 108.7 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005015/4.056, allocations: 3.938 MB / 2.05 GB, free: 105.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.4e-07/4.056, allocations: 2.812 kB / 2.05 GB, free: 105.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01289/4.068, allocations: 4.08 MB / 2.054 GB, free: 102.2 MB / 490.7 MB 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.3657/4.434, allocations: 152.4 MB / 2.203 GB, free: 125.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03747/4.472, allocations: 32.58 MB / 2.235 GB, free: 94.52 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/4.472, allocations: 4.156 kB / 2.235 GB, free: 94.52 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02375/4.495, allocations: 19.53 MB / 2.254 GB, free: 75.11 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005591/4.501, allocations: 0.8289 MB / 2.255 GB, free: 74.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7608/5.262, allocations: 354.6 MB / 2.601 GB, free: 61.71 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004877/5.267, allocations: 4.612 MB / 2.606 GB, free: 57.88 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002979/5.27, allocations: 2.085 MB / 2.608 GB, free: 55.92 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002443/5.272, allocations: 3.048 MB / 2.611 GB, free: 55.4 MB / 490.7 MB Notification: Performance of SimCode: time 1.553e-06/5.272, allocations: 0 / 2.611 GB, free: 55.4 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6053/5.877, allocations: 348 MB / 2.95 GB, free: 51.21 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.52/21.4, allocations: 14.19 kB / 2.95 GB, free: 51.2 MB / 490.7 MB " [Timeout remaining time 638] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv. Warning: Get data of variable j1.phi from file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv failed! Error: Could not read variable j1.w in file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv. Warning: Get data of variable j1.w from file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.497948850505054]