Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001411/0.001411, allocations: 80.8 kB / 21.49 MB, free: 2.996 MB / 18.57 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.001809/0.001809, allocations: 172.7 kB / 24.91 MB, free: 9.148 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9731/0.9731, allocations: 177.1 MB / 205.3 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.102e-06/1.102e-06, allocations: 0 / 273.5 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.161e-05/1.271e-05, allocations: 2.312 kB / 273.5 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003464/0.003477, allocations: 3.243 MB / 276.7 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001722/0.005199, allocations: 1.263 MB / 278 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001726/0.005371, allocations: 11.94 kB / 278 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002583/0.00563, allocations: 99.08 kB / 278.1 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003752/0.006005, allocations: 242.2 kB / 278.3 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004012/0.006406, allocations: 275.5 kB / 278.6 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006954/0.007102, allocations: 0.8656 MB / 279.5 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000163/0.007265, allocations: 98.19 kB / 279.6 MB, free: 11.13 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005452/0.00781, allocations: 0.5185 MB / 280.1 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000325/0.008135, allocations: 343.2 kB / 280.4 MB, free: 10.28 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.968e-05/0.008204, allocations: 64 kB / 280.5 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000294/0.008498, allocations: 131.8 kB / 280.6 MB, free: 10.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001313/0.00863, allocations: 183.4 kB / 280.8 MB, free: 9.906 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.008792, allocations: 235.4 kB / 281 MB, free: 9.676 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004746/0.009266, allocations: 0.6151 MB / 281.6 MB, free: 9.059 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.383e-06/0.009268, allocations: 0 / 281.6 MB, free: 9.059 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.61e-07/0.009268, allocations: 0 / 281.6 MB, free: 9.059 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.009273, allocations: 0 / 281.6 MB, free: 9.059 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.0008028/0.01008, allocations: 0.8263 MB / 282.5 MB, free: 8.207 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 1.908e-05/0.0101, allocations: 8.031 kB / 282.5 MB, free: 8.199 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001736/0.01027, allocations: 96.86 kB / 282.6 MB, free: 8.105 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003143/0.01058, allocations: 292.5 kB / 282.8 MB, free: 7.789 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.029e-05/0.01061, allocations: 33.38 kB / 282.9 MB, free: 7.758 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.611e-05/0.01068, allocations: 48.33 kB / 282.9 MB, free: 7.711 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004509/0.01113, allocations: 470.3 kB / 283.4 MB, free: 7.238 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.01114, allocations: 4.141 kB / 283.4 MB, free: 7.234 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.029e-05/0.01117, allocations: 32 kB / 283.4 MB, free: 7.203 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.01118, allocations: 12 kB / 283.4 MB, free: 7.191 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003151/0.0115, allocations: 242.8 kB / 283.7 MB, free: 6.957 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001034/0.01253, allocations: 0.8097 MB / 284.5 MB, free: 6.125 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003984/0.01293, allocations: 298.2 kB / 284.8 MB, free: 5.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001444/0.01307, allocations: 126.8 kB / 284.9 MB, free: 5.695 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.34e-05/0.01311, allocations: 16.66 kB / 284.9 MB, free: 5.68 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.785e-05/0.01312, allocations: 47.16 kB / 285 MB, free: 5.625 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 1.422e-06/0.01313, allocations: 0 / 285 MB, free: 5.625 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.002211/0.01534, allocations: 1.631 MB / 286.6 MB, free: 3.945 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.243e-05/0.01536, allocations: 60.06 kB / 286.6 MB, free: 3.875 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001724/0.01553, allocations: 313 kB / 286.9 MB, free: 3.559 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.233e-05/0.01557, allocations: 53.7 kB / 287 MB, free: 3.5 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.104e-05/0.01565, allocations: 178.1 kB / 287.2 MB, free: 3.324 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/0.01577, allocations: 257.8 kB / 287.4 MB, free: 3.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/0.0159, allocations: 134.5 kB / 287.6 MB, free: 2.934 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.195e-05/0.01599, allocations: 366.6 kB / 287.9 MB, free: 2.566 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001609/0.01615, allocations: 118 kB / 288 MB, free: 2.449 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001651/0.01631, allocations: 185.4 kB / 288.2 MB, free: 2.262 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002751/0.01659, allocations: 299.7 kB / 288.5 MB, free: 1.957 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.01659, allocations: 0 / 288.5 MB, free: 1.957 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0005821/0.01717, allocations: 0.4884 MB / 289 MB, free: 1.457 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.737e-06/0.01718, allocations: 8.031 kB / 289 MB, free: 1.449 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-06/0.01718, allocations: 0 / 289 MB, free: 1.449 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005733/0.01776, allocations: 396.5 kB / 289.4 MB, free: 1.059 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001899/0.01795, allocations: 103.8 kB / 289.5 MB, free: 0.957 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005902/0.01854, allocations: 0.7706 MB / 290.3 MB, free: 160 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002422/0.01878, allocations: 79.91 kB / 290.3 MB, free: 80 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.049e-05/0.01881, allocations: 20 kB / 290.4 MB, free: 60 kB / 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.09589/0.1147, allocations: 149.9 kB / 290.5 MB, free: 25.56 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.1148, allocations: 54.95 kB / 290.6 MB, free: 25.56 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.508e-05/0.1149, allocations: 77.27 kB / 290.6 MB, free: 25.55 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.1149, allocations: 7.406 kB / 290.6 MB, free: 25.55 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.1149, allocations: 0.9375 kB / 290.6 MB, free: 25.55 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.1149, allocations: 3.094 kB / 290.6 MB, free: 25.55 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00125/0.1162, allocations: 0.8169 MB / 291.5 MB, free: 25.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.1162, allocations: 0 / 291.5 MB, free: 25.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002629/0.1164, allocations: 91.95 kB / 291.6 MB, free: 25.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005388/0.117, allocations: 399.6 kB / 291.9 MB, free: 25.34 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.493e-05/0.117, allocations: 28 kB / 292 MB, free: 25.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005683/0.1176, allocations: 0.7744 MB / 292.7 MB, free: 24.8 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1176, allocations: 0 / 292.7 MB, free: 24.8 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008807/0.1185, allocations: 0.7107 MB / 293.5 MB, free: 24.64 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001573/0.1186, allocations: 80.73 kB / 293.5 MB, free: 24.64 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.235e-05/0.1187, allocations: 29.61 kB / 293.6 MB, free: 24.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002461/0.1189, allocations: 71.67 kB / 293.6 MB, free: 24.64 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001982/0.1191, allocations: 139.7 kB / 293.8 MB, free: 24.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.892e-05/0.1192, allocations: 24.52 kB / 293.8 MB, free: 24.64 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001104/0.1193, allocations: 126.9 kB / 293.9 MB, free: 24.62 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1193, allocations: 7.453 kB / 293.9 MB, free: 24.62 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003581/0.1196, allocations: 157.6 kB / 294.1 MB, free: 24.62 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.0009497/0.1206, allocations: 480.8 kB / 294.5 MB, free: 24.52 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006444/0.1212, allocations: 436.6 kB / 295 MB, free: 24.49 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.1213, allocations: 3.594 kB / 295 MB, free: 24.49 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003775/0.1216, allocations: 286.7 kB / 295.3 MB, free: 24.47 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003986/0.122, allocations: 161.2 kB / 295.4 MB, free: 24.47 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001456/0.1235, allocations: 1.04 MB / 296.5 MB, free: 23.97 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.174e-05/0.1236, allocations: 133.3 kB / 296.6 MB, free: 23.9 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001353/0.1237, allocations: 47.89 kB / 296.6 MB, free: 23.89 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002272/0.1239, allocations: 146.6 kB / 296.8 MB, free: 23.84 MB / 266.7 MB Notification: Performance of SimCode: time 6.62e-07/0.1239, allocations: 1 kB / 296.8 MB, free: 23.84 MB / 266.7 MB Notification: Performance of Templates: time 0.01368/0.1376, allocations: 12.7 MB / 309.5 MB, free: 16.53 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.8785498649813235]