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.001824/0.001824, allocations: 113 kB / 19.04 MB, free: 3.254 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.002117/0.002117, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 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.478/1.478, allocations: 225.6 MB / 250.8 MB, free: 13.32 MB / 206.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.001541/0.001541, allocations: 48.02 kB / 368.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2388/0.2404, allocations: 52.15 MB / 420.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004691/0.245, allocations: 3.122 MB / 424 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002154/0.2472, allocations: 1.048 MB / 425 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000203/0.2474, allocations: 7.938 kB / 425 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002991/0.2477, allocations: 79.23 kB / 425.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000307/0.248, allocations: 158.7 kB / 425.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006917/0.2487, allocations: 291.5 kB / 425.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008362/0.2495, allocations: 0.8037 MB / 426.4 MB, free: 9.578 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002315/0.2498, allocations: 89.19 kB / 426.5 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004587/0.2502, allocations: 358.9 kB / 426.8 MB, free: 9.129 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004743/0.2507, allocations: 386.6 kB / 427.2 MB, free: 8.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.928e-05/0.2508, allocations: 60 kB / 427.2 MB, free: 8.691 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002065/0.251, allocations: 112 kB / 427.3 MB, free: 8.582 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001845/0.2512, allocations: 163.5 kB / 427.5 MB, free: 8.422 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002892/0.2515, allocations: 302.5 kB / 427.8 MB, free: 8.125 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008117/0.2523, allocations: 0.7212 MB / 428.5 MB, free: 7.406 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.2523, allocations: 0 / 428.5 MB, free: 7.406 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2523, allocations: 0 / 428.5 MB, free: 7.406 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.2523, allocations: 0 / 428.5 MB, free: 7.406 MB / 334.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.001773/0.2541, allocations: 0.8996 MB / 429.4 MB, free: 6.457 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.2541, allocations: 12.03 kB / 429.4 MB, free: 6.445 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.2543, allocations: 60.56 kB / 429.5 MB, free: 6.387 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005791/0.2548, allocations: 371.9 kB / 429.9 MB, free: 5.988 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.617e-05/0.2549, allocations: 33.38 kB / 429.9 MB, free: 5.957 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.255, allocations: 44.33 kB / 429.9 MB, free: 5.914 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.2562, allocations: 0.6152 MB / 430.5 MB, free: 5.285 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.755e-05/0.2562, allocations: 4 kB / 430.6 MB, free: 5.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.222e-05/0.2562, allocations: 20 kB / 430.6 MB, free: 5.262 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.2563, allocations: 8 kB / 430.6 MB, free: 5.254 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001235/0.2575, allocations: 0.6089 MB / 431.2 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002367/0.2599, allocations: 1.313 MB / 432.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001003/0.2609, allocations: 447.3 kB / 432.9 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000583/0.2614, allocations: 294.4 kB / 433.2 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.062e-05/0.2615, allocations: 8.562 kB / 433.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.2615, allocations: 35.12 kB / 433.3 MB, free: 2.484 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 2.044e-06/0.2615, allocations: 0 / 433.3 MB, free: 2.484 MB / 334.1 MB Notification: Performance of matching and sorting (n=64): time 0.006431/0.268, allocations: 2.868 MB / 436.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.268, allocations: 55.97 kB / 436.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000376/0.2684, allocations: 333.6 kB / 436.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.675e-05/0.2685, allocations: 49.69 kB / 436.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.2686, allocations: 193.6 kB / 436.8 MB, free: 14.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002307/0.2688, allocations: 245.9 kB / 437 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002391/0.2691, allocations: 130.6 kB / 437.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.2693, allocations: 362.7 kB / 437.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006378/0.2699, allocations: 313.8 kB / 437.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006998/0.2706, allocations: 385 kB / 438.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001017/0.2716, allocations: 0.5069 MB / 438.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2716, allocations: 3.938 kB / 438.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001784/0.2734, allocations: 0.9117 MB / 439.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.2734, allocations: 4 kB / 439.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.2734, allocations: 4.031 kB / 439.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001297/0.2747, allocations: 0.7258 MB / 440.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004166/0.2751, allocations: 107.8 kB / 440.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00145/0.2766, allocations: 1.087 MB / 441.5 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006742/0.2773, allocations: 107.9 kB / 441.6 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.303e-05/0.2773, allocations: 23.98 kB / 441.6 MB, free: 9.871 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.0002665/0.2776, allocations: 191.9 kB / 441.8 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.2777, allocations: 51.67 kB / 441.9 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001606/0.2779, allocations: 76.73 kB / 442 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.2779, allocations: 8 kB / 442 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.2779, allocations: 0 / 442 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.2779, allocations: 0 / 442 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002836/0.2807, allocations: 1.557 MB / 443.5 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.2807, allocations: 0 / 443.5 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004205/0.2811, allocations: 87.88 kB / 443.6 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001182/0.2823, allocations: 0.7033 MB / 444.3 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.285e-05/0.2824, allocations: 27.97 kB / 444.3 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001464/0.2838, allocations: 1.066 MB / 445.4 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.2839, allocations: 7.922 kB / 445.4 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00248/0.2863, allocations: 1.297 MB / 446.7 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002679/0.2866, allocations: 192.7 kB / 446.9 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001355/0.2867, allocations: 24 kB / 446.9 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005854/0.2873, allocations: 103.8 kB / 447 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002832/0.2876, allocations: 124.4 kB / 447.1 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.116e-05/0.2877, allocations: 31.95 kB / 447.2 MB, free: 4.203 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002577/0.2879, allocations: 227.2 kB / 447.4 MB, free: 3.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2879, allocations: 0 / 447.4 MB, free: 3.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005179/0.2885, allocations: 167.9 kB / 447.6 MB, free: 3.816 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.0002581/0.2887, allocations: 147.7 kB / 447.7 MB, free: 3.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.2903, allocations: 0.7214 MB / 448.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2903, allocations: 0 / 448.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008409/0.2912, allocations: 401.8 kB / 448.8 MB, free: 2.547 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006255/0.2918, allocations: 93.39 kB / 448.9 MB, free: 2.457 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002694/0.2945, allocations: 1.428 MB / 450.3 MB, free: 1.004 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005146/0.295, allocations: 0.8479 MB / 451.2 MB, free: 136 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001677/0.2952, allocations: 40.19 kB / 451.2 MB, free: 96 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.2953, allocations: 43.41 kB / 451.3 MB, free: 52 kB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.2953, allocations: 0 / 451.3 MB, free: 52 kB / 350.1 MB Notification: Performance of Templates: time 0.02206/0.3174, allocations: 14.11 MB / 465.4 MB, free: 1.992 MB / 366.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 5.020648958161473]