Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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.002182/0.002182, allocations: 99.53 kB / 20.97 MB, free: 3.453 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.002338/0.002338, allocations: 160.8 kB / 24.27 MB, free: 156 kB / 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 1.58/1.58, allocations: 177 MB / 204.5 MB, free: 5.617 MB / 186.7 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: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1500,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1500,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.706e-05/2.834e-05, allocations: 2.312 kB / 272.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005381/0.005409, allocations: 3.194 MB / 275.4 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00267/0.00808, allocations: 1.224 MB / 276.6 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001872/0.008267, allocations: 11.88 kB / 276.6 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003778/0.008645, allocations: 95.09 kB / 276.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005313/0.009176, allocations: 234.2 kB / 276.9 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005909/0.009767, allocations: 283.4 kB / 277.2 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001006/0.01077, allocations: 0.8695 MB / 278.1 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002074/0.01098, allocations: 93.55 kB / 278.2 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007865/0.01177, allocations: 0.5185 MB / 278.7 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005283/0.0123, allocations: 343.2 kB / 279 MB, free: 10.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001372/0.01243, allocations: 64 kB / 279.1 MB, free: 10.87 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002635/0.0127, allocations: 123.9 kB / 279.2 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002508/0.01295, allocations: 179.4 kB / 279.4 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003116/0.01326, allocations: 235.4 kB / 279.6 MB, free: 10.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001137/0.01439, allocations: 0.8644 MB / 280.5 MB, free: 9.477 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.0144, allocations: 0 / 280.5 MB, free: 9.477 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.0144, allocations: 0 / 280.5 MB, free: 9.477 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.01441, allocations: 0 / 280.5 MB, free: 9.477 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.002007/0.01642, allocations: 0.9781 MB / 281.5 MB, free: 8.461 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.01646, allocations: 11.98 kB / 281.5 MB, free: 8.449 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004051/0.01687, allocations: 124.5 kB / 281.6 MB, free: 8.328 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006786/0.01755, allocations: 338.5 kB / 281.9 MB, free: 7.969 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.926e-05/0.01759, allocations: 37.31 kB / 282 MB, free: 7.934 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.01771, allocations: 52.33 kB / 282 MB, free: 7.883 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001248/0.01896, allocations: 0.6134 MB / 282.6 MB, free: 7.25 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.539e-05/0.01898, allocations: 4.188 kB / 282.6 MB, free: 7.246 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.261e-05/0.01904, allocations: 20.12 kB / 282.7 MB, free: 7.227 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.909e-05/0.01906, allocations: 20 kB / 282.7 MB, free: 7.207 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001314/0.02038, allocations: 0.5464 MB / 283.2 MB, free: 6.664 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002798/0.02317, allocations: 1.254 MB / 284.5 MB, free: 5.363 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.0243, allocations: 458.7 kB / 284.9 MB, free: 4.898 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000602/0.02491, allocations: 269.5 kB / 285.2 MB, free: 4.633 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.549e-05/0.02498, allocations: 12.66 kB / 285.2 MB, free: 4.617 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.852e-05/0.02504, allocations: 49.98 kB / 285.3 MB, free: 4.559 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 3.106e-06/0.02504, allocations: 0 / 285.3 MB, free: 4.559 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006754/0.0318, allocations: 2.399 MB / 287.7 MB, free: 2.109 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.524e-05/0.03186, allocations: 67.94 kB / 287.7 MB, free: 2.027 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005717/0.03243, allocations: 434.7 kB / 288.1 MB, free: 1.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.496e-05/0.03252, allocations: 49.7 kB / 288.2 MB, free: 1.535 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002274/0.03275, allocations: 252.3 kB / 288.4 MB, free: 1.285 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002975/0.03304, allocations: 273.9 kB / 288.7 MB, free: 1.016 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003064/0.03335, allocations: 160.3 kB / 288.9 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003681/0.03372, allocations: 0.5508 MB / 289.4 MB, free: 296 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006766/0.0344, allocations: 285.9 kB / 289.7 MB, free: 8 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.116/0.1504, allocations: 376.9 kB / 290.1 MB, free: 27.78 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009051/0.1513, allocations: 0.4903 MB / 290.5 MB, free: 27.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.1513, allocations: 0 / 290.5 MB, free: 27.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001902/0.1532, allocations: 0.9385 MB / 291.5 MB, free: 27.67 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.1532, allocations: 5.844 kB / 291.5 MB, free: 27.67 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.1532, allocations: 1.438 kB / 291.5 MB, free: 27.67 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001314/0.1546, allocations: 0.5468 MB / 292 MB, free: 27.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003365/0.1549, allocations: 96.5 kB / 292.1 MB, free: 27.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001367/0.1563, allocations: 1.326 MB / 293.5 MB, free: 26.58 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005896/0.1568, allocations: 87.42 kB / 293.5 MB, free: 26.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.039e-05/0.1569, allocations: 22.33 kB / 293.6 MB, free: 26.57 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch3.mode,$PRE.clutch3.mode,clutch3.locked,clutch3.startBackward,$PRE.clutch3.startBackward,clutch3.startForward,$PRE.clutch3.startForward,clutch3.free,clutch2.mode,$PRE.clutch2.mode,clutch2.locked,clutch2.startBackward,$PRE.clutch2.startBackward,clutch2.startForward,$PRE.clutch2.startForward,clutch2.free,clutch1.mode,$PRE.clutch1.mode,clutch1.locked,clutch1.startBackward,$PRE.clutch1.startBackward,clutch1.startForward,$PRE.clutch1.startForward,clutch1.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0002507/0.1572, allocations: 229.2 kB / 293.8 MB, free: 26.37 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001555/0.1573, allocations: 79.33 kB / 293.9 MB, free: 26.36 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001775/0.1575, allocations: 75.62 kB / 293.9 MB, free: 26.3 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.1575, allocations: 7.969 kB / 294 MB, free: 26.3 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.1575, allocations: 3.812 kB / 294 MB, free: 26.3 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.1575, allocations: 7.641 kB / 294 MB, free: 26.29 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002601/0.1601, allocations: 1.477 MB / 295.4 MB, free: 25.6 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.1601, allocations: 2.141 kB / 295.4 MB, free: 25.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003796/0.1605, allocations: 87.42 kB / 295.5 MB, free: 25.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00115/0.1616, allocations: 0.5114 MB / 296 MB, free: 25.45 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.36e-05/0.1617, allocations: 29.17 kB / 296.1 MB, free: 25.44 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001297/0.163, allocations: 1.293 MB / 297.4 MB, free: 24.46 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.163, allocations: 2 kB / 297.4 MB, free: 24.46 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00237/0.1654, allocations: 1.311 MB / 298.7 MB, free: 23.92 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002902/0.1657, allocations: 125.7 kB / 298.8 MB, free: 23.87 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001104/0.1658, allocations: 29.91 kB / 298.8 MB, free: 23.85 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005183/0.1663, allocations: 69.12 kB / 298.9 MB, free: 23.84 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003088/0.1666, allocations: 153.3 kB / 299 MB, free: 23.8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.142e-05/0.1667, allocations: 27.3 kB / 299.1 MB, free: 23.8 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002659/0.1669, allocations: 292.8 kB / 299.4 MB, free: 23.62 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1669, allocations: 0 / 299.4 MB, free: 23.62 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005222/0.1675, allocations: 161.1 kB / 299.5 MB, free: 23.61 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002373/0.1698, allocations: 428.2 kB / 299.9 MB, free: 23.46 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001509/0.1713, allocations: 0.7337 MB / 300.7 MB, free: 23.27 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.1713, allocations: 3.938 kB / 300.7 MB, free: 23.27 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008053/0.1721, allocations: 436 kB / 301.1 MB, free: 23.13 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007265/0.1729, allocations: 161.2 kB / 301.3 MB, free: 23.09 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001945/0.1748, allocations: 1.257 MB / 302.5 MB, free: 22.32 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002128/0.175, allocations: 258.5 kB / 302.8 MB, free: 22.22 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001693/0.1752, allocations: 47.55 kB / 302.8 MB, free: 22.21 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001437/0.1753, allocations: 50.5 kB / 302.9 MB, free: 22.2 MB / 266.7 MB Notification: Performance of SimCode: time 8.01e-07/0.1753, allocations: 3.5 kB / 302.9 MB, free: 22.2 MB / 266.7 MB Notification: Performance of Templates: time 0.01462/0.19, allocations: 11.83 MB / 314.7 MB, free: 11.62 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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: 5.018169941031374]