Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.1_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.008057/0.008057, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001644/0.001644, allocations: 189.1 kB / 16.67 MB, free: 5.973 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.52/1.52, allocations: 205.1 MB / 222.5 MB, free: 4.383 MB / 174.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.002352/0.002352, allocations: 54.86 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1664/0.1688, allocations: 46.62 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005026/0.1738, allocations: 3.088 MB / 376.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00264/0.1765, allocations: 1.08 MB / 377.3 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004912/0.177, allocations: 8 kB / 377.3 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004519/0.1776, allocations: 75.23 kB / 377.4 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006219/0.1782, allocations: 158.7 kB / 377.6 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009828/0.1792, allocations: 279.5 kB / 377.8 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001151/0.1804, allocations: 0.796 MB / 378.6 MB, free: 11.79 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002848/0.1807, allocations: 145 kB / 378.8 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006018/0.1813, allocations: 362.9 kB / 379.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003991/0.1817, allocations: 382.7 kB / 379.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.111e-05/0.1818, allocations: 60 kB / 379.6 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002015/0.182, allocations: 115.9 kB / 379.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001627/0.1822, allocations: 155.5 kB / 379.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002629/0.1824, allocations: 294.5 kB / 380.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008258/0.1833, allocations: 0.7242 MB / 380.8 MB, free: 9.578 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1833, allocations: 0 / 380.8 MB, free: 9.578 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1833, allocations: 4 kB / 380.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.837e-06/0.1833, allocations: 0 / 380.8 MB, free: 9.574 MB / 318.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.001678/0.185, allocations: 0.8806 MB / 381.7 MB, free: 8.645 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.1851, allocations: 12.03 kB / 381.7 MB, free: 8.633 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001197/0.1852, allocations: 56.28 kB / 381.8 MB, free: 8.578 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005443/0.1857, allocations: 371.7 kB / 382.2 MB, free: 8.176 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.054e-05/0.1858, allocations: 29.38 kB / 382.2 MB, free: 8.145 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.553e-05/0.1859, allocations: 48.28 kB / 382.2 MB, free: 8.098 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.187, allocations: 0.6269 MB / 382.9 MB, free: 7.457 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.187, allocations: 4 kB / 382.9 MB, free: 7.453 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.632e-05/0.1871, allocations: 16 kB / 382.9 MB, free: 7.438 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.1871, allocations: 11.94 kB / 382.9 MB, free: 7.426 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0012/0.1883, allocations: 0.6012 MB / 383.5 MB, free: 6.824 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002354/0.1907, allocations: 1.328 MB / 384.8 MB, free: 5.434 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009881/0.1917, allocations: 461.2 kB / 385.3 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005786/0.1923, allocations: 310.4 kB / 385.6 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.697e-05/0.1923, allocations: 8.562 kB / 385.6 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.1924, allocations: 39.12 kB / 385.6 MB, free: 4.613 MB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 2.275e-06/0.1924, allocations: 0 / 385.6 MB, free: 4.613 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.006441/0.1988, allocations: 2.867 MB / 388.5 MB, free: 1.602 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.768e-05/0.1989, allocations: 59.97 kB / 388.5 MB, free: 1.531 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004013/0.1993, allocations: 333.6 kB / 388.9 MB, free: 1.199 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.755e-05/0.1994, allocations: 49.69 kB / 388.9 MB, free: 1.145 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000167/0.1996, allocations: 193.3 kB / 389.1 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/0.1998, allocations: 224.9 kB / 389.3 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002481/0.2, allocations: 130.6 kB / 389.5 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.2002, allocations: 362.7 kB / 389.8 MB, free: 236 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006493/0.2009, allocations: 321.9 kB / 390.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006683/0.2016, allocations: 377 kB / 390.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.2026, allocations: 0.5108 MB / 391 MB, free: 15.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.2026, allocations: 0 / 391 MB, free: 15.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001804/0.2044, allocations: 0.9232 MB / 391.9 MB, free: 14.08 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.2044, allocations: 8 kB / 391.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.2044, allocations: 0 / 391.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001529/0.206, allocations: 0.7346 MB / 392.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004325/0.2064, allocations: 99.83 kB / 392.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0014/0.2078, allocations: 1.087 MB / 393.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006873/0.2085, allocations: 107.9 kB / 394 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.357e-05/0.2086, allocations: 27.98 kB / 394 MB, free: 11.99 MB / 334.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.0003531/0.209, allocations: 183.8 kB / 394.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/0.2091, allocations: 51.42 kB / 394.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001753/0.2093, allocations: 68.75 kB / 394.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.2093, allocations: 11.94 kB / 394.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-05/0.2094, allocations: 0 / 394.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.2094, allocations: 3.984 kB / 394.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003259/0.2126, allocations: 1.568 MB / 395.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.94e-06/0.2127, allocations: 0 / 395.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000434/0.2131, allocations: 95.88 kB / 396 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001266/0.2144, allocations: 0.6995 MB / 396.7 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.901e-05/0.2145, allocations: 35.91 kB / 396.7 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001408/0.2159, allocations: 1.068 MB / 397.8 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.2159, allocations: 0 / 397.8 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002471/0.2184, allocations: 1.305 MB / 399.1 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003278/0.2187, allocations: 188.5 kB / 399.3 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/0.2189, allocations: 20 kB / 399.3 MB, free: 6.574 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006289/0.2195, allocations: 107.8 kB / 399.4 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003162/0.2198, allocations: 120.4 kB / 399.5 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.076e-05/0.2199, allocations: 31.95 kB / 399.5 MB, free: 6.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002893/0.2202, allocations: 231.2 kB / 399.8 MB, free: 6.094 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2202, allocations: 0 / 399.8 MB, free: 6.094 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006366/0.2209, allocations: 164 kB / 399.9 MB, free: 5.934 MB / 334.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.0003216/0.2212, allocations: 151.2 kB / 400.1 MB, free: 5.773 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001756/0.223, allocations: 0.7761 MB / 400.8 MB, free: 5 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.223, allocations: 0 / 400.8 MB, free: 5 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008686/0.2238, allocations: 429.8 kB / 401.3 MB, free: 4.578 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006561/0.2245, allocations: 97.78 kB / 401.4 MB, free: 4.484 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002674/0.2272, allocations: 1.382 MB / 402.7 MB, free: 3.074 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000434/0.2277, allocations: 0.8439 MB / 403.6 MB, free: 2.203 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001999/0.2279, allocations: 52.17 kB / 403.6 MB, free: 2.152 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.228, allocations: 47.42 kB / 403.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of SimCode: time 8.22e-07/0.228, allocations: 0 / 403.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of Templates: time 0.02328/0.2513, allocations: 13.65 MB / 417.3 MB, free: 4.434 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1)