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.001462/0.001462, allocations: 89.75 kB / 16.65 MB, free: 6.59 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.001648/0.001648, allocations: 182.1 kB / 17.56 MB, free: 6.203 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.359/1.359, allocations: 223.3 MB / 241.6 MB, free: 104 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002511/0.000251, allocations: 11.94 kB / 301.4 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0939/0.09417, allocations: 50.41 MB / 351.8 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003383/0.09759, allocations: 2.755 MB / 354.6 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001895/0.0995, allocations: 1.028 MB / 355.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003132/0.09984, allocations: 11.94 kB / 355.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002396/0.1001, allocations: 59.61 kB / 355.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003701/0.1005, allocations: 130.9 kB / 355.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006236/0.1011, allocations: 243.7 kB / 356 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007926/0.1019, allocations: 0.753 MB / 356.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002425/0.1022, allocations: 116.8 kB / 356.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006059/0.1028, allocations: 310.8 kB / 357.2 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005077/0.1033, allocations: 358.6 kB / 357.6 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.277e-05/0.1034, allocations: 32 kB / 357.6 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002029/0.1036, allocations: 75.95 kB / 357.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001464/0.1038, allocations: 123.5 kB / 357.8 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002775/0.1041, allocations: 292.2 kB / 358.1 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006558/0.1047, allocations: 0.6659 MB / 358.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1047, allocations: 3.938 kB / 358.8 MB, free: 12.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1047, allocations: 0 / 358.8 MB, free: 12.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.634e-05/0.1048, allocations: 0 / 358.8 MB, free: 12.71 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.001654/0.1064, allocations: 0.8186 MB / 359.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.1065, allocations: 12.03 kB / 359.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.1066, allocations: 60.19 kB / 359.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004496/0.1071, allocations: 355.7 kB / 360 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.517e-05/0.1071, allocations: 37.38 kB / 360 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.1072, allocations: 44.36 kB / 360.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.1084, allocations: 0.6269 MB / 360.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.42e-05/0.1085, allocations: 3.906 kB / 360.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.041e-05/0.1085, allocations: 20 kB / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.1085, allocations: 15.94 kB / 360.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00123/0.1098, allocations: 0.6168 MB / 361.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002336/0.1121, allocations: 1.367 MB / 362.7 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009935/0.1131, allocations: 474.2 kB / 363.2 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000558/0.1137, allocations: 318.4 kB / 363.5 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.291e-05/0.1138, allocations: 8.562 kB / 363.5 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.426e-05/0.1138, allocations: 35.12 kB / 363.5 MB, free: 7.746 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 1.763e-06/0.1138, allocations: 0 / 363.5 MB, free: 7.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.007281/0.1211, allocations: 3.043 MB / 366.6 MB, free: 4.559 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.1212, allocations: 55.97 kB / 366.6 MB, free: 4.492 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003536/0.1215, allocations: 337.6 kB / 367 MB, free: 4.152 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.104e-05/0.1216, allocations: 49.7 kB / 367 MB, free: 4.098 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.1217, allocations: 193.2 kB / 367.2 MB, free: 3.906 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001962/0.1219, allocations: 228.9 kB / 367.4 MB, free: 3.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/0.1221, allocations: 65.67 kB / 367.5 MB, free: 3.609 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.1222, allocations: 358.7 kB / 367.8 MB, free: 3.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000637/0.1229, allocations: 325.8 kB / 368.2 MB, free: 2.934 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006775/0.1236, allocations: 397 kB / 368.5 MB, free: 2.539 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009756/0.1245, allocations: 0.5148 MB / 369.1 MB, free: 2.016 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.1246, allocations: 0 / 369.1 MB, free: 2.016 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001755/0.1263, allocations: 0.9428 MB / 370 MB, free: 1.062 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.1263, allocations: 7.984 kB / 370 MB, free: 1.055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.1264, allocations: 0 / 370 MB, free: 1.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/0.1276, allocations: 0.7299 MB / 370.7 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003721/0.1279, allocations: 107.8 kB / 370.8 MB, free: 224 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1742/0.3021, allocations: 1.088 MB / 371.9 MB, free: 24.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000915/0.3031, allocations: 148.8 kB / 372.1 MB, free: 24.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.419e-05/0.3032, allocations: 23.55 kB / 372.1 MB, free: 24.39 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.0002823/0.3034, allocations: 189.3 kB / 372.3 MB, free: 24.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.3036, allocations: 45.22 kB / 372.3 MB, free: 24.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001647/0.3037, allocations: 70.89 kB / 372.4 MB, free: 24.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.3038, allocations: 11.69 kB / 372.4 MB, free: 24.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/0.3038, allocations: 0.8125 kB / 372.4 MB, free: 24.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.3038, allocations: 4.453 kB / 372.4 MB, free: 24.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002919/0.3067, allocations: 1.584 MB / 374 MB, free: 23.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.3067, allocations: 3.438 kB / 374 MB, free: 23.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004268/0.3072, allocations: 92.84 kB / 374.1 MB, free: 23.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001199/0.3084, allocations: 0.7093 MB / 374.8 MB, free: 23.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.052e-05/0.3084, allocations: 26.08 kB / 374.8 MB, free: 23.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001168/0.3096, allocations: 1.067 MB / 375.9 MB, free: 23.33 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3096, allocations: 0.7969 kB / 375.9 MB, free: 23.33 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002331/0.312, allocations: 1.33 MB / 377.2 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002473/0.3122, allocations: 189.5 kB / 377.4 MB, free: 22.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.3123, allocations: 24.47 kB / 377.4 MB, free: 22.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006888/0.313, allocations: 147.5 kB / 377.6 MB, free: 22.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000274/0.3133, allocations: 119.4 kB / 377.7 MB, free: 22.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.907e-05/0.3134, allocations: 27.73 kB / 377.7 MB, free: 22.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002418/0.3136, allocations: 236.4 kB / 378 MB, free: 22.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3136, allocations: 0 / 378 MB, free: 22.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005368/0.3142, allocations: 157.7 kB / 378.1 MB, free: 22.48 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.0002357/0.3144, allocations: 153.4 kB / 378.3 MB, free: 22.37 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.3161, allocations: 0.7916 MB / 379 MB, free: 22.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.3161, allocations: 5.156 kB / 379.1 MB, free: 22.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000796/0.3169, allocations: 444.6 kB / 379.5 MB, free: 21.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006692/0.3175, allocations: 84.44 kB / 379.6 MB, free: 21.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002498/0.3201, allocations: 1.726 MB / 381.3 MB, free: 20.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003103/0.3204, allocations: 0.8412 MB / 382.1 MB, free: 20.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000202/0.3206, allocations: 50.91 kB / 382.2 MB, free: 20.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.3207, allocations: 38.81 kB / 382.2 MB, free: 20.12 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3207, allocations: 1.156 kB / 382.2 MB, free: 20.12 MB / 302.1 MB Notification: Performance of Templates: time 0.0175/0.3382, allocations: 12.59 MB / 394.8 MB, free: 13.5 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