Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.001325/0.001325, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.001424/0.001424, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.413/1.413, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002031/0.002031, allocations: 52.39 kB / 347.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2868, allocations: 49.16 MB / 396.4 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01555/0.3023, allocations: 16.11 MB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01451/0.3168, allocations: 5.195 MB / 417.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004491/0.3213, allocations: 132.1 kB / 417.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0104/0.3317, allocations: 4.525 MB / 422.3 MB, free: 7.121 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009478/0.3412, allocations: 2.631 MB / 424.9 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003726/0.3449, allocations: 1.161 MB / 426.1 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01356/0.3585, allocations: 7.516 MB / 433.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008394/0.3669, allocations: 4.311 MB / 437.9 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006095/0.373, allocations: 2.535 MB / 440.5 MB, free: 7.176 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006578/0.3795, allocations: 3.649 MB / 444.1 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002102/0.3816, allocations: 0.5039 MB / 444.6 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004431/0.3861, allocations: 1.529 MB / 446.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004586/0.3907, allocations: 3.081 MB / 449.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007158/0.3978, allocations: 3.465 MB / 452.7 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01669/0.4145, allocations: 10.65 MB / 463.3 MB, free: 224 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.4145, allocations: 0 / 463.3 MB, free: 224 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4145, allocations: 4 kB / 463.3 MB, free: 220 kB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004354/0.415, allocations: 0 / 463.3 MB, free: 220 kB / 366.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.02391/0.4389, allocations: 8.054 MB / 471.4 MB, free: 8.078 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/0.4389, allocations: 11.98 kB / 471.4 MB, free: 8.066 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003337/0.4423, allocations: 1.074 MB / 472.5 MB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0543/0.4966, allocations: 8.449 MB / 480.9 MB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01513/0.5117, allocations: 6.267 MB / 487.2 MB, free: 8.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004293/0.5121, allocations: 344.8 kB / 487.5 MB, free: 7.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002053/0.5142, allocations: 471.7 kB / 488 MB, free: 7.359 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03304/0.5472, allocations: 14.46 MB / 0.4907 GB, free: 7.969 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000392/0.5476, allocations: 75.41 kB / 0.4908 GB, free: 7.895 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001707/0.5493, allocations: 219.8 kB / 0.491 GB, free: 7.68 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006058/0.5554, allocations: 2.828 MB / 0.4937 GB, free: 4.848 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02977/0.5851, allocations: 13.02 MB / 0.5064 GB, free: 7.801 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3029/0.8881, allocations: 58.06 MB / 0.5631 GB, free: 131.8 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01784/0.9059, allocations: 6.883 MB / 0.5699 GB, free: 131.7 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006416/0.9123, allocations: 4.561 MB / 0.5743 GB, free: 130.9 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02068/0.933, allocations: 12.3 MB / 0.5863 GB, free: 126.1 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.003e-05/0.933, allocations: 69.2 kB / 0.5864 GB, free: 126.1 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 7.344e-06/0.933, allocations: 2.953 kB / 0.5864 GB, free: 126.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 1.922/2.855, allocations: 411.2 MB / 0.988 GB, free: 137.2 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.979e-05/2.855, allocations: 261.7 kB / 0.9882 GB, free: 136.9 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006487/2.861, allocations: 5.569 MB / 0.9937 GB, free: 131.6 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001672/2.863, allocations: 113.4 kB / 0.9938 GB, free: 131.4 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002026/2.865, allocations: 4.162 MB / 0.9978 GB, free: 128.6 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002337/2.867, allocations: 2.098 MB / 0.9999 GB, free: 126.5 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003637/2.871, allocations: 2.084 MB / 1.002 GB, free: 124.4 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.944e-05/2.871, allocations: 301.1 kB / 1.002 GB, free: 124.1 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01185/2.883, allocations: 10.88 MB / 1.013 GB, free: 113.2 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01394/2.897, allocations: 14.99 MB / 1.027 GB, free: 96.41 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02624/2.923, allocations: 27.11 MB / 1.054 GB, free: 67.46 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000113/2.923, allocations: 43.94 kB / 1.054 GB, free: 67.42 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5112/3.434, allocations: 140.1 MB / 1.191 GB, free: 112.7 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.893e-05/3.434, allocations: 61.88 kB / 1.191 GB, free: 112.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001218/3.434, allocations: 143.4 kB / 1.191 GB, free: 112.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07359/3.508, allocations: 34.57 MB / 1.225 GB, free: 78.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004399/3.512, allocations: 1.479 MB / 1.226 GB, free: 76.99 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4921/4.004, allocations: 202.8 MB / 1.424 GB, free: 83.48 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01433/4.019, allocations: 1.709 MB / 1.426 GB, free: 81.95 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002913/4.022, allocations: 0.5232 MB / 1.426 GB, free: 81.43 MB / 0.5137 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.007779/4.03, allocations: 3.095 MB / 1.429 GB, free: 78.55 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002174/4.032, allocations: 0.6145 MB / 1.43 GB, free: 78.28 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5258/4.557, allocations: 136.1 MB / 1.563 GB, free: 131.4 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001114/4.558, allocations: 57.16 kB / 1.563 GB, free: 131.4 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.00019/4.558, allocations: 60.09 kB / 1.563 GB, free: 131.4 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001446/4.558, allocations: 27.89 kB / 1.563 GB, free: 131.4 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5794/5.137, allocations: 205.6 MB / 1.764 GB, free: 144.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.262e-05/5.137, allocations: 3.812 kB / 1.764 GB, free: 144.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001475/5.139, allocations: 333.3 kB / 1.764 GB, free: 144.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06754/5.206, allocations: 33.27 MB / 1.797 GB, free: 121.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002031/5.208, allocations: 111.9 kB / 1.797 GB, free: 121.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4676/5.676, allocations: 185.4 MB / 1.978 GB, free: 128.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.744e-06/5.676, allocations: 11.84 kB / 1.978 GB, free: 128.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5523/6.228, allocations: 151.9 MB / 2.126 GB, free: 149 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009396/6.238, allocations: 2.96 MB / 2.129 GB, free: 149 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002782/6.241, allocations: 93.56 kB / 2.129 GB, free: 149 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009126/6.25, allocations: 1.485 MB / 2.131 GB, free: 149 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003542/6.253, allocations: 0.5223 MB / 2.131 GB, free: 149 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007679/6.254, allocations: 140 kB / 2.131 GB, free: 149 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005236/6.259, allocations: 3.562 MB / 2.135 GB, free: 148.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/6.259, allocations: 1.312 kB / 2.135 GB, free: 148.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01542/6.275, allocations: 3.8 MB / 2.138 GB, free: 148.7 MB / 0.5294 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.5587/6.833, allocations: 152.4 MB / 2.287 GB, free: 155.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.06025/6.894, allocations: 32.6 MB / 2.319 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-05/6.894, allocations: 3.219 kB / 2.319 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.03653/6.93, allocations: 19.55 MB / 2.338 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007664/6.938, allocations: 0.8313 MB / 2.339 GB, free: 145.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.155/8.093, allocations: 353.1 MB / 2.684 GB, free: 143.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006713/8.1, allocations: 5.115 MB / 2.689 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004183/8.104, allocations: 2.067 MB / 2.691 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003282/8.107, allocations: 3.035 MB / 2.694 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of SimCode: time 1.282e-06/8.107, allocations: 0 / 2.694 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6561/8.763, allocations: 345.3 MB / 3.031 GB, free: 31.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 32.95/41.71, allocations: 3.906 kB / 3.031 GB, free: 31.59 MB / 0.5294 GB " [Timeout remaining time 618] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 45.675582013092935]