Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001891/0.001891, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001832/0.001832, allocations: 214.8 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 230.5 MB / 258.2 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001788/0.001788, allocations: 67.89 kB / 378.5 MB, free: 2.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2486, allocations: 53.4 MB / 431.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.0164/0.265, allocations: 13.67 MB / 445.6 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01082/0.2758, allocations: 4.926 MB / 450.5 MB, free: 3.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002596/0.2784, allocations: 143.2 kB / 450.7 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00925/0.2877, allocations: 4.299 MB / 455 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007747/0.2954, allocations: 2.583 MB / 457.5 MB, free: 12.76 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003111/0.2985, allocations: 1.154 MB / 458.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01274/0.3113, allocations: 8.127 MB / 466.8 MB, free: 3.461 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007613/0.3189, allocations: 4.279 MB / 471.1 MB, free: 15.1 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004915/0.3238, allocations: 2.508 MB / 473.6 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005975/0.3298, allocations: 3.618 MB / 477.2 MB, free: 8.957 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001574/0.3313, allocations: 0.5078 MB / 477.7 MB, free: 8.449 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003383/0.3347, allocations: 1.405 MB / 479.1 MB, free: 7.043 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003492/0.3382, allocations: 3.05 MB / 482.2 MB, free: 3.984 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004305/0.3425, allocations: 2.587 MB / 484.8 MB, free: 1.383 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01348/0.356, allocations: 10.61 MB / 495.4 MB, free: 6.734 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.356, allocations: 0 / 495.4 MB, free: 6.734 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.356, allocations: 0 / 495.4 MB, free: 6.734 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003755/0.3564, allocations: 0 / 495.4 MB, free: 6.734 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.02809/0.3845, allocations: 8.023 MB / 0.4916 GB, free: 14.63 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.605e-05/0.3845, allocations: 8.031 kB / 0.4916 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003538/0.3849, allocations: 171.6 kB / 0.4918 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004713/0.3896, allocations: 1.086 MB / 0.4928 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05366/0.4433, allocations: 8.558 MB / 0.5012 GB, free: 4.781 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01481/0.4581, allocations: 5.471 MB / 0.5065 GB, free: 15.23 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003707/0.4584, allocations: 340.7 kB / 0.5069 GB, free: 14.89 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002412/0.4608, allocations: 475.7 kB / 0.5073 GB, free: 14.43 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.033/0.4939, allocations: 14.55 MB / 0.5215 GB, free: 14.92 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003215/0.4942, allocations: 75.41 kB / 0.5216 GB, free: 14.85 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001027/0.4952, allocations: 215.8 kB / 0.5218 GB, free: 14.64 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006266/0.5015, allocations: 2.832 MB / 0.5246 GB, free: 11.8 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2666/0.7681, allocations: 13.01 MB / 0.5373 GB, free: 94.52 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05843/0.8265, allocations: 55.04 MB / 0.591 GB, free: 50.89 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01432/0.8408, allocations: 6.889 MB / 0.5978 GB, free: 43.98 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004137/0.845, allocations: 4.551 MB / 0.6022 GB, free: 39.43 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01365/0.8586, allocations: 11.43 MB / 0.6134 GB, free: 28.03 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.169e-05/0.8586, allocations: 69.67 kB / 0.6134 GB, free: 27.95 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.292e-06/0.8587, allocations: 0 / 0.6134 GB, free: 27.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.955/2.814, allocations: 411.3 MB / 1.015 GB, free: 117.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.006e-05/2.814, allocations: 269.5 kB / 1.015 GB, free: 117 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006176/2.82, allocations: 5.491 MB / 1.021 GB, free: 111.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001516/2.822, allocations: 117.6 kB / 1.021 GB, free: 111.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001976/2.823, allocations: 4.152 MB / 1.025 GB, free: 108.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002301/2.826, allocations: 2.103 MB / 1.027 GB, free: 106.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003819/2.83, allocations: 2.077 MB / 1.029 GB, free: 104.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.161e-05/2.83, allocations: 301.1 kB / 1.029 GB, free: 103.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01089/2.841, allocations: 10.88 MB / 1.04 GB, free: 92.92 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01297/2.853, allocations: 15.07 MB / 1.055 GB, free: 75.89 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0257/2.879, allocations: 27.12 MB / 1.081 GB, free: 46.96 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001283/2.879, allocations: 36 kB / 1.081 GB, free: 46.93 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5026/3.382, allocations: 140.2 MB / 1.218 GB, free: 121.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.297e-05/3.382, allocations: 64 kB / 1.218 GB, free: 121.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001481/3.382, allocations: 140 kB / 1.218 GB, free: 120.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07401/3.456, allocations: 34.56 MB / 1.252 GB, free: 86.54 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00435/3.461, allocations: 1.491 MB / 1.253 GB, free: 85.18 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4415/3.902, allocations: 200.7 MB / 1.449 GB, free: 89.77 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01196/3.914, allocations: 1.709 MB / 1.451 GB, free: 88.07 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002236/3.916, allocations: 0.5232 MB / 1.452 GB, free: 87.54 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.005969/3.922, allocations: 3.08 MB / 1.455 GB, free: 84.59 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001776/3.924, allocations: 0.6081 MB / 1.455 GB, free: 84.32 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.462/4.386, allocations: 136.2 MB / 1.588 GB, free: 150.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-05/4.386, allocations: 58.69 kB / 1.588 GB, free: 150.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001417/4.386, allocations: 60.48 kB / 1.588 GB, free: 150.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001064/4.386, allocations: 27.03 kB / 1.588 GB, free: 150.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5463/4.932, allocations: 202.7 MB / 1.786 GB, free: 166 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.916e-05/4.933, allocations: 11.47 kB / 1.786 GB, free: 166 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001447/4.934, allocations: 331.7 kB / 1.787 GB, free: 166 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06649/5, allocations: 33.27 MB / 1.819 GB, free: 151.4 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001529/5.002, allocations: 104 kB / 1.819 GB, free: 151.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4197/5.422, allocations: 183.5 MB / 1.998 GB, free: 164 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.039e-05/5.422, allocations: 12.75 kB / 1.998 GB, free: 164 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3141/5.736, allocations: 152 MB / 2.147 GB, free: 23.58 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001452/5.737, allocations: 0.5861 MB / 2.147 GB, free: 23 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002221/5.74, allocations: 102.2 kB / 2.148 GB, free: 22.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008561/5.748, allocations: 1.482 MB / 2.149 GB, free: 21.42 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004039/5.752, allocations: 0.5226 MB / 2.15 GB, free: 20.91 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001139/5.753, allocations: 140 kB / 2.15 GB, free: 20.77 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004797/5.758, allocations: 3.52 MB / 2.153 GB, free: 17.27 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/5.758, allocations: 0 / 2.153 GB, free: 17.27 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.2548/6.013, allocations: 3.781 MB / 2.157 GB, free: 175.4 MB / 0.5606 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.3008/6.314, allocations: 152.5 MB / 2.306 GB, free: 69.21 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.05187/6.366, allocations: 32.61 MB / 2.338 GB, free: 36.79 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.48e-05/6.366, allocations: 0 / 2.338 GB, free: 36.79 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.03498/6.401, allocations: 19.56 MB / 2.357 GB, free: 17.22 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006874/6.407, allocations: 0.8236 MB / 2.357 GB, free: 16.41 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.108/7.515, allocations: 352.9 MB / 2.702 GB, free: 78.37 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005924/7.521, allocations: 4.609 MB / 2.707 GB, free: 73.76 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004154/7.525, allocations: 2.068 MB / 2.709 GB, free: 71.82 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003301/7.529, allocations: 3.051 MB / 2.712 GB, free: 68.77 MB / 0.5606 GB Notification: Performance of SimCode: time 1.082e-06/7.529, allocations: 3.031 kB / 2.712 GB, free: 68.77 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7773/8.306, allocations: 343.2 MB / 3.047 GB, free: 130.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.21/38.51, allocations: 6.922 kB / 3.047 GB, free: 130.6 MB / 0.5606 GB " [Timeout remaining time 621] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 44.432128123007715]