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.001137/0.001137, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001426/0.001426, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8879/0.8879, allocations: 177 MB / 204.1 MB, free: 5.789 MB / 186.7 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.578e-05/2.749e-05, allocations: 4.953 kB / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01054/0.01056, allocations: 13.76 MB / 338.3 MB, free: 2.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00892/0.01948, allocations: 4.952 MB / 343.2 MB, free: 13.12 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004468/0.02395, allocations: 135.2 kB / 343.4 MB, free: 12.98 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005757/0.02971, allocations: 4.54 MB / 347.9 MB, free: 8.43 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005575/0.03528, allocations: 2.662 MB / 350.6 MB, free: 5.758 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001952/0.03724, allocations: 1.271 MB / 351.8 MB, free: 4.484 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00896/0.0462, allocations: 9.213 MB / 361.1 MB, free: 11.25 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00531/0.0515, allocations: 5.046 MB / 366.1 MB, free: 6.129 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0054/0.05691, allocations: 3.804 MB / 369.9 MB, free: 2.316 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004141/0.06105, allocations: 3.745 MB / 373.7 MB, free: 14.56 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00101/0.06206, allocations: 0.5195 MB / 374.2 MB, free: 14.04 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002325/0.06438, allocations: 1.467 MB / 375.6 MB, free: 12.57 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002271/0.06665, allocations: 3.195 MB / 378.8 MB, free: 9.371 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002238/0.06889, allocations: 2.068 MB / 380.9 MB, free: 7.297 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009806/0.0787, allocations: 10.72 MB / 391.6 MB, free: 12.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.0787, allocations: 0 / 391.6 MB, free: 12.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.07871, allocations: 0 / 391.6 MB, free: 12.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003604/0.07907, allocations: 4 kB / 391.6 MB, free: 12.54 MB / 362.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.01697/0.09604, allocations: 8.164 MB / 399.8 MB, free: 4.301 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/0.09609, allocations: 11.98 kB / 399.8 MB, free: 4.289 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00175/0.09784, allocations: 1.09 MB / 400.9 MB, free: 3.188 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02726/0.1251, allocations: 9.164 MB / 410 MB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009932/0.135, allocations: 4.967 MB / 415 MB, free: 4.953 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002379/0.1353, allocations: 333.1 kB / 415.3 MB, free: 4.625 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001627/0.1369, allocations: 468 kB / 415.8 MB, free: 4.168 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0203/0.1572, allocations: 14.55 MB / 430.4 MB, free: 4.664 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002316/0.1574, allocations: 75.42 kB / 430.4 MB, free: 4.59 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007756/0.1582, allocations: 219.8 kB / 430.6 MB, free: 4.375 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003316/0.1615, allocations: 2.832 MB / 433.5 MB, free: 1.531 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01906/0.1806, allocations: 12.96 MB / 446.4 MB, free: 4.543 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2128/0.3934, allocations: 55.62 MB / 0.4903 GB, free: 65.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009765/0.4032, allocations: 7.055 MB / 0.4972 GB, free: 58.49 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003525/0.4067, allocations: 4.556 MB / 0.5016 GB, free: 53.93 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0125/0.4192, allocations: 11.84 MB / 0.5132 GB, free: 42.28 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.892e-05/0.4192, allocations: 76.62 kB / 0.5133 GB, free: 42.19 MB / 410.7 MB Notification: Performance of pre-optimization done (n=326): time 7.514e-06/0.4192, allocations: 0 / 0.5133 GB, free: 42.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=572): time 1.144/1.563, allocations: 413.7 MB / 0.9172 GB, free: 48.54 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.827e-05/1.563, allocations: 265.6 kB / 0.9175 GB, free: 48.22 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00538/1.568, allocations: 6.264 MB / 0.9236 GB, free: 42.15 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001424/1.57, allocations: 109.7 kB / 0.9237 GB, free: 42.04 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001335/1.571, allocations: 4.125 MB / 0.9277 GB, free: 38.3 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002153/1.573, allocations: 2.057 MB / 0.9297 GB, free: 36.27 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002678/1.576, allocations: 2.064 MB / 0.9318 GB, free: 34.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 2.328e-05/1.576, allocations: 305.1 kB / 0.9321 GB, free: 33.89 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008781/1.585, allocations: 10.88 MB / 0.9427 GB, free: 23.01 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1835/1.768, allocations: 15.06 MB / 0.9574 GB, free: 146.8 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02413/1.792, allocations: 27.13 MB / 0.9839 GB, free: 132.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002107/1.792, allocations: 37.44 kB / 0.9839 GB, free: 132.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.1844/1.977, allocations: 140.2 MB / 1.121 GB, free: 5.184 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.145e-05/1.977, allocations: 64 kB / 1.121 GB, free: 5.121 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000129/1.977, allocations: 136 kB / 1.121 GB, free: 4.988 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2067/2.184, allocations: 34.57 MB / 1.155 GB, free: 148.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002956/2.187, allocations: 1.481 MB / 1.156 GB, free: 148.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3327/2.519, allocations: 200.8 MB / 1.352 GB, free: 124.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009857/2.529, allocations: 1.794 MB / 1.354 GB, free: 123.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002088/2.531, allocations: 0.5294 MB / 1.355 GB, free: 123.5 MB / 490.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.005041/2.536, allocations: 3.08 MB / 1.358 GB, free: 120.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001501/2.538, allocations: 0.6154 MB / 1.358 GB, free: 120.7 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3229/2.861, allocations: 136.2 MB / 1.491 GB, free: 143.8 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.928e-05/2.861, allocations: 61.08 kB / 1.491 GB, free: 143.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001255/2.861, allocations: 57.38 kB / 1.491 GB, free: 143.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.376e-05/2.861, allocations: 33.56 kB / 1.491 GB, free: 143.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3696/3.231, allocations: 203 MB / 1.69 GB, free: 134.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.019e-05/3.231, allocations: 5.344 kB / 1.69 GB, free: 134.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/3.232, allocations: 330.4 kB / 1.69 GB, free: 134.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04032/3.272, allocations: 33.27 MB / 1.722 GB, free: 111.2 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001513/3.274, allocations: 96 kB / 1.722 GB, free: 111.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3092/3.583, allocations: 183.6 MB / 1.902 GB, free: 105.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/3.583, allocations: 14.66 kB / 1.902 GB, free: 105.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3477/3.93, allocations: 152 MB / 2.05 GB, free: 130.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001878/3.932, allocations: 0.6659 MB / 2.051 GB, free: 130 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001994/3.934, allocations: 98.34 kB / 2.051 GB, free: 130 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005337/3.94, allocations: 1.564 MB / 2.052 GB, free: 129.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002544/3.942, allocations: 0.5226 MB / 2.053 GB, free: 129 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004693/3.943, allocations: 143.2 kB / 2.053 GB, free: 128.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003809/3.947, allocations: 3.93 MB / 2.057 GB, free: 125.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 8e-08/3.947, allocations: 4 kB / 2.057 GB, free: 125.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01051/3.957, allocations: 4.051 MB / 2.061 GB, free: 121.7 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.3791/4.336, allocations: 152.5 MB / 2.21 GB, free: 137 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03522/4.371, allocations: 32.59 MB / 2.242 GB, free: 118.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/4.371, allocations: 3.812 kB / 2.242 GB, free: 118.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02214/4.393, allocations: 19.55 MB / 2.261 GB, free: 98.69 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005832/4.399, allocations: 0.8331 MB / 2.262 GB, free: 97.89 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7695/5.169, allocations: 354.8 MB / 2.608 GB, free: 104.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007583/5.176, allocations: 4.61 MB / 2.613 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003934/5.18, allocations: 2.081 MB / 2.615 GB, free: 98.45 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003656/5.184, allocations: 3.045 MB / 2.618 GB, free: 97.93 MB / 0.4948 GB Notification: Performance of SimCode: time 2.885e-06/5.184, allocations: 0 / 2.618 GB, free: 97.93 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6285/5.812, allocations: 347.7 MB / 2.957 GB, free: 108.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.67/21.48, allocations: 6.266 kB / 2.957 GB, free: 108.3 MB / 0.4948 GB " [Timeout remaining time 638] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins/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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 24.277290215715766]