Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.OneWayClutch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 110.8 kB / 17.06 MB, free: 5.977 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.001939/0.001939, allocations: 200 kB / 18.01 MB, free: 5.059 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.616/1.616, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.001387/0.001387, allocations: 51.92 kB / 327.9 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1205, allocations: 46.61 MB / 374.5 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003805/0.1244, allocations: 2.165 MB / 376.6 MB, free: 2.418 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001609/0.126, allocations: 0.7485 MB / 377.4 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002227/0.1263, allocations: 4 kB / 377.4 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002344/0.1265, allocations: 31.66 kB / 377.4 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002882/0.1268, allocations: 71.47 kB / 377.5 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004466/0.1273, allocations: 107.7 kB / 377.6 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004011/0.1277, allocations: 275.4 kB / 377.9 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.1279, allocations: 64.33 kB / 377.9 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002747/0.1282, allocations: 127.5 kB / 378 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000247/0.1285, allocations: 123.5 kB / 378.2 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.494e-05/0.1285, allocations: 24 kB / 378.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000161/0.1287, allocations: 67.94 kB / 378.3 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.857e-05/0.1288, allocations: 51.83 kB / 378.3 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001404/0.1289, allocations: 115.4 kB / 378.4 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000448/0.1294, allocations: 279 kB / 378.7 MB, free: 352 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.1294, allocations: 7.984 kB / 378.7 MB, free: 344 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1294, allocations: 0 / 378.7 MB, free: 344 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.224e-05/0.1294, allocations: 0 / 378.7 MB, free: 344 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.2428/0.3723, allocations: 0.553 MB / 379.3 MB, free: 13.14 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.3723, allocations: 8.25 kB / 379.3 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.709e-05/0.3724, allocations: 25.83 kB / 379.3 MB, free: 13.13 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004734/0.3729, allocations: 242.3 kB / 379.5 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.877e-05/0.3729, allocations: 12.56 kB / 379.5 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.816e-05/0.373, allocations: 24.17 kB / 379.6 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005375/0.3736, allocations: 235.1 kB / 379.8 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.866e-05/0.3736, allocations: 2.172 kB / 379.8 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.632e-05/0.3736, allocations: 11.84 kB / 379.8 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.3736, allocations: 3.875 kB / 379.8 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005081/0.3741, allocations: 197.3 kB / 380 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.3752, allocations: 0.6564 MB / 380.7 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006257/0.3759, allocations: 201.9 kB / 380.8 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002481/0.3761, allocations: 102.1 kB / 380.9 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.881e-05/0.3761, allocations: 3.5 kB / 381 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003683/0.3765, allocations: 165.7 kB / 381.1 MB, free: 12.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.014e-06/0.3765, allocations: 1.375 kB / 381.1 MB, free: 12.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002659/0.3792, allocations: 1.154 MB / 382.3 MB, free: 11.71 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.06e-05/0.3793, allocations: 55.58 kB / 382.3 MB, free: 11.64 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/0.3794, allocations: 188.5 kB / 382.5 MB, free: 11.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.3795, allocations: 35 kB / 382.5 MB, free: 11.48 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.64e-05/0.3796, allocations: 137.8 kB / 382.7 MB, free: 11.36 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.971e-05/0.3796, allocations: 84.92 kB / 382.8 MB, free: 11.3 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.3797, allocations: 67.42 kB / 382.8 MB, free: 11.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.148e-05/0.3798, allocations: 330.3 kB / 383.1 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002899/0.3801, allocations: 108.9 kB / 383.3 MB, free: 10.9 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002877/0.3804, allocations: 144 kB / 383.4 MB, free: 10.83 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004824/0.3809, allocations: 250.7 kB / 383.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3809, allocations: 0 / 383.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008877/0.3818, allocations: 403.9 kB / 384 MB, free: 10.52 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.879e-05/0.3819, allocations: 33.53 kB / 384.1 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.3819, allocations: 1.312 kB / 384.1 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002717/0.3822, allocations: 70.77 kB / 384.1 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002363/0.3824, allocations: 63.17 kB / 384.2 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004684/0.3829, allocations: 0.6145 MB / 384.8 MB, free: 9.883 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002747/0.3832, allocations: 31.61 kB / 384.8 MB, free: 9.879 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.103e-05/0.3832, allocations: 12.17 kB / 384.9 MB, free: 9.875 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 11 (signalEngagement.count,$PRE.signalEngagement.count,signalEngagement.T_start,$PRE.signalEngagement.T_start,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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 {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001622/0.3834, allocations: 152.9 kB / 385 MB, free: 9.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.317e-05/0.3834, allocations: 17.78 kB / 385 MB, free: 9.723 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.316e-05/0.3835, allocations: 27.52 kB / 385.1 MB, free: 9.699 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.475e-06/0.3836, allocations: 3.375 kB / 385.1 MB, free: 9.699 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.3836, allocations: 1.484 kB / 385.1 MB, free: 9.699 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.3836, allocations: 1.172 kB / 385.1 MB, free: 9.699 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001327/0.3849, allocations: 0.6819 MB / 385.7 MB, free: 9.254 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.3849, allocations: 0 / 385.7 MB, free: 9.254 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002567/0.3852, allocations: 40.84 kB / 385.8 MB, free: 9.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001963/0.3854, allocations: 66.91 kB / 385.8 MB, free: 9.227 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.786e-05/0.3854, allocations: 9.984 kB / 385.9 MB, free: 9.223 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004397/0.3859, allocations: 0.6063 MB / 386.5 MB, free: 8.668 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3859, allocations: 0 / 386.5 MB, free: 8.668 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001093/0.387, allocations: 0.513 MB / 387 MB, free: 8.391 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.3871, allocations: 110.2 kB / 387.1 MB, free: 8.281 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.352e-05/0.3872, allocations: 6.812 kB / 387.1 MB, free: 8.277 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.3874, allocations: 25.11 kB / 387.1 MB, free: 8.277 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/0.3876, allocations: 34.14 kB / 387.1 MB, free: 8.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-05/0.3876, allocations: 10.61 kB / 387.2 MB, free: 8.266 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001863/0.3878, allocations: 144.3 kB / 387.3 MB, free: 8.168 MB / 318.1 MB Notification: Performance of sort global known variables: time 4e-07/0.3878, allocations: 4.656 kB / 387.3 MB, free: 8.164 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004012/0.3882, allocations: 69.77 kB / 387.4 MB, free: 8.156 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002221/0.3884, allocations: 123 kB / 387.5 MB, free: 8.059 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008406/0.3893, allocations: 335.9 kB / 387.8 MB, free: 7.918 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3893, allocations: 3.297 kB / 387.8 MB, free: 7.918 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003529/0.3897, allocations: 146.1 kB / 388 MB, free: 7.875 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004095/0.3901, allocations: 43.36 kB / 388 MB, free: 7.859 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00126/0.3913, allocations: 0.642 MB / 388.6 MB, free: 7.453 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002284/0.3916, allocations: 0.7368 MB / 389.4 MB, free: 6.758 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000102/0.3917, allocations: 25.72 kB / 389.4 MB, free: 6.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.412e-05/0.3918, allocations: 23.27 kB / 389.4 MB, free: 6.738 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3918, allocations: 0 / 389.4 MB, free: 6.738 MB / 318.1 MB Notification: Performance of Templates: time 0.01059/0.4024, allocations: 3.987 MB / 393.4 MB, free: 6.395 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1)