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.001322/0.001322, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002355/0.002355, allocations: 203.7 kB / 23.73 MB, free: 4.379 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.492/1.492, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.001628/0.001628, allocations: 59.92 kB / 378.2 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2608, allocations: 53.35 MB / 431.6 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005243/0.266, allocations: 3.007 MB / 434.6 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002401/0.2684, allocations: 1.208 MB / 435.8 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001743/0.2686, allocations: 15.88 kB / 435.8 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003229/0.2689, allocations: 91.16 kB / 435.9 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004675/0.2694, allocations: 230.4 kB / 436.1 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005488/0.2699, allocations: 275.5 kB / 436.4 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008986/0.2708, allocations: 0.8504 MB / 437.2 MB, free: 1.055 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002345/0.271, allocations: 104.7 kB / 437.3 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005495/0.2716, allocations: 398.8 kB / 437.7 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005746/0.2722, allocations: 422.5 kB / 438.1 MB, free: 148 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.2723, allocations: 64 kB / 438.2 MB, free: 84 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002428/0.2725, allocations: 120 kB / 438.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002339/0.2728, allocations: 179.4 kB / 438.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003097/0.2731, allocations: 274.8 kB / 438.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000947/0.274, allocations: 0.7974 MB / 439.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.274, allocations: 3.984 kB / 439.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.274, allocations: 0 / 439.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.236e-06/0.274, allocations: 0 / 439.6 MB, free: 14.72 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.001994/0.276, allocations: 0.8941 MB / 440.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.2761, allocations: 12.03 kB / 440.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003471/0.2764, allocations: 84.53 kB / 440.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006651/0.2771, allocations: 332.4 kB / 440.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.279e-05/0.2771, allocations: 37.38 kB / 440.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.2772, allocations: 52.33 kB / 441 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.2785, allocations: 0.6113 MB / 441.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.517e-05/0.2785, allocations: 4 kB / 441.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.135e-05/0.2786, allocations: 27.98 kB / 441.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.414e-05/0.2786, allocations: 11.98 kB / 441.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001395/0.28, allocations: 0.5855 MB / 442.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002472/0.2825, allocations: 1.111 MB / 443.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.2837, allocations: 478.8 kB / 443.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000656/0.2843, allocations: 302.7 kB / 444.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.515e-05/0.2844, allocations: 8.656 kB / 444.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.626e-05/0.2844, allocations: 39.16 kB / 444.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.024e-06/0.2844, allocations: 0 / 444.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.007216/0.2916, allocations: 2.516 MB / 446.6 MB, free: 7.469 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.492e-05/0.2917, allocations: 60.06 kB / 446.7 MB, free: 7.398 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004836/0.2922, allocations: 357.6 kB / 447 MB, free: 7.043 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.911e-05/0.2923, allocations: 53.69 kB / 447.1 MB, free: 6.984 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.2924, allocations: 201.6 kB / 447.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002456/0.2927, allocations: 257.9 kB / 447.5 MB, free: 6.527 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002643/0.2929, allocations: 134.6 kB / 447.7 MB, free: 6.387 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000192/0.2931, allocations: 358.8 kB / 448 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000685/0.2938, allocations: 309.8 kB / 448.3 MB, free: 5.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00077/0.2946, allocations: 373.4 kB / 448.7 MB, free: 5.359 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001205/0.2958, allocations: 493.1 kB / 449.2 MB, free: 4.867 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2958, allocations: 0 / 449.2 MB, free: 4.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002141/0.2979, allocations: 0.9314 MB / 450.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.2979, allocations: 4 kB / 450.1 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.298, allocations: 4 kB / 450.1 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001454/0.2994, allocations: 0.563 MB / 450.7 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004144/0.2998, allocations: 103.8 kB / 450.8 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00169/0.3015, allocations: 1.101 MB / 451.9 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007553/0.3023, allocations: 123.8 kB / 452 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.317e-05/0.3023, allocations: 20 kB / 452 MB, free: 1.98 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.0003619/0.3027, allocations: 192 kB / 452.2 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001415/0.3028, allocations: 63.56 kB / 452.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001967/0.303, allocations: 72.98 kB / 452.3 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.303, allocations: 8 kB / 452.4 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.3031, allocations: 4 kB / 452.4 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/0.3031, allocations: 3.984 kB / 452.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003051/0.3061, allocations: 1.4 MB / 453.8 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.3061, allocations: 0 / 453.8 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004594/0.3066, allocations: 95.88 kB / 453.9 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001379/0.308, allocations: 0.5278 MB / 454.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.721e-05/0.308, allocations: 31.95 kB / 454.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001689/0.3097, allocations: 1.074 MB / 455.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3097, allocations: 4.031 kB / 455.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002892/0.3126, allocations: 1.304 MB / 456.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003512/0.313, allocations: 119.5 kB / 456.9 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001443/0.3131, allocations: 28 kB / 456.9 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007086/0.3138, allocations: 107.8 kB / 457 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000313/0.3141, allocations: 136.4 kB / 457.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.179e-05/0.3142, allocations: 27.97 kB / 457.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003109/0.3145, allocations: 247.2 kB / 457.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3145, allocations: 0 / 457.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000608/0.3151, allocations: 163.9 kB / 457.6 MB, free: 12.3 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.00157/0.3167, allocations: 416.4 kB / 458 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001894/0.3186, allocations: 0.7231 MB / 458.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3186, allocations: 0 / 458.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/0.3196, allocations: 424.6 kB / 459.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008443/0.3205, allocations: 119 kB / 459.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002932/0.3234, allocations: 1.427 MB / 460.7 MB, free: 9.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003062/0.3237, allocations: 275.3 kB / 461 MB, free: 9.039 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002255/0.3239, allocations: 52.38 kB / 461 MB, free: 8.988 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.3241, allocations: 47.42 kB / 461.1 MB, free: 8.941 MB / 366.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3241, allocations: 0 / 461.1 MB, free: 8.941 MB / 366.1 MB Notification: Performance of Templates: time 0.02202/0.3461, allocations: 12.48 MB / 473.5 MB, free: 12.57 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/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: 4.9928160780109465]