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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 110 kB / 17.68 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001595/0.001595, allocations: 190.9 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 222.9 MB / 242.3 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009731/0.0009732, allocations: 46.98 kB / 302 MB, free: 5.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08458/0.08557, allocations: 49.45 MB / 351.5 MB, free: 3.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004443/0.09005, allocations: 3.096 MB / 354.6 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002042/0.09212, allocations: 1.036 MB / 355.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002862/0.09242, allocations: 8 kB / 355.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002655/0.0927, allocations: 79.23 kB / 355.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003577/0.09309, allocations: 154.6 kB / 355.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006835/0.09378, allocations: 283.5 kB / 356.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000963/0.09476, allocations: 0.7998 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002798/0.09505, allocations: 133.2 kB / 357.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006022/0.09566, allocations: 347 kB / 357.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005462/0.09621, allocations: 390.6 kB / 357.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000125/0.09635, allocations: 60 kB / 357.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002368/0.09659, allocations: 108 kB / 358 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001925/0.09679, allocations: 159.5 kB / 358.1 MB, free: 13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000313/0.09711, allocations: 298.5 kB / 358.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007109/0.09783, allocations: 0.7164 MB / 359.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.09785, allocations: 4 kB / 359.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.09785, allocations: 0 / 359.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.508e-05/0.09788, allocations: 0 / 359.1 MB, free: 11.99 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002106/0.1, allocations: 0.8885 MB / 360 MB, free: 11.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.1, allocations: 8.031 kB / 360 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001529/0.1002, allocations: 64.19 kB / 360.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005786/0.1008, allocations: 347.8 kB / 360.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.767e-05/0.1008, allocations: 37.38 kB / 360.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.989e-05/0.1009, allocations: 56.2 kB / 360.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.1021, allocations: 0.6191 MB / 361.1 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.657e-05/0.1021, allocations: 4 kB / 361.1 MB, free: 9.867 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.331e-05/0.1022, allocations: 16 kB / 361.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.1022, allocations: 12 kB / 361.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001162/0.1034, allocations: 0.6012 MB / 361.8 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002204/0.1056, allocations: 1.324 MB / 363.1 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000946/0.1065, allocations: 459.1 kB / 363.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00053/0.1071, allocations: 306.4 kB / 363.8 MB, free: 7.098 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.966e-05/0.1072, allocations: 12.56 kB / 363.8 MB, free: 7.086 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.1072, allocations: 39.06 kB / 363.9 MB, free: 7.039 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 1.793e-06/0.1072, allocations: 4 kB / 363.9 MB, free: 7.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.00576/0.113, allocations: 2.867 MB / 366.8 MB, free: 4.023 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.113, allocations: 59.97 kB / 366.8 MB, free: 3.953 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003363/0.1134, allocations: 325.7 kB / 367.1 MB, free: 3.625 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.786e-05/0.1134, allocations: 49.7 kB / 367.2 MB, free: 3.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.1136, allocations: 201.2 kB / 367.4 MB, free: 3.371 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001837/0.1138, allocations: 224.9 kB / 367.6 MB, free: 3.148 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000229/0.114, allocations: 134.5 kB / 367.7 MB, free: 3.012 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1141, allocations: 354.7 kB / 368.1 MB, free: 2.656 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005935/0.1147, allocations: 321.8 kB / 368.4 MB, free: 2.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000627/0.1154, allocations: 397 kB / 368.8 MB, free: 1.945 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008992/0.1163, allocations: 0.4991 MB / 369.3 MB, free: 1.441 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1163, allocations: 0 / 369.3 MB, free: 1.441 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001661/0.118, allocations: 0.9272 MB / 370.2 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.118, allocations: 4 kB / 370.2 MB, free: 0.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.118, allocations: 0 / 370.2 MB, free: 0.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1711/0.2891, allocations: 0.727 MB / 370.9 MB, free: 25.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004761/0.2896, allocations: 103.7 kB / 371 MB, free: 25.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001431/0.291, allocations: 1.086 MB / 372.1 MB, free: 25.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007032/0.2918, allocations: 108.4 kB / 372.2 MB, free: 25.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.018e-05/0.2918, allocations: 22.73 kB / 372.3 MB, free: 25.17 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 (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.0002428/0.2921, allocations: 186.3 kB / 372.4 MB, free: 25.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.941e-05/0.2922, allocations: 51.66 kB / 372.5 MB, free: 25.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001483/0.2923, allocations: 71.48 kB / 372.6 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.999e-06/0.2924, allocations: 6.234 kB / 372.6 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.2924, allocations: 0.7188 kB / 372.6 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.938e-06/0.2924, allocations: 4.516 kB / 372.6 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002696/0.2951, allocations: 1.565 MB / 374.1 MB, free: 24.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.2951, allocations: 1.469 kB / 374.1 MB, free: 24.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004016/0.2955, allocations: 91.09 kB / 374.2 MB, free: 24.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00114/0.2967, allocations: 0.7097 MB / 374.9 MB, free: 24.42 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.807e-05/0.2967, allocations: 28.62 kB / 375 MB, free: 24.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001184/0.2979, allocations: 1.062 MB / 376 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.298, allocations: 0 / 376 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002336/0.3003, allocations: 1.315 MB / 377.3 MB, free: 23.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002745/0.3006, allocations: 186.2 kB / 377.5 MB, free: 23.06 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/0.3007, allocations: 24.25 kB / 377.5 MB, free: 23.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000549/0.3013, allocations: 100.7 kB / 377.6 MB, free: 23.04 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002829/0.3015, allocations: 124.6 kB / 377.8 MB, free: 23.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.21e-05/0.3016, allocations: 30.05 kB / 377.8 MB, free: 23.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002546/0.3019, allocations: 236.1 kB / 378 MB, free: 22.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3019, allocations: 0 / 378 MB, free: 22.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005484/0.3024, allocations: 158.8 kB / 378.2 MB, free: 22.86 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,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002332/0.3027, allocations: 153.6 kB / 378.3 MB, free: 22.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001651/0.3043, allocations: 0.7779 MB / 379.1 MB, free: 22.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3044, allocations: 1.25 kB / 379.1 MB, free: 22.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008193/0.3052, allocations: 425.8 kB / 379.5 MB, free: 22.37 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006825/0.3059, allocations: 103.1 kB / 379.6 MB, free: 22.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002643/0.3085, allocations: 1.383 MB / 381 MB, free: 21.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003533/0.3089, allocations: 0.8457 MB / 381.9 MB, free: 20.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002011/0.3091, allocations: 46.66 kB / 381.9 MB, free: 20.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.3092, allocations: 42.22 kB / 381.9 MB, free: 20.79 MB / 302.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3092, allocations: 0 / 381.9 MB, free: 20.79 MB / 302.1 MB Notification: Performance of Templates: time 0.01971/0.329, allocations: 13.57 MB / 395.5 MB, free: 13.21 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (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 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches