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.001334/0.001334, allocations: 107.5 kB / 20.43 MB, free: 1.066 MB / 14.72 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.001448/0.001448, allocations: 187.5 kB / 23.7 MB, free: 4.188 MB / 14.72 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 1.405/1.405, allocations: 225.7 MB / 252.5 MB, free: 12.84 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001758/0.001758, allocations: 55.91 kB / 370.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2507, allocations: 52.18 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01807/0.2688, allocations: 13.79 MB / 436.4 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.011/0.2798, allocations: 4.93 MB / 441.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003094/0.2829, allocations: 139.2 kB / 441.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009283/0.2922, allocations: 4.326 MB / 445.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007746/0.2999, allocations: 2.622 MB / 448.4 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003046/0.303, allocations: 1.154 MB / 449.5 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01149/0.3144, allocations: 7.986 MB / 457.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0065/0.3209, allocations: 4.275 MB / 461.8 MB, free: 6.988 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005037/0.326, allocations: 2.504 MB / 464.3 MB, free: 4.477 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006035/0.332, allocations: 3.415 MB / 467.7 MB, free: 1.051 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001967/0.334, allocations: 0.5039 MB / 468.2 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00372/0.3377, allocations: 1.397 MB / 469.6 MB, free: 15.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004205/0.3419, allocations: 3.074 MB / 472.7 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005328/0.3472, allocations: 2.61 MB / 475.3 MB, free: 9.441 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0143/0.3615, allocations: 10.66 MB / 486 MB, free: 14.74 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.3615, allocations: 0 / 486 MB, free: 14.74 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.3615, allocations: 0 / 486 MB, free: 14.74 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000381/0.3619, allocations: 0 / 486 MB, free: 14.74 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02358/0.3855, allocations: 7.992 MB / 493.9 MB, free: 6.672 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.3856, allocations: 11.97 kB / 494 MB, free: 6.66 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003208/0.3888, allocations: 1.082 MB / 495 MB, free: 5.566 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05457/0.4433, allocations: 8.449 MB / 0.4917 GB, free: 13.1 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01375/0.4571, allocations: 5.779 MB / 0.4973 GB, free: 7.238 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003224/0.4574, allocations: 340.9 kB / 0.4977 GB, free: 6.902 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001469/0.4589, allocations: 471.7 kB / 0.4981 GB, free: 6.441 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.028/0.4869, allocations: 14.54 MB / 0.5123 GB, free: 6.949 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002745/0.4872, allocations: 71.47 kB / 0.5124 GB, free: 6.879 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007803/0.4879, allocations: 215.8 kB / 0.5126 GB, free: 6.668 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005615/0.4935, allocations: 2.832 MB / 0.5153 GB, free: 3.828 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02727/0.5208, allocations: 12.95 MB / 0.528 GB, free: 6.852 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2817/0.8025, allocations: 55.02 MB / 0.5817 GB, free: 63.56 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01459/0.8171, allocations: 6.878 MB / 0.5884 GB, free: 56.66 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004263/0.8214, allocations: 4.555 MB / 0.5929 GB, free: 52.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01433/0.8357, allocations: 11.43 MB / 0.6041 GB, free: 40.85 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.486e-05/0.8357, allocations: 72.58 kB / 0.6041 GB, free: 40.77 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.683e-06/0.8357, allocations: 0 / 0.6041 GB, free: 40.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.059/2.895, allocations: 411.1 MB / 1.006 GB, free: 132.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.6e-05/2.895, allocations: 272.7 kB / 1.006 GB, free: 132.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00645/2.901, allocations: 5.732 MB / 1.011 GB, free: 126.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001699/2.903, allocations: 117.7 kB / 1.012 GB, free: 126.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002213/2.905, allocations: 4.149 MB / 1.016 GB, free: 123.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002809/2.908, allocations: 2.102 MB / 1.018 GB, free: 121.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005258/2.913, allocations: 2.084 MB / 1.02 GB, free: 119.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.357e-05/2.913, allocations: 301.1 kB / 1.02 GB, free: 119 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01228/2.926, allocations: 10.88 MB / 1.031 GB, free: 108.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01378/2.939, allocations: 15.07 MB / 1.045 GB, free: 91.06 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0279/2.967, allocations: 27.11 MB / 1.072 GB, free: 62.14 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001042/2.967, allocations: 43.94 kB / 1.072 GB, free: 62.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5784/3.546, allocations: 140.1 MB / 1.209 GB, free: 116.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.633e-05/3.546, allocations: 68.09 kB / 1.209 GB, free: 116.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001412/3.546, allocations: 146.1 kB / 1.209 GB, free: 116.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0744/3.62, allocations: 34.54 MB / 1.243 GB, free: 82.02 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004489/3.625, allocations: 1.483 MB / 1.244 GB, free: 80.66 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4991/4.124, allocations: 200.7 MB / 1.44 GB, free: 98.07 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01234/4.136, allocations: 1.704 MB / 1.442 GB, free: 96.38 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002036/4.138, allocations: 0.5154 MB / 1.442 GB, free: 95.86 MB / 0.545 GB 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.00555/4.144, allocations: 3.099 MB / 1.445 GB, free: 92.98 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001689/4.146, allocations: 0.6108 MB / 1.446 GB, free: 92.63 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5023/4.648, allocations: 136.1 MB / 1.579 GB, free: 156 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-05/4.648, allocations: 56 kB / 1.579 GB, free: 155.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001267/4.648, allocations: 60.72 kB / 1.579 GB, free: 155.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001009/4.648, allocations: 27.89 kB / 1.579 GB, free: 155.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6096/5.258, allocations: 202.7 MB / 1.777 GB, free: 153.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.607e-05/5.258, allocations: 7.906 kB / 1.777 GB, free: 153.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001524/5.259, allocations: 324.7 kB / 1.777 GB, free: 153.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07155/5.331, allocations: 33.26 MB / 1.81 GB, free: 129.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002002/5.333, allocations: 96 kB / 1.81 GB, free: 129.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4775/5.81, allocations: 183.4 MB / 1.989 GB, free: 145.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.214e-06/5.81, allocations: 8 kB / 1.989 GB, free: 145.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5723/6.383, allocations: 151.9 MB / 2.137 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001646/6.384, allocations: 0.5773 MB / 2.138 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002398/6.387, allocations: 99.86 kB / 2.138 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008847/6.396, allocations: 1.485 MB / 2.139 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003022/6.399, allocations: 0.5135 MB / 2.14 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007556/6.399, allocations: 149.2 kB / 2.14 GB, free: 154.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004365/6.404, allocations: 3.515 MB / 2.143 GB, free: 154.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/6.404, allocations: 0 / 2.143 GB, free: 154.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01185/6.416, allocations: 3.81 MB / 2.147 GB, free: 154.4 MB / 0.545 GB 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.3242/6.74, allocations: 152.4 MB / 2.296 GB, free: 40.24 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.05426/6.794, allocations: 32.6 MB / 2.328 GB, free: 7.699 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.689e-05/6.794, allocations: 0 / 2.328 GB, free: 7.699 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.2915/7.086, allocations: 19.54 MB / 2.347 GB, free: 176.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008092/7.094, allocations: 0.8407 MB / 2.348 GB, free: 176.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9717/8.065, allocations: 352.8 MB / 2.692 GB, free: 38.79 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008015/8.073, allocations: 4.618 MB / 2.697 GB, free: 34.18 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004531/8.078, allocations: 2.064 MB / 2.699 GB, free: 32.24 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003675/8.082, allocations: 3.029 MB / 2.702 GB, free: 29.21 MB / 0.545 GB Notification: Performance of SimCode: time 1.693e-06/8.082, allocations: 7.812 kB / 2.702 GB, free: 29.21 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9327/9.014, allocations: 344.7 MB / 3.038 GB, free: 108.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.91/35.92, allocations: 6.375 kB / 3.038 GB, free: 108.4 MB / 0.5606 GB " [Timeout remaining time 624] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/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: 39.021783808246255]