Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,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_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,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_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001492/0.001492, allocations: 117.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001841/0.001841, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 55.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2761, allocations: 50.55 MB / 409.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004294/0.2805, allocations: 3.251 MB / 412.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.2824, allocations: 1.24 MB / 413.7 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001429/0.2826, allocations: 11.88 kB / 413.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002377/0.2828, allocations: 95.11 kB / 413.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003819/0.2832, allocations: 222.4 kB / 414.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004286/0.2836, allocations: 271.5 kB / 414.3 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006749/0.2843, allocations: 0.8544 MB / 415.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001868/0.2845, allocations: 141.1 kB / 415.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004839/0.285, allocations: 386.8 kB / 415.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004027/0.2854, allocations: 398.6 kB / 416.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.938e-05/0.2855, allocations: 64 kB / 416.1 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002092/0.2857, allocations: 124 kB / 416.3 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001786/0.2859, allocations: 183.4 kB / 416.4 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002774/0.2862, allocations: 318.5 kB / 416.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007767/0.287, allocations: 0.7955 MB / 417.5 MB, free: 9.227 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.287, allocations: 0 / 417.5 MB, free: 9.227 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.287, allocations: 0 / 417.5 MB, free: 9.227 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.287, allocations: 4 kB / 417.6 MB, free: 9.223 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001591/0.2886, allocations: 0.9467 MB / 418.5 MB, free: 8.227 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.669e-05/0.2887, allocations: 12.03 kB / 418.5 MB, free: 8.215 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002884/0.289, allocations: 76.17 kB / 418.6 MB, free: 8.141 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004912/0.2895, allocations: 401.9 kB / 419 MB, free: 7.707 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.193e-05/0.2895, allocations: 33.38 kB / 419 MB, free: 7.676 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.75e-05/0.2896, allocations: 52.38 kB / 419.1 MB, free: 7.625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/0.2907, allocations: 0.6152 MB / 419.7 MB, free: 6.996 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/0.2907, allocations: 11.84 kB / 419.7 MB, free: 6.984 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.515e-05/0.2908, allocations: 20 kB / 419.7 MB, free: 6.965 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.2908, allocations: 8 kB / 419.7 MB, free: 6.957 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001251/0.292, allocations: 0.5894 MB / 420.3 MB, free: 6.367 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002231/0.2943, allocations: 1.343 MB / 421.6 MB, free: 4.969 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.2953, allocations: 0.5051 MB / 422.2 MB, free: 4.453 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005704/0.2959, allocations: 322.4 kB / 422.5 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.953e-05/0.2959, allocations: 8.547 kB / 422.5 MB, free: 4.129 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.296, allocations: 43.11 kB / 422.5 MB, free: 4.074 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 1.773e-06/0.296, allocations: 0 / 422.5 MB, free: 4.074 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.006269/0.3023, allocations: 2.901 MB / 425.4 MB, free: 1.039 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.741e-05/0.3023, allocations: 56.06 kB / 425.5 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003653/0.3027, allocations: 357.7 kB / 425.8 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.406e-05/0.3028, allocations: 49.69 kB / 425.9 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.3029, allocations: 201.3 kB / 426.1 MB, free: 368 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001853/0.3031, allocations: 248.6 kB / 426.3 MB, free: 116 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002208/0.3033, allocations: 134.6 kB / 426.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.3034, allocations: 362.8 kB / 426.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005952/0.304, allocations: 305.9 kB / 427.1 MB, free: 15.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006237/0.3047, allocations: 373.3 kB / 427.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001041/0.3057, allocations: 0.4889 MB / 427.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3057, allocations: 0 / 427.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001896/0.3076, allocations: 0.9545 MB / 428.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.3077, allocations: 7.938 kB / 428.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.3077, allocations: 0 / 428.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001222/0.3089, allocations: 0.5707 MB / 429.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003313/0.3093, allocations: 99.88 kB / 429.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001428/0.3107, allocations: 1.096 MB / 430.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006029/0.3113, allocations: 119.8 kB / 430.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.69e-05/0.3114, allocations: 20 kB / 430.8 MB, free: 11.54 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.0002277/0.3116, allocations: 195.8 kB / 431 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000113/0.3117, allocations: 59.34 kB / 431.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000148/0.3119, allocations: 73.09 kB / 431.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.3119, allocations: 8 kB / 431.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3119, allocations: 0 / 431.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.3119, allocations: 3.984 kB / 431.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002671/0.3146, allocations: 1.63 MB / 432.8 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.3146, allocations: 0 / 432.8 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003944/0.315, allocations: 95.81 kB / 432.9 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00112/0.3161, allocations: 0.5318 MB / 433.4 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.435e-05/0.3162, allocations: 27.95 kB / 433.4 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001519/0.3177, allocations: 1.074 MB / 434.5 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3177, allocations: 0 / 434.5 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002617/0.3204, allocations: 1.316 MB / 435.8 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002454/0.3206, allocations: 204.3 kB / 436 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/0.3207, allocations: 24 kB / 436 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000574/0.3213, allocations: 95.88 kB / 436.1 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000282/0.3216, allocations: 132.4 kB / 436.3 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.966e-05/0.3217, allocations: 31.97 kB / 436.3 MB, free: 5.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002747/0.322, allocations: 259.1 kB / 436.5 MB, free: 5.656 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.593e-06/0.322, allocations: 4 kB / 436.5 MB, free: 5.652 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006042/0.3226, allocations: 163.9 kB / 436.7 MB, free: 5.492 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,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008302/0.3234, allocations: 390.5 kB / 437.1 MB, free: 5.215 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001639/0.3251, allocations: 0.7739 MB / 437.9 MB, free: 4.445 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3251, allocations: 4 kB / 437.9 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008641/0.326, allocations: 436.6 kB / 438.3 MB, free: 4.016 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006538/0.3266, allocations: 108.4 kB / 438.4 MB, free: 3.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002551/0.3292, allocations: 1.421 MB / 439.8 MB, free: 2.461 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004774/0.3297, allocations: 0.8635 MB / 440.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001696/0.3299, allocations: 52.41 kB / 440.7 MB, free: 1.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001305/0.33, allocations: 47.41 kB / 440.8 MB, free: 1.473 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.33, allocations: 0 / 440.8 MB, free: 1.473 MB / 350.1 MB Notification: Performance of Templates: time 0.02041/0.3504, allocations: 13.79 MB / 454.6 MB, free: 3.758 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches