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.001217/0.001217, allocations: 107.4 kB / 17.16 MB, free: 6.305 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.001194/0.001194, allocations: 198 kB / 18.07 MB, free: 5.41 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.387/1.387, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.001865/0.001865, allocations: 47.92 kB / 280 MB, free: 3.594 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1322, allocations: 46.63 MB / 326.6 MB, free: 4.891 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004723/0.137, allocations: 3.122 MB / 329.7 MB, free: 1.742 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001835/0.1388, allocations: 1.076 MB / 330.8 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001774/0.139, allocations: 7.938 kB / 330.8 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002458/0.1393, allocations: 51.56 kB / 330.9 MB, free: 0.5977 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002389/0.1396, allocations: 139 kB / 331 MB, free: 472 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005985/0.1402, allocations: 243.6 kB / 331.2 MB, free: 228 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006912/0.1409, allocations: 0.7569 MB / 332 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002268/0.1411, allocations: 124.5 kB / 332.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004059/0.1415, allocations: 322.8 kB / 332.4 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003757/0.1419, allocations: 370.6 kB / 332.8 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.061e-05/0.142, allocations: 36 kB / 332.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001977/0.1422, allocations: 79.95 kB / 332.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001604/0.1424, allocations: 131.5 kB / 333 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002631/0.1427, allocations: 266.6 kB / 333.3 MB, free: 14.16 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005974/0.1433, allocations: 0.6854 MB / 334 MB, free: 13.47 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.1433, allocations: 3.984 kB / 334 MB, free: 13.46 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.1433, allocations: 0 / 334 MB, free: 13.46 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.1433, allocations: 4 kB / 334 MB, free: 13.46 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.001617/0.1449, allocations: 0.8729 MB / 334.9 MB, free: 12.54 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.145, allocations: 12.03 kB / 334.9 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000131/0.1451, allocations: 60.27 kB / 334.9 MB, free: 12.47 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000403/0.1455, allocations: 363.6 kB / 335.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.974e-05/0.1456, allocations: 33.38 kB / 335.3 MB, free: 12.04 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.771e-05/0.1457, allocations: 44.38 kB / 335.4 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.1468, allocations: 0.6191 MB / 336 MB, free: 11.37 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.474e-05/0.1468, allocations: 11.83 kB / 336 MB, free: 11.36 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.834e-05/0.1469, allocations: 16 kB / 336 MB, free: 11.34 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.1469, allocations: 12 kB / 336 MB, free: 11.33 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001184/0.1481, allocations: 0.6012 MB / 336.6 MB, free: 10.73 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002229/0.1503, allocations: 1.328 MB / 337.9 MB, free: 9.34 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.1514, allocations: 465 kB / 338.4 MB, free: 8.875 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006712/0.1521, allocations: 310.4 kB / 338.7 MB, free: 8.566 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.414e-05/0.1522, allocations: 8.562 kB / 338.7 MB, free: 8.559 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.54e-05/0.1522, allocations: 39.12 kB / 338.7 MB, free: 8.512 MB / 286.1 MB Notification: Performance of pre-optimization done (n=58): time 2.063e-06/0.1522, allocations: 4 kB / 338.8 MB, free: 8.508 MB / 286.1 MB Notification: Performance of matching and sorting (n=64): time 0.006164/0.1584, allocations: 2.867 MB / 341.6 MB, free: 5.5 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.1585, allocations: 59.97 kB / 341.7 MB, free: 5.43 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003529/0.1588, allocations: 329.7 kB / 342 MB, free: 5.094 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.382e-05/0.1589, allocations: 49.69 kB / 342 MB, free: 5.039 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/0.159, allocations: 205.2 kB / 342.2 MB, free: 4.836 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001657/0.1592, allocations: 213 kB / 342.5 MB, free: 4.625 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002116/0.1594, allocations: 134.6 kB / 342.6 MB, free: 4.488 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.1596, allocations: 358.7 kB / 342.9 MB, free: 4.129 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00062/0.1602, allocations: 317.8 kB / 343.2 MB, free: 3.82 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007078/0.1609, allocations: 385 kB / 343.6 MB, free: 3.441 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009223/0.1619, allocations: 0.5108 MB / 344.1 MB, free: 2.922 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1619, allocations: 0 / 344.1 MB, free: 2.922 MB / 286.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001673/0.1636, allocations: 0.9271 MB / 345.1 MB, free: 1.984 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.1636, allocations: 4 kB / 345.1 MB, free: 1.98 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1636, allocations: 0 / 345.1 MB, free: 1.98 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001294/0.1649, allocations: 0.7307 MB / 345.8 MB, free: 1.246 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003775/0.1653, allocations: 103.8 kB / 345.9 MB, free: 1.145 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00139/0.1667, allocations: 1.091 MB / 347 MB, free: 28 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006331/0.1673, allocations: 103.9 kB / 347.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.933e-05/0.1674, allocations: 27.98 kB / 347.1 MB, free: 15.9 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.0002543/0.1677, allocations: 183.9 kB / 347.3 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.1678, allocations: 51.44 kB / 347.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001617/0.168, allocations: 68.73 kB / 347.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.168, allocations: 4 kB / 347.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.168, allocations: 4 kB / 347.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.168, allocations: 0 / 347.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00264/0.1706, allocations: 1.571 MB / 349 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.1706, allocations: 0 / 349 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003977/0.1711, allocations: 91.88 kB / 349.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001108/0.1722, allocations: 0.7073 MB / 349.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.106e-05/0.1722, allocations: 19.97 kB / 349.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001312/0.1736, allocations: 1.064 MB / 350.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.1736, allocations: 80 / 350.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002449/0.176, allocations: 1.312 MB / 352.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002655/0.1763, allocations: 192.4 kB / 352.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.1764, allocations: 20 kB / 352.4 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006156/0.1771, allocations: 103.8 kB / 352.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002807/0.1774, allocations: 124.3 kB / 352.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.355e-05/0.1774, allocations: 31.95 kB / 352.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002537/0.1777, allocations: 231.2 kB / 352.9 MB, free: 9.992 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1777, allocations: 4 kB / 352.9 MB, free: 9.988 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005733/0.1783, allocations: 160 kB / 353 MB, free: 9.832 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.0003272/0.1786, allocations: 151.4 kB / 353.2 MB, free: 9.676 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001581/0.1802, allocations: 0.7722 MB / 354 MB, free: 8.906 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.1802, allocations: 0 / 354 MB, free: 8.906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008188/0.181, allocations: 429.8 kB / 354.4 MB, free: 8.484 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006594/0.1817, allocations: 93.39 kB / 354.5 MB, free: 8.391 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003021/0.1847, allocations: 1.58 MB / 356 MB, free: 6.789 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004666/0.1852, allocations: 0.8442 MB / 356.9 MB, free: 5.918 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002145/0.1855, allocations: 48.16 kB / 356.9 MB, free: 5.867 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.1856, allocations: 43.42 kB / 357 MB, free: 5.828 MB / 302.1 MB Notification: Performance of SimCode: time 4.8e-07/0.1856, allocations: 0 / 357 MB, free: 5.828 MB / 302.1 MB Notification: Performance of Templates: time 0.02051/0.2061, allocations: 12.7 MB / 369.7 MB, free: 9.125 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","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches