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.00141/0.00141, allocations: 87.67 kB / 21.19 MB, free: 3.367 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.001938/0.001938, allocations: 156.5 kB / 24.55 MB, free: 12 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 0.9687/0.9687, allocations: 177 MB / 204.8 MB, free: 5.582 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: 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.523e-06/1.523e-06, allocations: 0 / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.892e-05/2.044e-05, allocations: 5.266 kB / 272.9 MB, free: 1.469 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003363/0.003384, allocations: 3.24 MB / 276.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001692/0.005076, allocations: 1.228 MB / 277.4 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000173/0.005249, allocations: 11.94 kB / 277.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002967/0.005546, allocations: 99.09 kB / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000364/0.005909, allocations: 234.2 kB / 277.7 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004994/0.006409, allocations: 283.5 kB / 278 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006321/0.007041, allocations: 0.8656 MB / 278.9 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002078/0.007249, allocations: 97.53 kB / 278.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005834/0.007832, allocations: 0.5146 MB / 279.5 MB, free: 10.87 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003709/0.008203, allocations: 343.2 kB / 279.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.069e-05/0.008284, allocations: 60 kB / 279.9 MB, free: 10.48 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001792/0.008463, allocations: 131.8 kB / 280 MB, free: 10.35 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000148/0.008611, allocations: 183.4 kB / 280.2 MB, free: 10.17 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001639/0.008775, allocations: 235.4 kB / 280.4 MB, free: 9.938 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005863/0.009361, allocations: 0.6229 MB / 281 MB, free: 9.312 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.009364, allocations: 0 / 281 MB, free: 9.312 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.009365, allocations: 0 / 281 MB, free: 9.312 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.236e-06/0.009374, allocations: 0 / 281 MB, free: 9.312 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.001111/0.01048, allocations: 0.9511 MB / 282 MB, free: 8.324 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.01053, allocations: 15.98 kB / 282 MB, free: 8.309 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002692/0.0108, allocations: 112.5 kB / 282.1 MB, free: 8.199 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003951/0.01119, allocations: 355.2 kB / 282.4 MB, free: 7.82 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.061e-05/0.01123, allocations: 41.38 kB / 282.5 MB, free: 7.781 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.861e-05/0.0113, allocations: 52.31 kB / 282.5 MB, free: 7.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006747/0.01198, allocations: 0.5079 MB / 283 MB, free: 7.203 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.012, allocations: 4.125 kB / 283 MB, free: 7.199 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.847e-05/0.01204, allocations: 20.12 kB / 283.1 MB, free: 7.18 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/0.01205, allocations: 15.94 kB / 283.1 MB, free: 7.164 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000537/0.01259, allocations: 365.6 kB / 283.4 MB, free: 6.812 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001314/0.0139, allocations: 1.113 MB / 284.5 MB, free: 5.652 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005834/0.01448, allocations: 370.6 kB / 284.9 MB, free: 5.273 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002402/0.01472, allocations: 189.5 kB / 285.1 MB, free: 5.086 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.154e-05/0.01476, allocations: 16.66 kB / 285.1 MB, free: 5.066 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.084e-05/0.01478, allocations: 42.05 kB / 285.2 MB, free: 5.016 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 1.823e-06/0.01479, allocations: 0 / 285.2 MB, free: 5.016 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.003051/0.01784, allocations: 1.977 MB / 287.1 MB, free: 2.988 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.925e-05/0.01787, allocations: 64 kB / 287.2 MB, free: 2.91 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002399/0.01811, allocations: 374.7 kB / 287.6 MB, free: 2.527 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.989e-05/0.01816, allocations: 53.69 kB / 287.6 MB, free: 2.469 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.01826, allocations: 248.3 kB / 287.9 MB, free: 2.223 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.0184, allocations: 269.8 kB / 288.1 MB, free: 1.957 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/0.01855, allocations: 132.3 kB / 288.2 MB, free: 1.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.01868, allocations: 0.5274 MB / 288.8 MB, free: 1.281 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002861/0.01896, allocations: 189.9 kB / 289 MB, free: 1.094 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003017/0.01926, allocations: 257.9 kB / 289.2 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004135/0.01968, allocations: 345.5 kB / 289.5 MB, free: 500 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.01968, allocations: 0 / 289.5 MB, free: 500 kB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.1101/0.1298, allocations: 0.6844 MB / 290.2 MB, free: 25.06 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.1299, allocations: 9.688 kB / 290.2 MB, free: 25.06 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.1299, allocations: 2.953 kB / 290.2 MB, free: 25.06 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008203/0.1307, allocations: 449.2 kB / 290.7 MB, free: 25.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002398/0.1309, allocations: 95 kB / 290.8 MB, free: 25.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008109/0.1317, allocations: 1.096 MB / 291.9 MB, free: 24.24 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003359/0.1321, allocations: 79.05 kB / 291.9 MB, free: 24.24 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.825e-05/0.1321, allocations: 26.64 kB / 292 MB, free: 24.24 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.0001629/0.1323, allocations: 202 kB / 292.2 MB, free: 24.08 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.1324, allocations: 80.55 kB / 292.3 MB, free: 24.08 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.179e-05/0.1325, allocations: 77.88 kB / 292.3 MB, free: 24.07 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.1325, allocations: 6.938 kB / 292.3 MB, free: 24.07 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.1325, allocations: 1.062 kB / 292.3 MB, free: 24.07 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.1325, allocations: 5.25 kB / 292.3 MB, free: 24.07 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001533/0.134, allocations: 1.211 MB / 293.6 MB, free: 23.76 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.134, allocations: 3.516 kB / 293.6 MB, free: 23.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002321/0.1342, allocations: 81.88 kB / 293.6 MB, free: 23.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006765/0.1349, allocations: 443.5 kB / 294.1 MB, free: 23.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.105e-05/0.135, allocations: 33.34 kB / 294.1 MB, free: 23.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007407/0.1357, allocations: 1.122 MB / 295.2 MB, free: 22.92 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1357, allocations: 3.188 kB / 295.2 MB, free: 22.92 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001316/0.137, allocations: 0.9913 MB / 296.2 MB, free: 22.69 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001751/0.1372, allocations: 120.2 kB / 296.3 MB, free: 22.69 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.536e-05/0.1373, allocations: 24.39 kB / 296.4 MB, free: 22.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002606/0.1375, allocations: 74.17 kB / 296.4 MB, free: 22.69 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002173/0.1378, allocations: 145.8 kB / 296.6 MB, free: 22.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.532e-05/0.1378, allocations: 33.36 kB / 296.6 MB, free: 22.68 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001584/0.138, allocations: 253.9 kB / 296.9 MB, free: 22.56 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.138, allocations: 0 / 296.9 MB, free: 22.56 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003652/0.1383, allocations: 163.5 kB / 297 MB, free: 22.56 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.0007452/0.1391, allocations: 367.5 kB / 297.4 MB, free: 22.44 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008693/0.1399, allocations: 0.5512 MB / 297.9 MB, free: 22.41 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1399, allocations: 0 / 297.9 MB, free: 22.41 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004601/0.1404, allocations: 347.6 kB / 298.3 MB, free: 22.35 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004773/0.1409, allocations: 171.1 kB / 298.4 MB, free: 22.3 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001589/0.1425, allocations: 1.199 MB / 299.6 MB, free: 21.58 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.348e-05/0.1425, allocations: 131.3 kB / 299.8 MB, free: 21.51 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001303/0.1427, allocations: 52.61 kB / 299.8 MB, free: 21.5 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001066/0.1428, allocations: 52.7 kB / 299.9 MB, free: 21.48 MB / 266.7 MB Notification: Performance of SimCode: time 6.32e-07/0.1428, allocations: 0 / 299.9 MB, free: 21.48 MB / 266.7 MB Notification: Performance of Templates: time 0.01237/0.1552, allocations: 12.73 MB / 312.6 MB, free: 12.86 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.994413134176284]