Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000784/0.000784, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001015/0.001799, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006574/0.0006574, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001342/0.001999, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.901/0.901, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07808/0.979, allocations: 52.49 MB / 238.3 MB, free: 4.43 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.122e-06/1.122e-06, allocations: 0 / 239.5 MB, free: 3.184 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.505e-05/1.617e-05, allocations: 6.875 kB / 239.5 MB, free: 3.176 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002884/0.0029, allocations: 3.096 MB / 242.6 MB, free: 68 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001596/0.004497, allocations: 1.059 MB / 243.7 MB, free: 15 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001738/0.00467, allocations: 7.938 kB / 243.7 MB, free: 14.99 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001747/0.004845, allocations: 79.19 kB / 243.8 MB, free: 14.91 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002252/0.00507, allocations: 170.5 kB / 244 MB, free: 14.75 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004824/0.005553, allocations: 283.4 kB / 244.2 MB, free: 14.47 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005652/0.006118, allocations: 0.8071 MB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001941/0.006312, allocations: 98.22 kB / 245.1 MB, free: 13.55 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005518/0.006864, allocations: 0.5267 MB / 245.7 MB, free: 13.03 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003142/0.007178, allocations: 323.2 kB / 246 MB, free: 12.71 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.135e-05/0.007249, allocations: 60 kB / 246 MB, free: 12.65 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001902/0.00744, allocations: 115.9 kB / 246.1 MB, free: 12.54 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.534e-05/0.007535, allocations: 99.69 kB / 246.2 MB, free: 12.44 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001385/0.007673, allocations: 163.7 kB / 246.4 MB, free: 12.28 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004363/0.00811, allocations: 490.4 kB / 246.9 MB, free: 11.8 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.306e-05/0.008123, allocations: 0 / 246.9 MB, free: 11.8 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.22e-07/0.008123, allocations: 0 / 246.9 MB, free: 11.8 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.963e-05/0.008143, allocations: 4 kB / 246.9 MB, free: 11.8 MB / 250.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.001012/0.009155, allocations: 0.8849 MB / 247.8 MB, free: 10.88 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.12e-05/0.009186, allocations: 19.89 kB / 247.8 MB, free: 10.86 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.66e-05/0.009282, allocations: 68.88 kB / 247.9 MB, free: 10.8 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002966/0.009579, allocations: 261.4 kB / 248.1 MB, free: 10.52 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.009613, allocations: 29.38 kB / 248.1 MB, free: 10.49 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.969e-05/0.009673, allocations: 48.33 kB / 248.2 MB, free: 10.44 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004892/0.01016, allocations: 475 kB / 248.7 MB, free: 9.965 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.01018, allocations: 8.125 kB / 248.7 MB, free: 9.957 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.369e-05/0.01021, allocations: 28.12 kB / 248.7 MB, free: 9.93 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.01022, allocations: 12 kB / 248.7 MB, free: 9.918 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003078/0.01053, allocations: 250.7 kB / 248.9 MB, free: 9.672 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001103/0.01163, allocations: 0.7957 MB / 249.7 MB, free: 8.855 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003994/0.01203, allocations: 269.3 kB / 250 MB, free: 8.582 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001527/0.01218, allocations: 138.2 kB / 250.1 MB, free: 8.441 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.767e-05/0.01222, allocations: 8.5 kB / 250.1 MB, free: 8.43 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.771e-05/0.01225, allocations: 43 kB / 250.2 MB, free: 8.379 MB / 250.7 MB Notification: Performance of pre-optimization done (n=58): time 2.274e-06/0.01225, allocations: 4 kB / 250.2 MB, free: 8.375 MB / 250.7 MB Notification: Performance of matching and sorting (n=64): time 0.002331/0.01458, allocations: 1.589 MB / 251.8 MB, free: 6.742 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/0.01463, allocations: 60.06 kB / 251.8 MB, free: 6.672 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002064/0.01483, allocations: 282.9 kB / 252.1 MB, free: 6.383 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.722e-05/0.01489, allocations: 49.7 kB / 252.2 MB, free: 6.328 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.015, allocations: 177.9 kB / 252.3 MB, free: 6.148 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001761/0.01518, allocations: 238 kB / 252.6 MB, free: 5.914 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/0.01534, allocations: 126.5 kB / 252.7 MB, free: 5.785 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.01546, allocations: 362.7 kB / 253 MB, free: 5.422 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001786/0.01564, allocations: 126 kB / 253.2 MB, free: 5.297 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001869/0.01583, allocations: 193.1 kB / 253.4 MB, free: 5.098 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002962/0.01613, allocations: 298.7 kB / 253.7 MB, free: 4.797 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.01613, allocations: 0 / 253.7 MB, free: 4.797 MB / 250.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0005203/0.01665, allocations: 474 kB / 254.1 MB, free: 4.324 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.01666, allocations: 8 kB / 254.1 MB, free: 4.316 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.01667, allocations: 0 / 254.1 MB, free: 4.316 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006522/0.01732, allocations: 0.5773 MB / 254.7 MB, free: 3.738 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002112/0.01753, allocations: 107.8 kB / 254.8 MB, free: 3.633 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006206/0.01815, allocations: 0.7942 MB / 255.6 MB, free: 2.812 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002314/0.01838, allocations: 75.91 kB / 255.7 MB, free: 2.738 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.237e-05/0.01842, allocations: 19.98 kB / 255.7 MB, free: 2.719 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.0001504/0.01857, allocations: 150.5 kB / 255.8 MB, free: 2.559 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.068e-05/0.01864, allocations: 51.95 kB / 255.9 MB, free: 2.508 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.033e-05/0.01872, allocations: 68.75 kB / 256 MB, free: 2.438 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.01872, allocations: 4 kB / 256 MB, free: 2.434 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.01873, allocations: 3.938 kB / 256 MB, free: 2.43 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.01873, allocations: 11.98 kB / 256 MB, free: 2.418 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000961/0.0197, allocations: 0.8021 MB / 256.8 MB, free: 1.594 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.0197, allocations: 0 / 256.8 MB, free: 1.594 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000228/0.01993, allocations: 99.88 kB / 256.9 MB, free: 1.496 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001274/0.02005, allocations: 79.61 kB / 257 MB, free: 1.418 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005495/0.0206, allocations: 0.5706 MB / 257.5 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.631e-05/0.02064, allocations: 19.97 kB / 257.5 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005284/0.02117, allocations: 0.8011 MB / 258.3 MB, free: 0 / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.02117, allocations: 0 / 258.3 MB, free: 0 / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007443/0.02191, allocations: 0.7221 MB / 259.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.082e-05/0.02198, allocations: 28 kB / 259.1 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002039/0.02219, allocations: 71.91 kB / 259.2 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001611/0.02235, allocations: 136.3 kB / 259.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.554e-05/0.02237, allocations: 19.95 kB / 259.3 MB, free: 15 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.435e-05/0.02245, allocations: 112.6 kB / 259.4 MB, free: 14.89 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02245, allocations: 0 / 259.4 MB, free: 14.89 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002742/0.02272, allocations: 160 kB / 259.6 MB, free: 14.73 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,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000181/0.0229, allocations: 136.1 kB / 259.7 MB, free: 14.59 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005109/0.02342, allocations: 434.2 kB / 260.1 MB, free: 14.17 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/0.02343, allocations: 4.062 kB / 260.1 MB, free: 14.16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002904/0.02372, allocations: 288.7 kB / 260.4 MB, free: 13.88 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003702/0.02409, allocations: 177.5 kB / 260.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003942/0.02803, allocations: 1.015 MB / 261.6 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.23e-05/0.0281, allocations: 126.8 kB / 261.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001194/0.02822, allocations: 43.45 kB / 261.8 MB, free: 12.47 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001789/0.0284, allocations: 143.3 kB / 261.9 MB, free: 12.33 MB / 266.7 MB Notification: Performance of SimCode: time 1.212e-06/0.0284, allocations: 0 / 261.9 MB, free: 12.33 MB / 266.7 MB Notification: Performance of Templates: time 0.1389/0.1673, allocations: 12.81 MB / 274.7 MB, free: 27.87 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.8797876220196486]