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.001125/0.001125, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00115/0.001151, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 246.9 MB, free: 9.043 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 63.86 kB / 306.9 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09913/0.1004, allocations: 50.53 MB / 357.4 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004974/0.1054, allocations: 3.279 MB / 360.7 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002516/0.108, allocations: 1.24 MB / 361.9 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004365/0.1085, allocations: 7.938 kB / 362 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004349/0.109, allocations: 75.41 kB / 362 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006841/0.1097, allocations: 194.8 kB / 362.2 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006197/0.1103, allocations: 243.7 kB / 362.5 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009503/0.1113, allocations: 0.7959 MB / 363.3 MB, free: 8.453 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002568/0.1116, allocations: 124.8 kB / 363.4 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000655/0.1122, allocations: 346.7 kB / 363.7 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005732/0.1128, allocations: 390.6 kB / 364.1 MB, free: 7.605 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001491/0.113, allocations: 39.94 kB / 364.1 MB, free: 7.566 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003104/0.1133, allocations: 99.91 kB / 364.2 MB, free: 7.469 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002294/0.1135, allocations: 147.5 kB / 364.4 MB, free: 7.324 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003635/0.1139, allocations: 298.4 kB / 364.7 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006143/0.1145, allocations: 0.5731 MB / 365.2 MB, free: 6.457 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1145, allocations: 0 / 365.2 MB, free: 6.457 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.1146, allocations: 0 / 365.2 MB, free: 6.457 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.263e-05/0.1146, allocations: 0 / 365.2 MB, free: 6.457 MB / 302.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.002075/0.1167, allocations: 0.943 MB / 366.2 MB, free: 5.465 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.1167, allocations: 8.031 kB / 366.2 MB, free: 5.457 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003923/0.1171, allocations: 88.16 kB / 366.3 MB, free: 5.371 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005622/0.1177, allocations: 386 kB / 366.7 MB, free: 4.953 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.053e-05/0.1177, allocations: 37.38 kB / 366.7 MB, free: 4.918 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.1179, allocations: 52.28 kB / 366.7 MB, free: 4.867 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/0.1191, allocations: 0.623 MB / 367.4 MB, free: 4.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.991e-05/0.1191, allocations: 7.938 kB / 367.4 MB, free: 4.223 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.132e-05/0.1192, allocations: 16 kB / 367.4 MB, free: 4.207 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.1192, allocations: 8 kB / 367.4 MB, free: 4.199 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001302/0.1205, allocations: 0.5855 MB / 368 MB, free: 3.613 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002567/0.1231, allocations: 1.355 MB / 369.3 MB, free: 2.199 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.1243, allocations: 0.498 MB / 369.8 MB, free: 1.691 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006439/0.1249, allocations: 314.4 kB / 370.1 MB, free: 1.383 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.823e-05/0.125, allocations: 12.53 kB / 370.2 MB, free: 1.371 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.146e-05/0.125, allocations: 43.12 kB / 370.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 5.31e-06/0.1251, allocations: 0 / 370.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.1852/0.3103, allocations: 2.897 MB / 373.1 MB, free: 19.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.464e-05/0.3104, allocations: 59.78 kB / 373.2 MB, free: 19.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004682/0.3108, allocations: 360.1 kB / 373.5 MB, free: 19.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.542e-05/0.3109, allocations: 52.03 kB / 373.6 MB, free: 19.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.311, allocations: 201.3 kB / 373.8 MB, free: 19.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001836/0.3112, allocations: 248.9 kB / 374 MB, free: 19.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002348/0.3115, allocations: 134 kB / 374.1 MB, free: 19.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.675e-05/0.3116, allocations: 358.2 kB / 374.5 MB, free: 18.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006445/0.3122, allocations: 307.9 kB / 374.8 MB, free: 18.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006758/0.3129, allocations: 373.7 kB / 375.1 MB, free: 18.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/0.314, allocations: 0.4896 MB / 375.6 MB, free: 18.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.314, allocations: 0.6562 kB / 375.6 MB, free: 18.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001988/0.316, allocations: 0.9363 MB / 376.6 MB, free: 17.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/0.316, allocations: 9.25 kB / 376.6 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.316, allocations: 5.031 kB / 376.6 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001429/0.3175, allocations: 0.5695 MB / 377.2 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000389/0.3179, allocations: 94 kB / 377.2 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00156/0.3195, allocations: 1.108 MB / 378.4 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007607/0.3202, allocations: 105.9 kB / 378.5 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.197e-05/0.3203, allocations: 31.53 kB / 378.5 MB, free: 17.01 MB / 302.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.000315/0.3206, allocations: 195.2 kB / 378.7 MB, free: 16.85 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.3208, allocations: 52.69 kB / 378.7 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000151/0.3209, allocations: 84.77 kB / 378.8 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.3209, allocations: 8.562 kB / 378.8 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.32e-05/0.321, allocations: 1.672 kB / 378.8 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.321, allocations: 3.703 kB / 378.8 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002885/0.3239, allocations: 1.636 MB / 380.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.3239, allocations: 0 / 380.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004248/0.3243, allocations: 89.52 kB / 380.5 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001203/0.3255, allocations: 0.5357 MB / 381.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.862e-05/0.3256, allocations: 29.27 kB / 381.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001387/0.327, allocations: 1.067 MB / 382.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.327, allocations: 2.062 kB / 382.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002654/0.3297, allocations: 1.314 MB / 383.5 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003272/0.33, allocations: 194.5 kB / 383.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001548/0.3302, allocations: 27.45 kB / 383.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006958/0.3309, allocations: 108.7 kB / 383.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003394/0.3313, allocations: 130.3 kB / 383.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-05/0.3313, allocations: 32.34 kB / 384 MB, free: 14.19 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003122/0.3317, allocations: 257.7 kB / 384.2 MB, free: 14.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.3317, allocations: 0 / 384.2 MB, free: 14.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007187/0.3324, allocations: 157.7 kB / 384.4 MB, free: 14.04 MB / 302.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.0009734/0.3334, allocations: 401.2 kB / 384.8 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001938/0.3353, allocations: 0.763 MB / 385.5 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.175e-06/0.3354, allocations: 3.938 kB / 385.5 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000983/0.3363, allocations: 438.8 kB / 386 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008725/0.3372, allocations: 98.52 kB / 386.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002741/0.34, allocations: 1.671 MB / 387.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003765/0.3404, allocations: 0.8649 MB / 388.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000184/0.3406, allocations: 46.5 kB / 388.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of SimCode: time 6.12e-07/0.3406, allocations: 0 / 388.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of Templates: time 0.01489/0.3555, allocations: 9.239 MB / 397.9 MB, free: 7.004 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches