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.002197/0.002197, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 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.002277/0.002277, allocations: 210 kB / 24.48 MB, free: 3.938 MB / 14.72 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 1.506/1.506, allocations: 230.6 MB / 258.2 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00161/0.00161, allocations: 55.91 kB / 379 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.269, allocations: 53.36 MB / 432.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004696/0.2737, allocations: 3.003 MB / 435.3 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002249/0.276, allocations: 1.212 MB / 436.5 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001852/0.2762, allocations: 11.94 kB / 436.5 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003275/0.2765, allocations: 91.11 kB / 436.6 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004639/0.277, allocations: 226.4 kB / 436.9 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005878/0.2776, allocations: 283.5 kB / 437.1 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000889/0.2784, allocations: 0.8464 MB / 438 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002311/0.2787, allocations: 105.1 kB / 438.1 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005657/0.2792, allocations: 394.8 kB / 438.5 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005131/0.2798, allocations: 374.6 kB / 438.8 MB, free: 192 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001134/0.2799, allocations: 64 kB / 438.9 MB, free: 128 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002622/0.2801, allocations: 127.9 kB / 439 MB, free: 0 / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002316/0.2804, allocations: 179.6 kB / 439.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002786/0.2806, allocations: 270.8 kB / 439.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009182/0.2816, allocations: 0.8091 MB / 440.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.2816, allocations: 0 / 440.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2816, allocations: 0 / 440.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.2816, allocations: 0 / 440.3 MB, free: 14.75 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001849/0.2834, allocations: 0.8902 MB / 441.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.2835, allocations: 11.97 kB / 441.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003372/0.2838, allocations: 84.55 kB / 441.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007115/0.2845, allocations: 328.5 kB / 441.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.793e-05/0.2846, allocations: 37.38 kB / 441.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.2847, allocations: 52.33 kB / 441.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001131/0.2858, allocations: 0.619 MB / 442.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.718e-05/0.2858, allocations: 4 kB / 442.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.531e-05/0.2859, allocations: 20 kB / 442.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.2859, allocations: 12 kB / 442.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001223/0.2871, allocations: 0.5777 MB / 442.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00231/0.2894, allocations: 1.126 MB / 444 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001109/0.2905, allocations: 474.8 kB / 444.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006003/0.2911, allocations: 298.7 kB / 444.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.113e-05/0.2912, allocations: 8.656 kB / 444.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.471e-05/0.2912, allocations: 39.22 kB / 444.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.795e-06/0.2912, allocations: 0 / 444.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.006672/0.2979, allocations: 2.52 MB / 447.3 MB, free: 7.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/0.2979, allocations: 56.06 kB / 447.4 MB, free: 7.434 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004338/0.2984, allocations: 357.6 kB / 447.8 MB, free: 7.082 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.391e-05/0.2985, allocations: 53.7 kB / 447.8 MB, free: 7.023 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.2986, allocations: 197.6 kB / 448 MB, free: 6.824 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002269/0.2988, allocations: 261.9 kB / 448.3 MB, free: 6.566 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002283/0.2991, allocations: 130.6 kB / 448.4 MB, free: 6.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.2992, allocations: 358.8 kB / 448.7 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006595/0.2999, allocations: 309.9 kB / 449 MB, free: 5.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006934/0.3006, allocations: 369.4 kB / 449.4 MB, free: 5.402 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/0.3016, allocations: 0.4932 MB / 449.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3016, allocations: 0 / 449.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002057/0.3037, allocations: 0.9352 MB / 450.8 MB, free: 3.957 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.3037, allocations: 7.938 kB / 450.8 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.3037, allocations: 4 kB / 450.8 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001357/0.3051, allocations: 0.5668 MB / 451.4 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003771/0.3054, allocations: 99.83 kB / 451.5 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001654/0.3071, allocations: 1.105 MB / 452.6 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007229/0.3078, allocations: 111.8 kB / 452.7 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.461e-05/0.3079, allocations: 24 kB / 452.7 MB, free: 2.012 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 (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.0002978/0.3082, allocations: 190.2 kB / 452.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.3083, allocations: 63.56 kB / 453 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001644/0.3085, allocations: 76.98 kB / 453.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/0.3085, allocations: 8 kB / 453.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.3085, allocations: 7.984 kB / 453.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.3085, allocations: 0 / 453.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002883/0.3114, allocations: 1.4 MB / 454.5 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.3114, allocations: 0 / 454.5 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004156/0.3118, allocations: 91.89 kB / 454.6 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001237/0.313, allocations: 0.5318 MB / 455.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.074e-05/0.3131, allocations: 27.97 kB / 455.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001539/0.3146, allocations: 1.073 MB / 456.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3146, allocations: 0 / 456.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002637/0.3173, allocations: 1.312 MB / 457.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003362/0.3176, allocations: 119.6 kB / 457.6 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001259/0.3177, allocations: 31.98 kB / 457.7 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006381/0.3184, allocations: 95.88 kB / 457.7 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000294/0.3187, allocations: 136.5 kB / 457.9 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.306e-05/0.3187, allocations: 35.95 kB / 457.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002921/0.319, allocations: 251.2 kB / 458.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.319, allocations: 0 / 458.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005771/0.3196, allocations: 160 kB / 458.3 MB, free: 12.33 MB / 366.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,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001505/0.3211, allocations: 417.7 kB / 458.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001738/0.3228, allocations: 0.7192 MB / 459.4 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3228, allocations: 8 kB / 459.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008823/0.3237, allocations: 416.6 kB / 459.9 MB, free: 10.94 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007262/0.3245, allocations: 119 kB / 460 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002716/0.3272, allocations: 1.463 MB / 461.4 MB, free: 9.328 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000264/0.3274, allocations: 275.3 kB / 461.7 MB, free: 9.027 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001614/0.3276, allocations: 51.42 kB / 461.8 MB, free: 8.977 MB / 366.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3276, allocations: 0 / 461.8 MB, free: 8.977 MB / 366.1 MB Notification: Performance of Templates: time 0.01347/0.3411, allocations: 9.487 MB / 471.2 MB, free: 15.51 MB / 382.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 8.64003180898726]