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.001256/0.001256, allocations: 96.39 kB / 17.58 MB, free: 5.418 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.001504/0.001504, allocations: 192 kB / 18.51 MB, free: 4.508 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.384/1.384, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001272/0.001272, allocations: 51.92 kB / 280.6 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1067, allocations: 46.63 MB / 327.3 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005724/0.1124, allocations: 3.088 MB / 330.4 MB, free: 1.355 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002823/0.1153, allocations: 1.072 MB / 331.4 MB, free: 280 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007614/0.1161, allocations: 7.938 kB / 331.4 MB, free: 272 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000572/0.1168, allocations: 75.3 kB / 331.5 MB, free: 196 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009559/0.1178, allocations: 162.6 kB / 331.7 MB, free: 32 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001256/0.119, allocations: 275.5 kB / 331.9 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001539/0.1206, allocations: 0.8037 MB / 332.8 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000313/0.1209, allocations: 136.6 kB / 332.9 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005451/0.1215, allocations: 347 kB / 333.2 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004686/0.122, allocations: 386.6 kB / 333.6 MB, free: 14.11 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001026/0.1221, allocations: 64 kB / 333.7 MB, free: 14.04 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002302/0.1223, allocations: 104 kB / 333.8 MB, free: 13.94 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001894/0.1225, allocations: 151.5 kB / 333.9 MB, free: 13.79 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002862/0.1228, allocations: 306.5 kB / 334.2 MB, free: 13.49 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000732/0.1236, allocations: 0.7089 MB / 334.9 MB, free: 12.78 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.1236, allocations: 0 / 334.9 MB, free: 12.78 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1236, allocations: 0 / 334.9 MB, free: 12.78 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.1236, allocations: 0 / 334.9 MB, free: 12.78 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.001751/0.1253, allocations: 0.8845 MB / 335.8 MB, free: 11.84 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.537e-05/0.1254, allocations: 15.97 kB / 335.8 MB, free: 11.83 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001297/0.1255, allocations: 60.28 kB / 335.9 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005023/0.1261, allocations: 359.7 kB / 336.2 MB, free: 11.38 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.151e-05/0.1261, allocations: 33.38 kB / 336.3 MB, free: 11.34 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.1262, allocations: 48.36 kB / 336.3 MB, free: 11.3 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.1274, allocations: 0.623 MB / 336.9 MB, free: 10.66 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.36e-05/0.1274, allocations: 3.906 kB / 336.9 MB, free: 10.66 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.814e-05/0.1275, allocations: 16 kB / 337 MB, free: 10.64 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.1275, allocations: 16 kB / 337 MB, free: 10.62 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001151/0.1286, allocations: 0.5973 MB / 337.6 MB, free: 10.03 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002233/0.1309, allocations: 1.324 MB / 338.9 MB, free: 8.645 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009665/0.1319, allocations: 461.3 kB / 339.3 MB, free: 8.184 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005666/0.1324, allocations: 314.4 kB / 339.7 MB, free: 7.875 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.673e-05/0.1325, allocations: 12.55 kB / 339.7 MB, free: 7.863 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.1325, allocations: 35.12 kB / 339.7 MB, free: 7.82 MB / 286.1 MB Notification: Performance of pre-optimization done (n=58): time 3.938e-06/0.1325, allocations: 0 / 339.7 MB, free: 7.82 MB / 286.1 MB Notification: Performance of matching and sorting (n=64): time 0.006603/0.1392, allocations: 2.878 MB / 342.6 MB, free: 4.801 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/0.1392, allocations: 59.97 kB / 342.6 MB, free: 4.73 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003827/0.1396, allocations: 329.7 kB / 343 MB, free: 4.398 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.946e-05/0.1397, allocations: 45.7 kB / 343 MB, free: 4.348 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.1398, allocations: 205.2 kB / 343.2 MB, free: 4.145 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002028/0.1401, allocations: 213.1 kB / 343.4 MB, free: 3.934 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002428/0.1403, allocations: 138.5 kB / 343.5 MB, free: 3.793 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.1405, allocations: 354.7 kB / 343.9 MB, free: 3.438 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006306/0.1411, allocations: 317.8 kB / 344.2 MB, free: 3.125 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006641/0.1418, allocations: 385 kB / 344.6 MB, free: 2.742 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009795/0.1428, allocations: 0.5069 MB / 345.1 MB, free: 2.223 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1428, allocations: 0 / 345.1 MB, free: 2.223 MB / 286.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001882/0.1447, allocations: 0.931 MB / 346 MB, free: 1.281 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.611e-05/0.1447, allocations: 4 kB / 346 MB, free: 1.277 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.1447, allocations: 0 / 346 MB, free: 1.277 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001319/0.1461, allocations: 0.7307 MB / 346.7 MB, free: 0.543 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003816/0.1465, allocations: 99.83 kB / 346.8 MB, free: 456 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00147/0.1479, allocations: 1.099 MB / 347.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007073/0.1487, allocations: 103.9 kB / 348 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.192e-05/0.1487, allocations: 27.98 kB / 348.1 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.0002758/0.149, allocations: 184 kB / 348.3 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001506/0.1492, allocations: 47.44 kB / 348.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001522/0.1493, allocations: 68.75 kB / 348.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.1493, allocations: 4 kB / 348.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/0.1494, allocations: 4 kB / 348.4 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.1494, allocations: 3.984 kB / 348.4 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00301/0.1524, allocations: 1.571 MB / 350 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.1524, allocations: 0 / 350 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004064/0.1528, allocations: 87.88 kB / 350 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001128/0.154, allocations: 0.7034 MB / 350.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.105e-05/0.1541, allocations: 31.91 kB / 350.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001501/0.1556, allocations: 1.068 MB / 351.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.1556, allocations: 0 / 351.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002634/0.1582, allocations: 1.304 MB / 353.1 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004265/0.1587, allocations: 192.4 kB / 353.3 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001704/0.1589, allocations: 20 kB / 353.3 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007362/0.1596, allocations: 103.8 kB / 353.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003403/0.1599, allocations: 124.4 kB / 353.6 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.028e-05/0.16, allocations: 31.95 kB / 353.6 MB, free: 9.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002939/0.1603, allocations: 231.2 kB / 353.8 MB, free: 9.293 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1603, allocations: 0 / 353.8 MB, free: 9.293 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007152/0.1611, allocations: 164 kB / 354 MB, free: 9.133 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.0003279/0.1614, allocations: 147.2 kB / 354.1 MB, free: 8.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001878/0.1633, allocations: 0.7955 MB / 354.9 MB, free: 8.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.1633, allocations: 4.062 kB / 354.9 MB, free: 8.176 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008738/0.1642, allocations: 429.8 kB / 355.4 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.0007925/0.165, allocations: 89.7 kB / 355.4 MB, free: 7.672 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002945/0.1679, allocations: 1.406 MB / 356.8 MB, free: 6.242 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005189/0.1685, allocations: 0.844 MB / 357.7 MB, free: 5.371 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002125/0.1687, allocations: 48.17 kB / 357.7 MB, free: 5.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.1688, allocations: 39.42 kB / 357.8 MB, free: 5.285 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1688, allocations: 0 / 357.8 MB, free: 5.285 MB / 302.1 MB Notification: Performance of Templates: time 0.02459/0.1934, allocations: 13.55 MB / 371.3 MB, free: 7.723 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/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