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.001249/0.001249, allocations: 85.05 kB / 21.5 MB, free: 2.984 MB / 18.57 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.001365/0.001365, allocations: 147 kB / 24.89 MB, free: 8.789 MB / 18.57 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.9281/0.9281, allocations: 173.4 MB / 201.5 MB, free: 8.773 MB / 186.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.192e-06/1.192e-06, allocations: 3.938 kB / 268.5 MB, free: 6.004 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.233e-05/1.353e-05, allocations: 6.25 kB / 268.5 MB, free: 5.996 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002902/0.002915, allocations: 3.085 MB / 271.6 MB, free: 2.895 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001614/0.004529, allocations: 1.067 MB / 272.7 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001499/0.004679, allocations: 7.938 kB / 272.7 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002076/0.004887, allocations: 79.23 kB / 272.7 MB, free: 1.738 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002169/0.005104, allocations: 174.5 kB / 272.9 MB, free: 1.566 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004931/0.005597, allocations: 275.5 kB / 273.2 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000564/0.006161, allocations: 0.8188 MB / 274 MB, free: 484 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.006311, allocations: 98.2 kB / 274.1 MB, free: 376 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004507/0.006762, allocations: 0.4912 MB / 274.6 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002973/0.007059, allocations: 319.3 kB / 274.9 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.172e-05/0.007121, allocations: 56 kB / 275 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001693/0.00729, allocations: 119.9 kB / 275.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.007393, allocations: 167.4 kB / 275.2 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001386/0.007532, allocations: 219.5 kB / 275.5 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007/0.008232, allocations: 0.5685 MB / 276 MB, free: 14.44 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.008234, allocations: 0 / 276 MB, free: 14.44 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.008235, allocations: 0 / 276 MB, free: 14.44 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.533e-06/0.008241, allocations: 4 kB / 276 MB, free: 14.44 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.0008084/0.009049, allocations: 0.7565 MB / 276.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.685e-05/0.009076, allocations: 12.03 kB / 276.8 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.395e-05/0.00917, allocations: 72.88 kB / 276.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002675/0.009438, allocations: 249.5 kB / 277.1 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3e-05/0.009468, allocations: 37.38 kB / 277.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.706e-05/0.009525, allocations: 48.27 kB / 277.2 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004618/0.009987, allocations: 475 kB / 277.7 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.01, allocations: 12.12 kB / 277.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.961e-05/0.01003, allocations: 24.12 kB / 277.7 MB, free: 12.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.01004, allocations: 12 kB / 277.7 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003188/0.01036, allocations: 250.8 kB / 278 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.01136, allocations: 0.8034 MB / 278.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003655/0.01173, allocations: 257.6 kB / 279 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000144/0.01187, allocations: 142.2 kB / 279.1 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.6e-05/0.01191, allocations: 8.5 kB / 279.2 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.176e-05/0.01193, allocations: 43.05 kB / 279.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 2.374e-06/0.01193, allocations: 4 kB / 279.2 MB, free: 11.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=64): time 0.002212/0.01414, allocations: 1.589 MB / 280.8 MB, free: 9.516 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.727e-05/0.01417, allocations: 60.06 kB / 280.8 MB, free: 9.445 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001526/0.01432, allocations: 283 kB / 281.1 MB, free: 9.156 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.16e-05/0.01437, allocations: 49.69 kB / 281.2 MB, free: 9.102 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.43e-05/0.01443, allocations: 177.9 kB / 281.3 MB, free: 8.926 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.01454, allocations: 234.1 kB / 281.6 MB, free: 8.695 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/0.01467, allocations: 130.5 kB / 281.7 MB, free: 8.562 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.931e-05/0.01476, allocations: 358.7 kB / 282.1 MB, free: 8.203 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.01493, allocations: 133.9 kB / 282.2 MB, free: 8.074 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.0151, allocations: 193.1 kB / 282.4 MB, free: 7.879 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002742/0.01538, allocations: 298.7 kB / 282.7 MB, free: 7.582 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.01538, allocations: 0 / 282.7 MB, free: 7.582 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0007785/0.01616, allocations: 482 kB / 283.1 MB, free: 7.102 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.01617, allocations: 4 kB / 283.1 MB, free: 7.098 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.01618, allocations: 0 / 283.1 MB, free: 7.098 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00062/0.0168, allocations: 0.5784 MB / 283.7 MB, free: 6.516 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002027/0.017, allocations: 103.8 kB / 283.8 MB, free: 6.414 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005648/0.01756, allocations: 0.7941 MB / 284.6 MB, free: 5.594 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002236/0.01779, allocations: 79.91 kB / 284.7 MB, free: 5.516 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.962e-05/0.01782, allocations: 12 kB / 284.7 MB, free: 5.504 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 (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.0001289/0.01795, allocations: 154.5 kB / 284.9 MB, free: 5.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.574e-05/0.01801, allocations: 47.95 kB / 284.9 MB, free: 5.293 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.844e-05/0.01808, allocations: 68.75 kB / 285 MB, free: 5.215 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.01808, allocations: 8 kB / 285 MB, free: 5.207 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.01809, allocations: 3.938 kB / 285 MB, free: 5.203 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.01809, allocations: 3.984 kB / 285 MB, free: 5.199 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009548/0.01905, allocations: 0.8061 MB / 285.8 MB, free: 4.367 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.01905, allocations: 0 / 285.8 MB, free: 4.367 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002247/0.01927, allocations: 83.89 kB / 285.9 MB, free: 4.285 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005803/0.01985, allocations: 0.5784 MB / 286.4 MB, free: 3.703 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.302e-05/0.0199, allocations: 19.95 kB / 286.5 MB, free: 3.684 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005324/0.02043, allocations: 0.7933 MB / 287.3 MB, free: 2.867 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.02043, allocations: 0 / 287.3 MB, free: 2.867 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007438/0.02117, allocations: 0.7182 MB / 288 MB, free: 2.133 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000126/0.0213, allocations: 83.61 kB / 288.1 MB, free: 2.051 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.962e-05/0.02136, allocations: 24 kB / 288.1 MB, free: 2.027 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002084/0.02157, allocations: 67.91 kB / 288.1 MB, free: 1.961 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/0.02174, allocations: 136.3 kB / 288.3 MB, free: 1.828 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.032e-05/0.02177, allocations: 23.97 kB / 288.3 MB, free: 1.805 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.883e-05/0.02185, allocations: 104.6 kB / 288.4 MB, free: 1.695 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02185, allocations: 0 / 288.4 MB, free: 1.695 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002857/0.02214, allocations: 171.9 kB / 288.6 MB, free: 1.527 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.0001519/0.02229, allocations: 128.3 kB / 288.7 MB, free: 1.395 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00052/0.02281, allocations: 434.2 kB / 289.1 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.02281, allocations: 12 kB / 289.1 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003002/0.02311, allocations: 276.8 kB / 289.4 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003312/0.02344, allocations: 133.2 kB / 289.5 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08373/0.1072, allocations: 1.008 MB / 290.5 MB, free: 28.41 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.826e-05/0.1072, allocations: 124.6 kB / 290.7 MB, free: 28.34 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001626/0.1074, allocations: 48.09 kB / 290.7 MB, free: 28.34 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002155/0.1076, allocations: 136.2 kB / 290.8 MB, free: 28.29 MB / 266.7 MB Notification: Performance of SimCode: time 9.02e-07/0.1076, allocations: 0 / 290.8 MB, free: 28.29 MB / 266.7 MB Notification: Performance of Templates: time 0.01246/0.1201, allocations: 12.56 MB / 303.4 MB, free: 24.45 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 -s gbode -gbm=radauIIA3 -emit_protected -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.8243974931538105]