Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_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.009942/0.009942, allocations: 103 kB / 15.73 MB, free: 5.492 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.002469/0.002469, allocations: 190.2 kB / 16.67 MB, free: 5.422 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.548/1.548, allocations: 205.1 MB / 222.5 MB, free: 12.22 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.001873/0.001873, allocations: 47.94 kB / 326.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1281, allocations: 46.61 MB / 373.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003846/0.1319, allocations: 2.169 MB / 375.3 MB, free: 2.387 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001569/0.1335, allocations: 0.7408 MB / 376.1 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001709/0.1337, allocations: 4 kB / 376.1 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000203/0.134, allocations: 31.66 kB / 376.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002417/0.1342, allocations: 71.47 kB / 376.2 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004692/0.1347, allocations: 111.7 kB / 376.3 MB, free: 1.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003969/0.1351, allocations: 271.4 kB / 376.5 MB, free: 1.156 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001781/0.1353, allocations: 64.33 kB / 376.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002678/0.1356, allocations: 127.5 kB / 376.7 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002521/0.1358, allocations: 123.5 kB / 376.8 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.505e-05/0.1359, allocations: 20 kB / 376.9 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001735/0.1361, allocations: 75.94 kB / 376.9 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001082/0.1362, allocations: 47.83 kB / 377 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001675/0.1364, allocations: 111.4 kB / 377.1 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004619/0.1369, allocations: 287 kB / 377.4 MB, free: 324 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.1369, allocations: 4 kB / 377.4 MB, free: 320 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.1369, allocations: 0 / 377.4 MB, free: 320 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.354e-05/0.1369, allocations: 0 / 377.4 MB, free: 320 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.2241/0.361, allocations: 0.5559 MB / 377.9 MB, free: 13.13 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.361, allocations: 8.812 kB / 377.9 MB, free: 13.13 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.171e-05/0.3611, allocations: 25.48 kB / 378 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003702/0.3615, allocations: 233.5 kB / 378.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.567e-05/0.3615, allocations: 16.05 kB / 378.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.337e-05/0.3616, allocations: 23.81 kB / 378.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000512/0.3621, allocations: 235.5 kB / 378.5 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.3621, allocations: 1.375 kB / 378.5 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.771e-05/0.3622, allocations: 13.94 kB / 378.5 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.3622, allocations: 4.125 kB / 378.5 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004948/0.3627, allocations: 194.1 kB / 378.7 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009801/0.3637, allocations: 0.6622 MB / 379.3 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005519/0.3642, allocations: 207.1 kB / 379.5 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002305/0.3645, allocations: 103.6 kB / 379.6 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.3645, allocations: 2.75 kB / 379.6 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003721/0.3649, allocations: 159.8 kB / 379.8 MB, free: 12.4 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.385e-06/0.3649, allocations: 0 / 379.8 MB, free: 12.4 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002603/0.3675, allocations: 1.157 MB / 380.9 MB, free: 11.7 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/0.3676, allocations: 58.81 kB / 381 MB, free: 11.64 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001812/0.3678, allocations: 187.9 kB / 381.2 MB, free: 11.51 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.3678, allocations: 35.45 kB / 381.2 MB, free: 11.47 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.564e-05/0.3679, allocations: 139.3 kB / 381.4 MB, free: 11.35 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.13e-05/0.3679, allocations: 86.28 kB / 381.4 MB, free: 11.29 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.368, allocations: 67.91 kB / 381.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.625e-05/0.3681, allocations: 331.2 kB / 381.8 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002681/0.3684, allocations: 100.8 kB / 381.9 MB, free: 10.89 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000279/0.3687, allocations: 146.4 kB / 382.1 MB, free: 10.83 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004582/0.3692, allocations: 250.8 kB / 382.3 MB, free: 10.69 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.3692, allocations: 1.469 kB / 382.3 MB, free: 10.69 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007698/0.3699, allocations: 404.6 kB / 382.7 MB, free: 10.51 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.417e-05/0.37, allocations: 33.2 kB / 382.7 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.37, allocations: 4.562 kB / 382.8 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002483/0.3703, allocations: 75.67 kB / 382.8 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002018/0.3705, allocations: 52.31 kB / 382.9 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000375/0.3709, allocations: 0.6155 MB / 383.5 MB, free: 9.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002375/0.3711, allocations: 30.8 kB / 383.5 MB, free: 9.871 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.538e-05/0.3711, allocations: 13.89 kB / 383.5 MB, free: 9.867 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.0001125/0.3713, allocations: 143.4 kB / 383.7 MB, free: 9.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.287e-05/0.3713, allocations: 18.31 kB / 383.7 MB, free: 9.723 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.955e-05/0.3714, allocations: 27.22 kB / 383.7 MB, free: 9.699 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3714, allocations: 3.719 kB / 383.7 MB, free: 9.699 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.3714, allocations: 0.875 kB / 383.7 MB, free: 9.699 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.3714, allocations: 1.547 kB / 383.7 MB, free: 9.699 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001117/0.3725, allocations: 0.6824 MB / 384.4 MB, free: 9.254 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3725, allocations: 0 / 384.4 MB, free: 9.254 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002095/0.3727, allocations: 45.72 kB / 384.5 MB, free: 9.246 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001671/0.3729, allocations: 65.23 kB / 384.5 MB, free: 9.223 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.508e-05/0.373, allocations: 11.56 kB / 384.5 MB, free: 9.219 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003721/0.3733, allocations: 0.6071 MB / 385.1 MB, free: 8.664 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3733, allocations: 0 / 385.1 MB, free: 8.664 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009029/0.3743, allocations: 0.5091 MB / 385.6 MB, free: 8.391 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.794e-05/0.3744, allocations: 110 kB / 385.8 MB, free: 8.281 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.602e-05/0.3744, allocations: 6.688 kB / 385.8 MB, free: 8.277 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002216/0.3746, allocations: 29.89 kB / 385.8 MB, free: 8.273 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.792e-05/0.3747, allocations: 38.62 kB / 385.8 MB, free: 8.262 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/0.3748, allocations: 5.828 kB / 385.8 MB, free: 8.262 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001183/0.3749, allocations: 140.1 kB / 386 MB, free: 8.168 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3749, allocations: 4 kB / 386 MB, free: 8.164 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003365/0.3752, allocations: 69.33 kB / 386 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.0001654/0.3754, allocations: 138.2 kB / 386.2 MB, free: 8.055 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000714/0.3761, allocations: 329.9 kB / 386.5 MB, free: 7.914 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3761, allocations: 1.312 kB / 386.5 MB, free: 7.914 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003306/0.3765, allocations: 146.3 kB / 386.6 MB, free: 7.871 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003694/0.3769, allocations: 39.77 kB / 386.7 MB, free: 7.855 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.378, allocations: 0.6451 MB / 387.3 MB, free: 7.445 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001761/0.3782, allocations: 0.7379 MB / 388.1 MB, free: 6.75 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.896e-05/0.3783, allocations: 22.11 kB / 388.1 MB, free: 6.742 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.127e-05/0.3784, allocations: 20.39 kB / 388.1 MB, free: 6.734 MB / 318.1 MB Notification: Performance of SimCode: time 2e-07/0.3784, allocations: 0 / 388.1 MB, free: 6.734 MB / 318.1 MB Notification: Performance of Templates: time 0.009215/0.3876, allocations: 3.855 MB / 392 MB, free: 6.441 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1)