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.001306/0.001307, allocations: 93.94 kB / 16.93 MB, free: 5.984 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.001751/0.001752, allocations: 180.7 kB / 17.82 MB, free: 5.652 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.461/1.461, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004689/0.0004689, allocations: 11.44 kB / 280.7 MB, free: 3.758 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1175, allocations: 47.59 MB / 328.3 MB, free: 4.098 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.00348/0.121, allocations: 2.487 MB / 330.8 MB, free: 1.594 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001816/0.1229, allocations: 1.061 MB / 331.9 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001722/0.123, allocations: 7.938 kB / 331.9 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001903/0.1232, allocations: 55.61 kB / 331.9 MB, free: 472 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003161/0.1236, allocations: 167.5 kB / 332.1 MB, free: 304 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005454/0.1241, allocations: 211.6 kB / 332.3 MB, free: 92 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000561/0.1247, allocations: 492.7 kB / 332.8 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002154/0.1249, allocations: 107.1 kB / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003547/0.1253, allocations: 307 kB / 333.2 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003782/0.1257, allocations: 346.8 kB / 333.5 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.27e-05/0.1258, allocations: 32 kB / 333.6 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001576/0.1259, allocations: 63.97 kB / 333.6 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001488/0.1261, allocations: 131.5 kB / 333.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001089/0.1262, allocations: 113.5 kB / 333.9 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004989/0.1267, allocations: 0.4951 MB / 334.4 MB, free: 14.02 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1267, allocations: 0 / 334.4 MB, free: 14.02 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1267, allocations: 0 / 334.4 MB, free: 14.02 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.1267, allocations: 0 / 334.4 MB, free: 14.02 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.001639/0.1284, allocations: 0.8221 MB / 335.2 MB, free: 13.15 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.1284, allocations: 8.031 kB / 335.2 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001234/0.1286, allocations: 59.34 kB / 335.2 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005426/0.1291, allocations: 354.6 kB / 335.6 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.1292, allocations: 33 kB / 335.6 MB, free: 12.67 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.994e-05/0.1293, allocations: 44 kB / 335.7 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.1304, allocations: 0.619 MB / 336.3 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.722e-05/0.1304, allocations: 3.906 kB / 336.3 MB, free: 11.99 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.008e-05/0.1305, allocations: 16 kB / 336.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.1305, allocations: 12 kB / 336.3 MB, free: 11.96 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001202/0.1317, allocations: 0.6167 MB / 336.9 MB, free: 11.35 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002379/0.1341, allocations: 1.367 MB / 338.3 MB, free: 9.922 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009659/0.1351, allocations: 473.2 kB / 338.8 MB, free: 9.453 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.999e-05/0.1352, allocations: 16.5 kB / 338.8 MB, free: 9.438 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.193e-05/0.1352, allocations: 35.12 kB / 338.8 MB, free: 9.395 MB / 286.1 MB Notification: Performance of pre-optimization done (n=58): time 1.773e-06/0.1352, allocations: 0 / 338.8 MB, free: 9.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=64): time 0.006331/0.1415, allocations: 3.014 MB / 341.8 MB, free: 6.238 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.135e-05/0.1416, allocations: 67.91 kB / 341.9 MB, free: 6.156 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003376/0.142, allocations: 325.6 kB / 342.2 MB, free: 5.824 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.505e-05/0.142, allocations: 45.7 kB / 342.3 MB, free: 5.773 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.1422, allocations: 205.2 kB / 342.5 MB, free: 5.57 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001885/0.1424, allocations: 217 kB / 342.7 MB, free: 5.355 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-05/0.1424, allocations: 12 kB / 342.7 MB, free: 5.344 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.1426, allocations: 362.7 kB / 343 MB, free: 4.98 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005884/0.1432, allocations: 325.8 kB / 343.4 MB, free: 4.664 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006334/0.1438, allocations: 385 kB / 343.7 MB, free: 4.285 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005052/0.1444, allocations: 263.2 kB / 344 MB, free: 4.027 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1444, allocations: 0 / 344 MB, free: 4.027 MB / 286.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00173/0.1461, allocations: 0.9433 MB / 344.9 MB, free: 3.074 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.1461, allocations: 4 kB / 344.9 MB, free: 3.07 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.1462, allocations: 4.062 kB / 344.9 MB, free: 3.066 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001209/0.1474, allocations: 0.7287 MB / 345.7 MB, free: 2.336 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003971/0.1478, allocations: 107.8 kB / 345.8 MB, free: 2.23 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00137/0.1492, allocations: 1.099 MB / 346.9 MB, free: 1.105 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007206/0.1499, allocations: 159.8 kB / 347 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.785e-05/0.15, allocations: 23.98 kB / 347.1 MB, free: 0.9258 MB / 286.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.0003055/0.1503, allocations: 180.1 kB / 347.2 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.849e-05/0.1504, allocations: 47.44 kB / 347.3 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001639/0.1506, allocations: 84.62 kB / 347.4 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.1506, allocations: 4 kB / 347.4 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.1506, allocations: 0 / 347.4 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.1506, allocations: 3.984 kB / 347.4 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002682/0.1533, allocations: 1.579 MB / 348.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.1533, allocations: 4 kB / 348.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000401/0.1537, allocations: 91.88 kB / 349 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001062/0.1548, allocations: 0.6956 MB / 349.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.874e-05/0.1548, allocations: 31.97 kB / 349.8 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001311/0.1562, allocations: 1.064 MB / 350.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.1562, allocations: 7.953 kB / 350.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002367/0.1586, allocations: 1.319 MB / 352.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002631/0.1588, allocations: 196.5 kB / 352.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001088/0.159, allocations: 28 kB / 352.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000654/0.1596, allocations: 143.9 kB / 352.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002762/0.1599, allocations: 144.2 kB / 352.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.65e-05/0.16, allocations: 31.97 kB / 352.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002223/0.1602, allocations: 227.2 kB / 352.9 MB, free: 10.92 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1602, allocations: 0 / 352.9 MB, free: 10.92 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005479/0.1607, allocations: 164 kB / 353.1 MB, free: 10.76 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.0002978/0.1611, allocations: 143.1 kB / 353.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.1626, allocations: 0.7917 MB / 354 MB, free: 9.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1626, allocations: 0 / 354 MB, free: 9.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007901/0.1634, allocations: 433.8 kB / 354.4 MB, free: 9.398 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005465/0.164, allocations: 89.23 kB / 354.5 MB, free: 9.312 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002762/0.1667, allocations: 1.657 MB / 356.2 MB, free: 7.633 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004321/0.1672, allocations: 0.8559 MB / 357 MB, free: 6.746 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001756/0.1674, allocations: 48.16 kB / 357.1 MB, free: 6.695 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/0.1675, allocations: 35.42 kB / 357.1 MB, free: 6.664 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1675, allocations: 4 kB / 357.1 MB, free: 6.66 MB / 302.1 MB Notification: Performance of Templates: time 0.01861/0.1861, allocations: 12.22 MB / 369.3 MB, free: 10.44 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches