Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001676/0.001675, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002045/0.002045, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.445/1.445, allocations: 227.7 MB / 247.7 MB, free: 10.29 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002008, allocations: 64.52 kB / 307.9 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1144, allocations: 50.54 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005057/0.1195, allocations: 3.248 MB / 361.7 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002319/0.1218, allocations: 1.251 MB / 362.9 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002395/0.1221, allocations: 11.94 kB / 362.9 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003601/0.1225, allocations: 91.16 kB / 363 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004948/0.123, allocations: 218.4 kB / 363.2 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007165/0.1237, allocations: 271.5 kB / 363.5 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009551/0.1247, allocations: 0.8466 MB / 364.3 MB, free: 7.996 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002591/0.125, allocations: 129.8 kB / 364.5 MB, free: 7.871 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005587/0.1256, allocations: 382.9 kB / 364.8 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005186/0.1261, allocations: 414.5 kB / 365.3 MB, free: 7.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001134/0.1262, allocations: 64 kB / 365.3 MB, free: 7.027 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002671/0.1265, allocations: 120 kB / 365.4 MB, free: 6.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002308/0.1267, allocations: 175.4 kB / 365.6 MB, free: 6.738 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003341/0.1271, allocations: 322.5 kB / 365.9 MB, free: 6.422 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000878/0.1279, allocations: 0.7867 MB / 366.7 MB, free: 5.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.128, allocations: 0 / 366.7 MB, free: 5.633 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.128, allocations: 4 kB / 366.7 MB, free: 5.629 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.728e-06/0.128, allocations: 0 / 366.7 MB, free: 5.629 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.001944/0.1299, allocations: 0.9469 MB / 367.7 MB, free: 4.629 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.13, allocations: 8.031 kB / 367.7 MB, free: 4.621 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000347/0.1303, allocations: 88.09 kB / 367.7 MB, free: 4.535 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005489/0.1309, allocations: 382 kB / 368.1 MB, free: 4.125 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.264e-05/0.131, allocations: 37.38 kB / 368.2 MB, free: 4.086 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.1311, allocations: 48.28 kB / 368.2 MB, free: 4.039 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001165/0.1322, allocations: 0.6268 MB / 368.8 MB, free: 3.398 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.229e-05/0.1323, allocations: 7.938 kB / 368.8 MB, free: 3.391 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.918e-05/0.1323, allocations: 16 kB / 368.9 MB, free: 3.375 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/0.1324, allocations: 12 kB / 368.9 MB, free: 3.363 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001296/0.1337, allocations: 0.5816 MB / 369.4 MB, free: 2.781 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002561/0.1362, allocations: 1.355 MB / 370.8 MB, free: 1.371 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.1374, allocations: 0.5065 MB / 371.3 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006506/0.1381, allocations: 310.4 kB / 371.6 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.529e-05/0.1381, allocations: 16.53 kB / 371.6 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.1382, allocations: 39.12 kB / 371.7 MB, free: 496 kB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 2.415e-06/0.1382, allocations: 0 / 371.7 MB, free: 496 kB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.1798/0.318, allocations: 2.895 MB / 374.6 MB, free: 19.31 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.318, allocations: 65.94 kB / 374.6 MB, free: 19.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004801/0.3185, allocations: 365 kB / 375 MB, free: 19.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.052e-05/0.3186, allocations: 52.38 kB / 375 MB, free: 19.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.3187, allocations: 195.5 kB / 375.2 MB, free: 18.87 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001855/0.3189, allocations: 252.5 kB / 375.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002347/0.3192, allocations: 131.7 kB / 375.6 MB, free: 18.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.647e-05/0.3193, allocations: 361.5 kB / 376 MB, free: 18.28 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006985/0.32, allocations: 310 kB / 376.3 MB, free: 18.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006707/0.3207, allocations: 373.9 kB / 376.6 MB, free: 18.01 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009797/0.3216, allocations: 492.5 kB / 377.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3217, allocations: 1.375 kB / 377.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002016/0.3237, allocations: 0.9438 MB / 378 MB, free: 17.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.3237, allocations: 5.703 kB / 378.1 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.3238, allocations: 1.281 kB / 378.1 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001466/0.3252, allocations: 0.574 MB / 378.6 MB, free: 17.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003898/0.3256, allocations: 92.64 kB / 378.7 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001371/0.327, allocations: 1.114 MB / 379.8 MB, free: 16.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007876/0.3278, allocations: 104.5 kB / 379.9 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-05/0.3279, allocations: 28.05 kB / 380 MB, free: 16.4 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.0002763/0.3282, allocations: 183.6 kB / 380.1 MB, free: 16.24 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000128/0.3283, allocations: 50.66 kB / 380.2 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001465/0.3284, allocations: 75.81 kB / 380.3 MB, free: 16.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.3285, allocations: 11.22 kB / 380.3 MB, free: 16.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/0.3285, allocations: 8.766 kB / 380.3 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.3285, allocations: 3.094 kB / 380.3 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002777/0.3313, allocations: 1.628 MB / 381.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.3313, allocations: 0.5156 kB / 381.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004318/0.3317, allocations: 94.22 kB / 382 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00126/0.333, allocations: 0.5356 MB / 382.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.359e-05/0.3331, allocations: 33.28 kB / 382.6 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001359/0.3345, allocations: 1.074 MB / 383.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.3345, allocations: 2.031 kB / 383.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002601/0.3371, allocations: 1.318 MB / 385 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002989/0.3374, allocations: 195.5 kB / 385.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001276/0.3375, allocations: 25.8 kB / 385.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007029/0.3382, allocations: 103.8 kB / 385.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003258/0.3386, allocations: 128.5 kB / 385.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.369e-05/0.3386, allocations: 32.09 kB / 385.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003048/0.339, allocations: 255.3 kB / 385.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.339, allocations: 3.5 kB / 385.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006268/0.3396, allocations: 160.2 kB / 385.9 MB, free: 13.42 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.001321/0.3409, allocations: 386.5 kB / 386.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002011/0.3429, allocations: 0.8105 MB / 387 MB, free: 12.97 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.343, allocations: 0 / 387 MB, free: 12.97 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009274/0.3439, allocations: 441.8 kB / 387.5 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008165/0.3447, allocations: 124.5 kB / 387.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002631/0.3474, allocations: 1.462 MB / 389.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003154/0.3477, allocations: 0.8615 MB / 389.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001839/0.3479, allocations: 54.23 kB / 390 MB, free: 11.12 MB / 302.1 MB Notification: Performance of SimCode: time 1.442e-06/0.3479, allocations: 1.75 kB / 390 MB, free: 11.12 MB / 302.1 MB Notification: Performance of Templates: time 0.01311/0.361, allocations: 9.239 MB / 399.2 MB, free: 6.043 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches