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.001121/0.001121, allocations: 86.64 kB / 16.31 MB, free: 6.449 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.001359/0.001359, allocations: 180.7 kB / 17.21 MB, free: 6.32 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.432/1.432, allocations: 223.3 MB / 241.2 MB, free: 5.254 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002914/0.0002914, allocations: 7.344 kB / 300.8 MB, free: 5.977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1184, allocations: 50.43 MB / 351.2 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003458/0.1219, allocations: 2.638 MB / 353.9 MB, free: 8.891 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002046/0.124, allocations: 1.002 MB / 354.9 MB, free: 7.883 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00021/0.1242, allocations: 4 kB / 354.9 MB, free: 7.879 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002138/0.1244, allocations: 55.55 kB / 354.9 MB, free: 7.824 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002334/0.1247, allocations: 131 kB / 355.1 MB, free: 7.695 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005533/0.1252, allocations: 211.7 kB / 355.3 MB, free: 7.488 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006651/0.1259, allocations: 0.7022 MB / 356 MB, free: 6.781 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002156/0.1261, allocations: 103.1 kB / 356.1 MB, free: 6.676 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003823/0.1265, allocations: 310.9 kB / 356.4 MB, free: 6.371 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003953/0.1269, allocations: 342.8 kB / 356.7 MB, free: 6.035 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.566e-05/0.127, allocations: 36 kB / 356.8 MB, free: 6 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001655/0.1272, allocations: 67.97 kB / 356.8 MB, free: 5.934 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001451/0.1274, allocations: 123.5 kB / 356.9 MB, free: 5.812 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001196/0.1275, allocations: 109.5 kB / 357 MB, free: 5.699 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004712/0.128, allocations: 0.4947 MB / 357.5 MB, free: 5.203 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.128, allocations: 0 / 357.5 MB, free: 5.203 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.128, allocations: 3.984 kB / 357.5 MB, free: 5.199 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.128, allocations: 0 / 357.5 MB, free: 5.199 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.001599/0.1296, allocations: 0.8184 MB / 358.4 MB, free: 4.332 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.1296, allocations: 12.03 kB / 358.4 MB, free: 4.32 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.1298, allocations: 63.23 kB / 358.4 MB, free: 4.258 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004535/0.1302, allocations: 350.6 kB / 358.8 MB, free: 3.879 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.886e-05/0.1303, allocations: 33 kB / 358.8 MB, free: 3.844 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.941e-05/0.1304, allocations: 44 kB / 358.9 MB, free: 3.801 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.1315, allocations: 0.6229 MB / 359.5 MB, free: 3.168 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.033e-05/0.1315, allocations: 3.906 kB / 359.5 MB, free: 3.164 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.412e-05/0.1316, allocations: 16 kB / 359.5 MB, free: 3.148 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.1316, allocations: 12 kB / 359.5 MB, free: 3.137 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001178/0.1328, allocations: 0.6206 MB / 360.1 MB, free: 2.512 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002274/0.135, allocations: 1.375 MB / 361.5 MB, free: 1.078 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009611/0.136, allocations: 457.3 kB / 362 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005734/0.1366, allocations: 326.3 kB / 362.3 MB, free: 304 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.33e-05/0.1367, allocations: 4.562 kB / 362.3 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.1367, allocations: 39.12 kB / 362.3 MB, free: 252 kB / 286.1 MB Notification: Performance of pre-optimization done (n=58): time 2.073e-06/0.1367, allocations: 0 / 362.3 MB, free: 252 kB / 286.1 MB Notification: Performance of matching and sorting (n=64): time 0.006216/0.1429, allocations: 3.032 MB / 365.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.847e-05/0.143, allocations: 59.97 kB / 365.4 MB, free: 13 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003506/0.1434, allocations: 333.6 kB / 365.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.157e-05/0.1434, allocations: 45.7 kB / 365.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.1436, allocations: 197.2 kB / 366 MB, free: 12.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001945/0.1438, allocations: 217.1 kB / 366.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.535e-05/0.1438, allocations: 20 kB / 366.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.144, allocations: 354.8 kB / 366.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006273/0.1446, allocations: 325.8 kB / 366.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006896/0.1453, allocations: 389 kB / 367.2 MB, free: 11.13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005198/0.1459, allocations: 255.2 kB / 367.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1459, allocations: 3.938 kB / 367.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001756/0.1476, allocations: 0.9394 MB / 368.4 MB, free: 9.926 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.1477, allocations: 8.031 kB / 368.4 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.1477, allocations: 3.953 kB / 368.4 MB, free: 9.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001321/0.149, allocations: 0.7293 MB / 369.2 MB, free: 9.184 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004436/0.1495, allocations: 111.8 kB / 369.3 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001452/0.1509, allocations: 1.089 MB / 370.4 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006713/0.1516, allocations: 143.9 kB / 370.5 MB, free: 7.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.279e-05/0.1517, allocations: 31.98 kB / 370.5 MB, free: 7.789 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 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0002881/0.152, allocations: 195.2 kB / 370.7 MB, free: 7.594 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001452/0.1522, allocations: 47.44 kB / 370.8 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001749/0.1523, allocations: 68.75 kB / 370.8 MB, free: 7.477 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.287e-06/0.1523, allocations: 8 kB / 370.9 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.1524, allocations: 0 / 370.9 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.898e-06/0.1524, allocations: 7.922 kB / 370.9 MB, free: 7.461 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002808/0.1552, allocations: 1.59 MB / 372.5 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.1552, allocations: 0 / 372.5 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004351/0.1557, allocations: 91.89 kB / 372.5 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001163/0.1568, allocations: 0.6976 MB / 373.2 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.35e-05/0.1569, allocations: 27.95 kB / 373.3 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001321/0.1582, allocations: 1.067 MB / 374.3 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1582, allocations: 0 / 374.3 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002443/0.1607, allocations: 1.331 MB / 375.7 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002964/0.161, allocations: 196.4 kB / 375.9 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.1611, allocations: 23.95 kB / 375.9 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006239/0.1618, allocations: 143.9 kB / 376 MB, free: 2.172 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003006/0.1621, allocations: 148.2 kB / 376.2 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.465e-05/0.1621, allocations: 27.97 kB / 376.2 MB, free: 2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000238/0.1624, allocations: 227.2 kB / 376.4 MB, free: 1.781 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1624, allocations: 0 / 376.4 MB, free: 1.781 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000567/0.1629, allocations: 168 kB / 376.6 MB, free: 1.617 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002758/0.1632, allocations: 149.8 kB / 376.7 MB, free: 1.461 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001675/0.1649, allocations: 0.784 MB / 377.5 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.1649, allocations: 0 / 377.5 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009024/0.1658, allocations: 437.8 kB / 377.9 MB, free: 252 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007671/0.1666, allocations: 81.38 kB / 378 MB, free: 172 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003073/0.1697, allocations: 1.657 MB / 379.7 MB, free: 14.48 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004405/0.1702, allocations: 0.8481 MB / 380.5 MB, free: 13.61 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002343/0.1704, allocations: 56.11 kB / 380.6 MB, free: 13.55 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.1705, allocations: 39.41 kB / 380.6 MB, free: 13.51 MB / 318.1 MB Notification: Performance of SimCode: time 1.282e-06/0.1706, allocations: 3.938 kB / 380.6 MB, free: 13.5 MB / 318.1 MB Notification: Performance of Templates: time 0.02169/0.1923, allocations: 12.23 MB / 392.9 MB, free: 1.316 MB / 318.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