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.0009728/0.0009728, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.0009988/0.0009988, allocations: 160.2 kB / 24.99 MB, free: 8.801 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 1.047/1.047, allocations: 177 MB / 205.2 MB, free: 5.578 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.944e-06/1.944e-06, allocations: 0 / 273 MB, free: 1.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.504e-05/2.698e-05, allocations: 2.312 kB / 273 MB, free: 1.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.00505/0.005077, allocations: 3.22 MB / 276.2 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00236/0.007437, allocations: 1.232 MB / 277.4 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002317/0.007668, allocations: 11.94 kB / 277.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003542/0.008023, allocations: 95.03 kB / 277.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005014/0.008524, allocations: 238.2 kB / 277.8 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005905/0.009114, allocations: 283.4 kB / 278 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008858/0.01, allocations: 0.8579 MB / 278.9 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002301/0.01023, allocations: 101.5 kB / 279 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007501/0.01098, allocations: 0.5185 MB / 279.5 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004681/0.01145, allocations: 339.2 kB / 279.9 MB, free: 10.83 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001099/0.01156, allocations: 64 kB / 279.9 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002256/0.01178, allocations: 127.8 kB / 280 MB, free: 10.64 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002075/0.01199, allocations: 183.4 kB / 280.2 MB, free: 10.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002649/0.01226, allocations: 239.4 kB / 280.5 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007872/0.01304, allocations: 0.6151 MB / 281.1 MB, free: 9.609 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.01305, allocations: 0 / 281.1 MB, free: 9.609 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.01305, allocations: 0 / 281.1 MB, free: 9.609 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.01306, allocations: 0 / 281.1 MB, free: 9.609 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.001425/0.01449, allocations: 0.9549 MB / 282 MB, free: 8.617 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.01452, allocations: 11.98 kB / 282 MB, free: 8.605 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002541/0.01477, allocations: 120.5 kB / 282.2 MB, free: 8.488 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004007/0.01517, allocations: 359.2 kB / 282.5 MB, free: 8.105 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.423e-05/0.01521, allocations: 37.38 kB / 282.5 MB, free: 8.07 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.96e-05/0.01528, allocations: 52.31 kB / 282.6 MB, free: 8.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006659/0.01594, allocations: 0.5001 MB / 283.1 MB, free: 7.5 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.897e-05/0.01596, allocations: 8.188 kB / 283.1 MB, free: 7.492 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.287e-05/0.01601, allocations: 28.06 kB / 283.1 MB, free: 7.465 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.01602, allocations: 8 kB / 283.1 MB, free: 7.457 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005558/0.01657, allocations: 361.6 kB / 283.5 MB, free: 7.109 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001316/0.01789, allocations: 1.121 MB / 284.6 MB, free: 5.941 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006137/0.0185, allocations: 374.6 kB / 285 MB, free: 5.559 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002654/0.01877, allocations: 189.5 kB / 285.2 MB, free: 5.371 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.421e-05/0.01881, allocations: 12.66 kB / 285.2 MB, free: 5.355 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/0.01884, allocations: 50.03 kB / 285.2 MB, free: 5.297 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 1.593e-06/0.01884, allocations: 0 / 285.2 MB, free: 5.297 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.003184/0.02202, allocations: 1.974 MB / 287.2 MB, free: 3.273 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.2e-05/0.02206, allocations: 64 kB / 287.3 MB, free: 3.195 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002534/0.02231, allocations: 370.7 kB / 287.6 MB, free: 2.816 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.012e-05/0.02237, allocations: 57.69 kB / 287.7 MB, free: 2.754 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.02248, allocations: 240.3 kB / 287.9 MB, free: 2.516 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001484/0.02263, allocations: 269.8 kB / 288.2 MB, free: 2.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/0.02278, allocations: 136.3 kB / 288.3 MB, free: 2.109 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.02297, allocations: 0.5274 MB / 288.8 MB, free: 1.57 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003119/0.02328, allocations: 193.9 kB / 289 MB, free: 1.379 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003262/0.02361, allocations: 253.9 kB / 289.3 MB, free: 1.125 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004429/0.02405, allocations: 345.5 kB / 289.6 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.02405, allocations: 0 / 289.6 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0009733/0.02502, allocations: 0.692 MB / 290.3 MB, free: 76 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.02504, allocations: 10.81 kB / 290.3 MB, free: 68 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.02505, allocations: 0 / 290.3 MB, free: 68 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09972/0.1248, allocations: 445.6 kB / 290.7 MB, free: 27.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003347/0.1251, allocations: 90.69 kB / 290.8 MB, free: 27.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00104/0.1261, allocations: 1.103 MB / 291.9 MB, free: 26.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004319/0.1266, allocations: 84.95 kB / 292 MB, free: 26.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.783e-05/0.1266, allocations: 24.56 kB / 292 MB, free: 26.48 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.0001882/0.1268, allocations: 194.4 kB / 292.2 MB, free: 26.32 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001431/0.127, allocations: 79.73 kB / 292.3 MB, free: 26.32 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.652e-05/0.1271, allocations: 76.45 kB / 292.4 MB, free: 26.31 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.1271, allocations: 8.062 kB / 292.4 MB, free: 26.31 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1271, allocations: 0 / 292.4 MB, free: 26.31 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.1271, allocations: 5.062 kB / 292.4 MB, free: 26.31 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001934/0.129, allocations: 1.21 MB / 293.6 MB, free: 26 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.129, allocations: 2.781 kB / 293.6 MB, free: 26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003191/0.1293, allocations: 88.83 kB / 293.7 MB, free: 26 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008217/0.1302, allocations: 441 kB / 294.1 MB, free: 25.99 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.025e-05/0.1302, allocations: 30.03 kB / 294.2 MB, free: 25.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009248/0.1311, allocations: 1.118 MB / 295.3 MB, free: 25.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1311, allocations: 1.188 kB / 295.3 MB, free: 25.18 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/0.1328, allocations: 0.9952 MB / 296.3 MB, free: 24.95 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002191/0.133, allocations: 121.6 kB / 296.4 MB, free: 24.92 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.607e-05/0.1331, allocations: 26.34 kB / 296.4 MB, free: 24.91 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003638/0.1334, allocations: 70.72 kB / 296.5 MB, free: 24.9 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000264/0.1337, allocations: 144.5 kB / 296.6 MB, free: 24.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.476e-05/0.1338, allocations: 38.03 kB / 296.7 MB, free: 24.86 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001826/0.1339, allocations: 254 kB / 296.9 MB, free: 24.71 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1339, allocations: 1.438 kB / 296.9 MB, free: 24.71 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004804/0.1344, allocations: 163.8 kB / 297.1 MB, free: 24.68 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.0009338/0.1354, allocations: 365.4 kB / 297.4 MB, free: 24.55 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001089/0.1364, allocations: 0.5513 MB / 298 MB, free: 24.45 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1364, allocations: 1.531 kB / 298 MB, free: 24.45 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005887/0.137, allocations: 344 kB / 298.3 MB, free: 24.37 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006278/0.1377, allocations: 169.1 kB / 298.5 MB, free: 24.32 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002026/0.1397, allocations: 1.194 MB / 299.7 MB, free: 23.6 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.614e-05/0.1398, allocations: 136.1 kB / 299.8 MB, free: 23.52 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001708/0.14, allocations: 52.27 kB / 299.9 MB, free: 23.51 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001337/0.1401, allocations: 56.86 kB / 299.9 MB, free: 23.49 MB / 266.7 MB Notification: Performance of SimCode: time 9.42e-07/0.1401, allocations: 0 / 299.9 MB, free: 23.49 MB / 266.7 MB Notification: Performance of Templates: time 0.0145/0.1546, allocations: 11.83 MB / 311.8 MB, free: 15.19 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: 3.1530900199431926]