Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001396/0.001396, allocations: 110.2 kB / 18.25 MB, free: 4.898 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.001423/0.001424, allocations: 195.3 kB / 19.18 MB, free: 3.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.409/1.409, allocations: 205.1 MB / 225.1 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001399/0.0014, allocations: 47.92 kB / 281.3 MB, free: 3.168 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08824/0.08965, allocations: 46.63 MB / 327.9 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004732/0.09442, allocations: 3.089 MB / 331 MB, free: 1.352 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002227/0.09668, allocations: 1.072 MB / 332.1 MB, free: 276 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003782/0.09708, allocations: 4 kB / 332.1 MB, free: 272 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003371/0.09747, allocations: 83.23 kB / 332.2 MB, free: 188 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004843/0.09797, allocations: 158.6 kB / 332.4 MB, free: 28 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006971/0.09867, allocations: 275.5 kB / 332.6 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006655/0.09935, allocations: 0.7998 MB / 333.4 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002831/0.09964, allocations: 136.7 kB / 333.6 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004062/0.1001, allocations: 350.9 kB / 333.9 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004275/0.1005, allocations: 390.6 kB / 334.3 MB, free: 14.1 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.475e-05/0.1006, allocations: 60 kB / 334.3 MB, free: 14.04 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002105/0.1008, allocations: 104 kB / 334.4 MB, free: 13.94 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001588/0.101, allocations: 159.5 kB / 334.6 MB, free: 13.78 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002469/0.1012, allocations: 294.6 kB / 334.9 MB, free: 13.49 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006426/0.1019, allocations: 0.7167 MB / 335.6 MB, free: 12.77 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1019, allocations: 0 / 335.6 MB, free: 12.77 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.1019, allocations: 0 / 335.6 MB, free: 12.77 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.171e-05/0.1019, allocations: 0 / 335.6 MB, free: 12.77 MB / 286.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.001623/0.1036, allocations: 0.8806 MB / 336.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.1036, allocations: 16.03 kB / 336.5 MB, free: 11.82 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.1037, allocations: 64.16 kB / 336.6 MB, free: 11.76 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000408/0.1042, allocations: 359.7 kB / 336.9 MB, free: 11.37 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.257e-05/0.1042, allocations: 29.38 kB / 336.9 MB, free: 11.34 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.501e-05/0.1043, allocations: 48.36 kB / 337 MB, free: 11.29 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001037/0.1053, allocations: 0.6191 MB / 337.6 MB, free: 10.66 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.225e-05/0.1054, allocations: 7.906 kB / 337.6 MB, free: 10.65 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.779e-05/0.1054, allocations: 20 kB / 337.6 MB, free: 10.63 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.1055, allocations: 16 kB / 337.6 MB, free: 10.62 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001149/0.1066, allocations: 0.5934 MB / 338.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002165/0.1088, allocations: 1.328 MB / 339.6 MB, free: 8.637 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009504/0.1098, allocations: 461.3 kB / 340 MB, free: 8.176 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005522/0.1103, allocations: 306.4 kB / 340.3 MB, free: 7.875 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.938e-05/0.1104, allocations: 12.55 kB / 340.3 MB, free: 7.863 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.1104, allocations: 39.12 kB / 340.4 MB, free: 7.816 MB / 286.1 MB Notification: Performance of pre-optimization done (n=58): time 2.595e-06/0.1104, allocations: 0 / 340.4 MB, free: 7.816 MB / 286.1 MB Notification: Performance of matching and sorting (n=64): time 0.005991/0.1164, allocations: 2.878 MB / 343.2 MB, free: 4.797 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.227e-05/0.1165, allocations: 63.97 kB / 343.3 MB, free: 4.723 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003172/0.1168, allocations: 325.7 kB / 343.6 MB, free: 4.395 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.284e-05/0.1169, allocations: 45.7 kB / 343.7 MB, free: 4.344 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001301/0.117, allocations: 205.2 kB / 343.9 MB, free: 4.141 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001715/0.1172, allocations: 221 kB / 344.1 MB, free: 3.922 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002191/0.1174, allocations: 134.5 kB / 344.2 MB, free: 3.785 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1176, allocations: 354.7 kB / 344.6 MB, free: 3.43 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006976/0.1183, allocations: 317.8 kB / 344.9 MB, free: 3.117 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006368/0.1189, allocations: 385 kB / 345.3 MB, free: 2.734 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009336/0.1199, allocations: 0.5108 MB / 345.8 MB, free: 2.211 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1199, allocations: 4 kB / 345.8 MB, free: 2.207 MB / 286.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001738/0.1216, allocations: 0.9232 MB / 346.7 MB, free: 1.273 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.1217, allocations: 4 kB / 346.7 MB, free: 1.27 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.1217, allocations: 4 kB / 346.7 MB, free: 1.266 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00128/0.123, allocations: 0.7307 MB / 347.4 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003736/0.1233, allocations: 103.8 kB / 347.5 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001382/0.1247, allocations: 1.083 MB / 348.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006725/0.1254, allocations: 107.9 kB / 348.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.642e-05/0.1255, allocations: 24 kB / 348.7 MB, free: 15.19 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.0002582/0.1257, allocations: 191.9 kB / 348.9 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.1259, allocations: 47.44 kB / 349 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001593/0.126, allocations: 68.75 kB / 349 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.126, allocations: 8 kB / 349 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.994e-06/0.1261, allocations: 0 / 349 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.1261, allocations: 3.984 kB / 349.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00269/0.1288, allocations: 1.571 MB / 350.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.1288, allocations: 0 / 350.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004144/0.1292, allocations: 87.89 kB / 350.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/0.1303, allocations: 0.7034 MB / 351.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.096e-05/0.1304, allocations: 27.95 kB / 351.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001315/0.1317, allocations: 1.064 MB / 352.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.1317, allocations: 4 kB / 352.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002411/0.1342, allocations: 1.3 MB / 353.8 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002614/0.1344, allocations: 192.4 kB / 354 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001212/0.1346, allocations: 20 kB / 354 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006782/0.1353, allocations: 111.8 kB / 354.1 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002598/0.1355, allocations: 124.3 kB / 354.2 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.315e-05/0.1356, allocations: 27.97 kB / 354.3 MB, free: 9.516 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002606/0.1359, allocations: 235.2 kB / 354.5 MB, free: 9.285 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1359, allocations: 0 / 354.5 MB, free: 9.285 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005588/0.1364, allocations: 164 kB / 354.7 MB, free: 9.125 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.0002635/0.1367, allocations: 147.2 kB / 354.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001787/0.1385, allocations: 0.7917 MB / 355.6 MB, free: 8.176 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1385, allocations: 3.938 kB / 355.6 MB, free: 8.172 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008285/0.1394, allocations: 425.8 kB / 356 MB, free: 7.758 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006889/0.1401, allocations: 101.7 kB / 356.1 MB, free: 7.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002766/0.1428, allocations: 1.431 MB / 357.5 MB, free: 6.199 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004959/0.1433, allocations: 0.844 MB / 358.4 MB, free: 5.328 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001539/0.1435, allocations: 47.42 kB / 358.4 MB, free: 5.285 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1435, allocations: 0 / 358.4 MB, free: 5.285 MB / 302.1 MB Notification: Performance of Templates: time 0.01266/0.1562, allocations: 8.581 MB / 367 MB, free: 12.7 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches