Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009486/0.0009486, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002209/0.003158, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001675/0.001675, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001788/0.003463, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.932/0.932, allocations: 158.6 MB / 171.2 MB, free: 2.504 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1816/1.114, allocations: 49.5 MB / 220.7 MB, free: 1.355 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 222 MB, free: 68 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.989e-05/2.123e-05, allocations: 6.109 kB / 222 MB, free: 64 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003523/0.003545, allocations: 3.109 MB / 225.1 MB, free: 12.93 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001602/0.005147, allocations: 1.099 MB / 226.2 MB, free: 11.82 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001908/0.005337, allocations: 7.938 kB / 226.2 MB, free: 11.81 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001623/0.0055, allocations: 79.23 kB / 226.3 MB, free: 11.73 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001352/0.006851, allocations: 170.5 kB / 226.4 MB, free: 11.56 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008466/0.007698, allocations: 287.4 kB / 226.7 MB, free: 11.28 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001095/0.008793, allocations: 0.8033 MB / 227.5 MB, free: 10.48 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002358/0.009029, allocations: 106 kB / 227.6 MB, free: 10.37 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009111/0.00994, allocations: 0.5114 MB / 228.1 MB, free: 9.859 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005589/0.0105, allocations: 323.3 kB / 228.5 MB, free: 9.543 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001632/0.01066, allocations: 60 kB / 228.5 MB, free: 9.484 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002414/0.0109, allocations: 119.9 kB / 228.6 MB, free: 9.367 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.809e-05/0.011, allocations: 107.7 kB / 228.7 MB, free: 9.262 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001437/0.01115, allocations: 159.7 kB / 228.9 MB, free: 9.105 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004699/0.01162, allocations: 490.3 kB / 229.4 MB, free: 8.625 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.293e-05/0.01163, allocations: 0 / 229.4 MB, free: 8.625 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.01163, allocations: 0 / 229.4 MB, free: 8.625 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.631e-05/0.01165, allocations: 4 kB / 229.4 MB, free: 8.621 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001042/0.01269, allocations: 0.8811 MB / 230.3 MB, free: 7.715 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.01272, allocations: 11.89 kB / 230.3 MB, free: 7.703 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001123/0.01284, allocations: 76.88 kB / 230.3 MB, free: 7.629 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003158/0.01315, allocations: 257.4 kB / 230.6 MB, free: 7.355 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.166e-05/0.01318, allocations: 37.31 kB / 230.6 MB, free: 7.32 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.521e-05/0.01325, allocations: 44.38 kB / 230.7 MB, free: 7.277 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00052/0.01377, allocations: 471 kB / 231.1 MB, free: 6.797 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.01379, allocations: 12.12 kB / 231.1 MB, free: 6.785 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.135e-05/0.01382, allocations: 20.12 kB / 231.2 MB, free: 6.766 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.01383, allocations: 12 kB / 231.2 MB, free: 6.754 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003088/0.01414, allocations: 246.7 kB / 231.4 MB, free: 6.516 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001202/0.01534, allocations: 0.8113 MB / 232.2 MB, free: 5.676 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004158/0.01575, allocations: 261.5 kB / 232.5 MB, free: 5.41 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001508/0.0159, allocations: 146.2 kB / 232.6 MB, free: 5.266 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.23e-05/0.01595, allocations: 8.5 kB / 232.6 MB, free: 5.258 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.01598, allocations: 43.06 kB / 232.7 MB, free: 5.207 MB / 234.7 MB Notification: Performance of pre-optimization done (n=58): time 1.633e-06/0.01598, allocations: 0 / 232.7 MB, free: 5.207 MB / 234.7 MB Notification: Performance of matching and sorting (n=64): time 0.002656/0.01864, allocations: 1.758 MB / 234.4 MB, free: 3.379 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.88e-05/0.01867, allocations: 60.06 kB / 234.5 MB, free: 3.309 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.01882, allocations: 290.9 kB / 234.8 MB, free: 3.012 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.235e-05/0.01886, allocations: 45.7 kB / 234.8 MB, free: 2.961 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.813e-05/0.01893, allocations: 178 kB / 235 MB, free: 2.781 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001218/0.01905, allocations: 230.1 kB / 235.2 MB, free: 2.555 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.01919, allocations: 130.5 kB / 235.4 MB, free: 2.422 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.677e-05/0.01927, allocations: 358.7 kB / 235.7 MB, free: 2.062 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001634/0.01944, allocations: 133.9 kB / 235.8 MB, free: 1.934 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.01961, allocations: 193 kB / 236 MB, free: 1.738 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002868/0.0199, allocations: 303.3 kB / 236.3 MB, free: 1.434 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.0199, allocations: 4 kB / 236.3 MB, free: 1.43 MB / 234.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0005211/0.02042, allocations: 478 kB / 236.8 MB, free: 0.9531 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.02044, allocations: 4 kB / 236.8 MB, free: 0.9492 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.02044, allocations: 4 kB / 236.8 MB, free: 0.9453 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006324/0.02107, allocations: 0.5705 MB / 237.4 MB, free: 380 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002176/0.02129, allocations: 111.9 kB / 237.5 MB, free: 268 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006297/0.02192, allocations: 0.798 MB / 238.3 MB, free: 15.44 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002456/0.02217, allocations: 75.91 kB / 238.3 MB, free: 15.36 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.942e-05/0.02219, allocations: 16 kB / 238.4 MB, free: 15.35 MB / 250.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 (64): * Single equations (assignments): 63 * 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,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0001491/0.02234, allocations: 154.6 kB / 238.5 MB, free: 15.19 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.786e-05/0.02241, allocations: 47.95 kB / 238.6 MB, free: 15.14 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.757e-05/0.02249, allocations: 72.75 kB / 238.6 MB, free: 15.07 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.02249, allocations: 4 kB / 238.6 MB, free: 15.07 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.269e-06/0.0225, allocations: 3.938 kB / 238.6 MB, free: 15.06 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.0225, allocations: 3.984 kB / 238.6 MB, free: 15.06 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000987/0.02349, allocations: 0.8022 MB / 239.4 MB, free: 14.23 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.02349, allocations: 0 / 239.4 MB, free: 14.23 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002251/0.02372, allocations: 99.88 kB / 239.5 MB, free: 14.13 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000125/0.02384, allocations: 83.56 kB / 239.6 MB, free: 14.05 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005653/0.02441, allocations: 0.5706 MB / 240.2 MB, free: 13.47 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.076e-05/0.02445, allocations: 23.97 kB / 240.2 MB, free: 13.45 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005314/0.02498, allocations: 0.7825 MB / 241 MB, free: 12.64 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.02498, allocations: 4 kB / 241 MB, free: 12.64 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007524/0.02574, allocations: 0.7259 MB / 241.7 MB, free: 11.89 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.96e-05/0.0258, allocations: 28 kB / 241.8 MB, free: 11.86 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002036/0.026, allocations: 67.92 kB / 241.8 MB, free: 11.8 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001656/0.02617, allocations: 144.2 kB / 242 MB, free: 11.66 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.689e-05/0.02619, allocations: 15.97 kB / 242 MB, free: 11.64 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.029e-05/0.02627, allocations: 120.5 kB / 242.1 MB, free: 11.52 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02627, allocations: 0 / 242.1 MB, free: 11.52 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003188/0.02659, allocations: 160 kB / 242.3 MB, free: 11.36 MB / 250.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,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001865/0.02678, allocations: 128.3 kB / 242.4 MB, free: 11.23 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005521/0.02733, allocations: 446.5 kB / 242.8 MB, free: 10.79 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-05/0.02734, allocations: 8.094 kB / 242.8 MB, free: 10.79 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003421/0.02769, allocations: 298.6 kB / 243.1 MB, free: 10.49 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005589/0.02825, allocations: 0.7781 MB / 243.9 MB, free: 9.574 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003977/0.03222, allocations: 1.013 MB / 244.9 MB, free: 8.531 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.465e-05/0.0323, allocations: 130.6 kB / 245 MB, free: 8.379 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.000123/0.03242, allocations: 52.17 kB / 245.1 MB, free: 8.328 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001977/0.03262, allocations: 143.3 kB / 245.2 MB, free: 8.188 MB / 250.7 MB Notification: Performance of SimCode: time 1.122e-06/0.03262, allocations: 0 / 245.2 MB, free: 8.188 MB / 250.7 MB Notification: Performance of Templates: time 0.01468/0.0473, allocations: 12.89 MB / 258.1 MB, free: 11.3 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0456736087799072]