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.001333/0.001333, allocations: 115.5 kB / 18.41 MB, free: 4.684 MB / 14.72 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.001393/0.001393, allocations: 192.3 kB / 21.35 MB, free: 1.75 MB / 14.72 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 1.414/1.414, allocations: 222.9 MB / 247 MB, free: 4.234 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001704/0.001704, allocations: 51.92 kB / 358.7 MB, free: 8.41 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1069, allocations: 49.44 MB / 408.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004537/0.1115, allocations: 3.108 MB / 411.2 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.1136, allocations: 1.028 MB / 412.2 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002089/0.1138, allocations: 12 kB / 412.2 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002747/0.1141, allocations: 71.25 kB / 412.3 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002874/0.1144, allocations: 150.7 kB / 412.5 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006746/0.1151, allocations: 295.4 kB / 412.7 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008143/0.1159, allocations: 0.7959 MB / 413.5 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000257/0.1162, allocations: 137.1 kB / 413.7 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004752/0.1167, allocations: 354.9 kB / 414 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005016/0.1172, allocations: 386.6 kB / 414.4 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001078/0.1173, allocations: 60 kB / 414.5 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002397/0.1175, allocations: 111.9 kB / 414.6 MB, free: 432 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001802/0.1177, allocations: 159.5 kB / 414.7 MB, free: 272 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003292/0.1181, allocations: 302.7 kB / 415 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008321/0.1189, allocations: 0.7238 MB / 415.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1189, allocations: 0 / 415.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1189, allocations: 0 / 415.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.435e-06/0.119, allocations: 0 / 415.7 MB, free: 15.24 MB / 350.1 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.001869/0.1208, allocations: 0.8958 MB / 416.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.1209, allocations: 19.95 kB / 416.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001297/0.121, allocations: 60.56 kB / 416.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005785/0.1216, allocations: 364 kB / 417.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.714e-05/0.1217, allocations: 29.38 kB / 417.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.1218, allocations: 48.33 kB / 417.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001158/0.1229, allocations: 0.6307 MB / 417.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.492e-05/0.123, allocations: 4 kB / 417.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.72e-05/0.123, allocations: 16 kB / 417.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.123, allocations: 8 kB / 417.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001269/0.1243, allocations: 0.5973 MB / 418.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002424/0.1268, allocations: 1.313 MB / 419.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.1278, allocations: 458.7 kB / 420.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005857/0.1284, allocations: 310.4 kB / 420.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.259e-05/0.1285, allocations: 4.562 kB / 420.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.1285, allocations: 47.06 kB / 420.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.334e-06/0.1285, allocations: 0 / 420.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.006571/0.1351, allocations: 2.876 MB / 423.4 MB, free: 7.266 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.344e-05/0.1352, allocations: 59.97 kB / 423.5 MB, free: 7.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005118/0.1357, allocations: 345.6 kB / 423.8 MB, free: 6.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.045e-05/0.1358, allocations: 41.7 kB / 423.8 MB, free: 6.805 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001933/0.136, allocations: 197.6 kB / 424 MB, free: 6.605 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002044/0.1362, allocations: 238.1 kB / 424.3 MB, free: 6.371 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002457/0.1365, allocations: 134.6 kB / 424.4 MB, free: 6.234 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.1367, allocations: 350.7 kB / 424.7 MB, free: 5.883 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006453/0.1373, allocations: 321.8 kB / 425 MB, free: 5.566 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006787/0.138, allocations: 385 kB / 425.4 MB, free: 5.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009877/0.139, allocations: 0.503 MB / 425.9 MB, free: 4.668 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.139, allocations: 0 / 425.9 MB, free: 4.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001853/0.1409, allocations: 0.9274 MB / 426.9 MB, free: 3.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.1409, allocations: 4 kB / 426.9 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.1409, allocations: 7.984 kB / 426.9 MB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001331/0.1423, allocations: 0.7268 MB / 427.6 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004022/0.1427, allocations: 103.8 kB / 427.7 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001518/0.1442, allocations: 1.081 MB / 428.8 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007334/0.1449, allocations: 107.9 kB / 428.9 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.496e-05/0.145, allocations: 23.98 kB / 428.9 MB, free: 1.652 MB / 350.1 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.0002951/0.1453, allocations: 196 kB / 429.1 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/0.1454, allocations: 51.67 kB / 429.1 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001591/0.1456, allocations: 68.75 kB / 429.2 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.1456, allocations: 8 kB / 429.2 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.1456, allocations: 0 / 429.2 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.1456, allocations: 3.984 kB / 429.2 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2229/0.3685, allocations: 1.574 MB / 430.8 MB, free: 23.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.677e-06/0.3686, allocations: 1.156 kB / 430.8 MB, free: 23.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004508/0.369, allocations: 87.8 kB / 430.9 MB, free: 23.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001008/0.37, allocations: 0.7025 MB / 431.6 MB, free: 23.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.973e-05/0.3701, allocations: 28.45 kB / 431.6 MB, free: 23.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001176/0.3713, allocations: 1.062 MB / 432.7 MB, free: 22.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.3713, allocations: 0 / 432.7 MB, free: 22.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002252/0.3736, allocations: 1.316 MB / 434 MB, free: 22.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000252/0.3738, allocations: 191.4 kB / 434.2 MB, free: 22.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.95e-05/0.3739, allocations: 21.05 kB / 434.2 MB, free: 22.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000617/0.3746, allocations: 104.2 kB / 434.3 MB, free: 22.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002836/0.3749, allocations: 124.7 kB / 434.4 MB, free: 22.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.938e-05/0.3749, allocations: 23.7 kB / 434.4 MB, free: 22.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002231/0.3752, allocations: 234.4 kB / 434.7 MB, free: 22.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.52e-07/0.3752, allocations: 1.781 kB / 434.7 MB, free: 22.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006026/0.3758, allocations: 158.6 kB / 434.8 MB, free: 22.27 MB / 350.1 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.0002932/0.3761, allocations: 155 kB / 435 MB, free: 22.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001758/0.3778, allocations: 0.7707 MB / 435.8 MB, free: 22.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.3779, allocations: 1.469 kB / 435.8 MB, free: 22.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008112/0.3787, allocations: 430.1 kB / 436.2 MB, free: 22.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006777/0.3794, allocations: 98.14 kB / 436.3 MB, free: 22.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002454/0.3818, allocations: 1.443 MB / 437.7 MB, free: 21.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000298/0.3821, allocations: 0.8418 MB / 438.6 MB, free: 20.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000147/0.3823, allocations: 48.91 kB / 438.6 MB, free: 20.75 MB / 350.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3823, allocations: 4 kB / 438.6 MB, free: 20.75 MB / 350.1 MB Notification: Performance of Templates: time 0.01397/0.3963, allocations: 8.63 MB / 447.2 MB, free: 18.68 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.128766795969568]