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.001498/0.001498, allocations: 111.3 kB / 16.92 MB, free: 5.762 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.001477/0.001477, allocations: 191.3 kB / 17.85 MB, free: 5.172 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.384/1.384, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001043/0.001043, allocations: 37.91 kB / 300.6 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09805/0.09911, allocations: 49.46 MB / 350.1 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.00429/0.1034, allocations: 3.084 MB / 353.1 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001725/0.1052, allocations: 1.036 MB / 354.2 MB, free: 284 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001659/0.1054, allocations: 11.94 kB / 354.2 MB, free: 272 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000227/0.1056, allocations: 75.23 kB / 354.3 MB, free: 196 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002318/0.1059, allocations: 158.7 kB / 354.4 MB, free: 36 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005791/0.1065, allocations: 283.5 kB / 354.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006219/0.1071, allocations: 0.7882 MB / 355.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002178/0.1073, allocations: 137.2 kB / 355.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003678/0.1077, allocations: 350.9 kB / 356 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003786/0.1081, allocations: 378.7 kB / 356.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.968e-05/0.1082, allocations: 63.94 kB / 356.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001945/0.1084, allocations: 108 kB / 356.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001514/0.1085, allocations: 155.5 kB / 356.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002384/0.1088, allocations: 306.5 kB / 356.9 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005718/0.1094, allocations: 0.7051 MB / 357.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1094, allocations: 3.938 kB / 357.7 MB, free: 12.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1094, allocations: 0 / 357.7 MB, free: 12.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.285e-06/0.1094, allocations: 0 / 357.7 MB, free: 12.78 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.001524/0.1109, allocations: 0.8924 MB / 358.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.111, allocations: 8.031 kB / 358.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001168/0.1111, allocations: 60.19 kB / 358.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003812/0.1115, allocations: 359.7 kB / 359 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.316e-05/0.1115, allocations: 33.38 kB / 359 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.639e-05/0.1116, allocations: 48.28 kB / 359 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009667/0.1126, allocations: 0.6152 MB / 359.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.937e-05/0.1126, allocations: 4 kB / 359.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.784e-05/0.1127, allocations: 20 kB / 359.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.1127, allocations: 11.98 kB / 359.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001115/0.1138, allocations: 0.605 MB / 360.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002094/0.1159, allocations: 1.324 MB / 361.6 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000897/0.1168, allocations: 462.5 kB / 362.1 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005448/0.1174, allocations: 314.3 kB / 362.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.318e-05/0.1174, allocations: 4.562 kB / 362.4 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.1175, allocations: 39.12 kB / 362.4 MB, free: 7.824 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 1.944e-06/0.1175, allocations: 0 / 362.4 MB, free: 7.824 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.005867/0.1234, allocations: 2.875 MB / 365.3 MB, free: 4.805 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.1234, allocations: 59.95 kB / 365.4 MB, free: 4.734 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003019/0.1237, allocations: 329.6 kB / 365.7 MB, free: 4.402 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.961e-05/0.1238, allocations: 53.69 kB / 365.7 MB, free: 4.344 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.1239, allocations: 189.2 kB / 365.9 MB, free: 4.156 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001713/0.1241, allocations: 232.9 kB / 366.1 MB, free: 3.926 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002025/0.1243, allocations: 126.6 kB / 366.3 MB, free: 3.797 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.1244, allocations: 362.7 kB / 366.6 MB, free: 3.434 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000555/0.125, allocations: 317.8 kB / 366.9 MB, free: 3.121 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006036/0.1256, allocations: 385 kB / 367.3 MB, free: 2.738 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008924/0.1265, allocations: 0.5069 MB / 367.8 MB, free: 2.227 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.1265, allocations: 0 / 367.8 MB, free: 2.227 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001578/0.1281, allocations: 0.9233 MB / 368.7 MB, free: 1.293 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.1281, allocations: 8 kB / 368.7 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.1281, allocations: 0 / 368.7 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001183/0.1293, allocations: 0.7297 MB / 369.5 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000365/0.1297, allocations: 103.8 kB / 369.6 MB, free: 464 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1621/0.2918, allocations: 1.088 MB / 370.7 MB, free: 25.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008054/0.2926, allocations: 103.1 kB / 370.8 MB, free: 25.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.931e-05/0.2927, allocations: 26.22 kB / 370.8 MB, free: 25.26 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.0002473/0.2929, allocations: 182.9 kB / 371 MB, free: 25.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.2931, allocations: 52.97 kB / 371 MB, free: 25.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001329/0.2932, allocations: 70.86 kB / 371.1 MB, free: 25.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.665e-06/0.2932, allocations: 6.234 kB / 371.1 MB, free: 25.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.2932, allocations: 0.7812 kB / 371.1 MB, free: 25.13 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.2932, allocations: 5.078 kB / 371.1 MB, free: 25.13 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002624/0.2959, allocations: 1.567 MB / 372.7 MB, free: 24.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.2959, allocations: 5.719 kB / 372.7 MB, free: 24.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004282/0.2963, allocations: 88.64 kB / 372.8 MB, free: 24.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00118/0.2975, allocations: 0.7037 MB / 373.5 MB, free: 24.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.802e-05/0.2976, allocations: 31 kB / 373.5 MB, free: 24.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001189/0.2988, allocations: 1.059 MB / 374.6 MB, free: 23.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.2988, allocations: 3.938 kB / 374.6 MB, free: 23.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00229/0.3011, allocations: 1.306 MB / 375.9 MB, free: 23.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002557/0.3014, allocations: 188.8 kB / 376.1 MB, free: 23.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.3015, allocations: 24.42 kB / 376.1 MB, free: 23.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006303/0.3021, allocations: 101.4 kB / 376.2 MB, free: 23.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000257/0.3024, allocations: 129 kB / 376.3 MB, free: 23.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.041e-05/0.3024, allocations: 26.3 kB / 376.3 MB, free: 23.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002198/0.3027, allocations: 240 kB / 376.6 MB, free: 23.08 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3027, allocations: 0 / 376.6 MB, free: 23.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005278/0.3032, allocations: 159.3 kB / 376.7 MB, free: 23.06 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.0002269/0.3034, allocations: 156.7 kB / 376.9 MB, free: 22.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001656/0.3051, allocations: 0.8009 MB / 377.7 MB, free: 22.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.3051, allocations: 0 / 377.7 MB, free: 22.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007862/0.3059, allocations: 429.6 kB / 378.1 MB, free: 22.56 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006177/0.3065, allocations: 98.69 kB / 378.2 MB, free: 22.53 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00225/0.3088, allocations: 1.403 MB / 379.6 MB, free: 21.71 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003102/0.3091, allocations: 0.8411 MB / 380.4 MB, free: 21.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002055/0.3093, allocations: 51.7 kB / 380.5 MB, free: 21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.3094, allocations: 45.23 kB / 380.5 MB, free: 20.98 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3095, allocations: 1.312 kB / 380.5 MB, free: 20.98 MB / 302.1 MB Notification: Performance of Templates: time 0.01863/0.3281, allocations: 13.56 MB / 394.1 MB, free: 13.79 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 -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/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_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches