Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 114.2 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.001036/0.001036, allocations: 198.9 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.643/1.643, 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.001199/0.001199, allocations: 43.94 kB / 327.8 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.112, allocations: 46.62 MB / 374.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.00362/0.1157, allocations: 2.208 MB / 376.7 MB, free: 2.355 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.117, allocations: 0.7252 MB / 377.4 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.1172, allocations: 4 kB / 377.4 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002262/0.1174, allocations: 35.64 kB / 377.4 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001933/0.1176, allocations: 71.47 kB / 377.5 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003543/0.118, allocations: 99.75 kB / 377.6 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003295/0.1183, allocations: 259.4 kB / 377.9 MB, free: 1.16 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00023/0.1185, allocations: 76.28 kB / 377.9 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001746/0.1187, allocations: 107.6 kB / 378 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002567/0.119, allocations: 119.5 kB / 378.2 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.707e-05/0.119, allocations: 20 kB / 378.2 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001483/0.1192, allocations: 79.83 kB / 378.3 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.006e-05/0.1193, allocations: 51.81 kB / 378.3 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.1194, allocations: 107.5 kB / 378.4 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003549/0.1198, allocations: 275.1 kB / 378.7 MB, free: 348 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1198, allocations: 0 / 378.7 MB, free: 348 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1198, allocations: 0 / 378.7 MB, free: 348 kB / 318.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.1198, allocations: 0 / 378.7 MB, free: 348 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.2453/0.3651, allocations: 0.5107 MB / 379.2 MB, free: 13.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.3652, allocations: 10.72 kB / 379.2 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.803e-05/0.3653, allocations: 24.31 kB / 379.2 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003791/0.3657, allocations: 237.2 kB / 379.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.332e-05/0.3657, allocations: 15.88 kB / 379.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.326e-05/0.3657, allocations: 22.97 kB / 379.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000435/0.3662, allocations: 222 kB / 379.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.3662, allocations: 1.375 kB / 379.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.777e-05/0.3663, allocations: 13.38 kB / 379.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.3663, allocations: 5.328 kB / 379.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003321/0.3666, allocations: 166.5 kB / 379.9 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.3677, allocations: 0.7771 MB / 380.7 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000342/0.368, allocations: 136.1 kB / 380.8 MB, free: 12.42 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001282/0.3682, allocations: 68.36 kB / 380.9 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.15e-05/0.3682, allocations: 5.156 kB / 380.9 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.822e-05/0.3682, allocations: 36.02 kB / 380.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 2.274e-06/0.3682, allocations: 0 / 380.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.002181/0.3704, allocations: 0.9903 MB / 381.9 MB, free: 11.74 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.415e-05/0.3705, allocations: 54.16 kB / 382 MB, free: 11.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002427/0.3707, allocations: 202.3 kB / 382.2 MB, free: 11.55 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.3707, allocations: 30.86 kB / 382.2 MB, free: 11.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.452e-05/0.3708, allocations: 145.4 kB / 382.3 MB, free: 11.39 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.009e-05/0.3709, allocations: 69.7 kB / 382.4 MB, free: 11.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.371, allocations: 54.48 kB / 382.4 MB, free: 11.3 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.398e-05/0.371, allocations: 336.8 kB / 382.8 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001888/0.3712, allocations: 80.19 kB / 382.9 MB, free: 10.96 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002015/0.3715, allocations: 114.9 kB / 383 MB, free: 10.89 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002767/0.3717, allocations: 175.5 kB / 383.1 MB, free: 10.8 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.3717, allocations: 0 / 383.1 MB, free: 10.8 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004718/0.3722, allocations: 286.4 kB / 383.4 MB, free: 10.67 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.3723, allocations: 5.938 kB / 383.4 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.3723, allocations: 1.906 kB / 383.4 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002682/0.3725, allocations: 74.31 kB / 383.5 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.3727, allocations: 34.78 kB / 383.5 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004091/0.3731, allocations: 0.6268 MB / 384.2 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001903/0.3733, allocations: 25.02 kB / 384.2 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.246e-05/0.3734, allocations: 7.422 kB / 384.2 MB, free: 10.07 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: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * 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 {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001151/0.3735, allocations: 138.5 kB / 384.3 MB, free: 9.938 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.069e-05/0.3735, allocations: 23.27 kB / 384.3 MB, free: 9.926 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.86e-05/0.3736, allocations: 24.64 kB / 384.4 MB, free: 9.906 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.3736, allocations: 6.938 kB / 384.4 MB, free: 9.902 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.3736, allocations: 3.938 kB / 384.4 MB, free: 9.898 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.3736, allocations: 2.359 kB / 384.4 MB, free: 9.898 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008535/0.3745, allocations: 0.591 MB / 385 MB, free: 9.465 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.3745, allocations: 0.6562 kB / 385 MB, free: 9.465 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001591/0.3747, allocations: 32.34 kB / 385 MB, free: 9.461 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001767/0.3749, allocations: 67.44 kB / 385.1 MB, free: 9.438 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.919e-05/0.3749, allocations: 7.719 kB / 385.1 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003495/0.3752, allocations: 0.6188 MB / 385.7 MB, free: 8.867 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3753, allocations: 1.531 kB / 385.7 MB, free: 8.867 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005629/0.3758, allocations: 414.4 kB / 386.1 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.285e-05/0.3759, allocations: 116.1 kB / 386.2 MB, free: 8.496 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.442e-05/0.376, allocations: 3.594 kB / 386.2 MB, free: 8.496 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/0.3762, allocations: 25.75 kB / 386.2 MB, free: 8.488 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.95e-05/0.3763, allocations: 24.2 kB / 386.3 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.3763, allocations: 5.344 kB / 386.3 MB, free: 8.484 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001461/0.3764, allocations: 155.7 kB / 386.4 MB, free: 8.383 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3764, allocations: 0 / 386.4 MB, free: 8.383 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003534/0.3768, allocations: 64.09 kB / 386.5 MB, free: 8.375 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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 {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002003/0.377, allocations: 124.2 kB / 386.6 MB, free: 8.281 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000524/0.3775, allocations: 208.3 kB / 386.8 MB, free: 8.215 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3775, allocations: 0 / 386.8 MB, free: 8.215 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002418/0.3778, allocations: 100.3 kB / 386.9 MB, free: 8.188 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004152/0.3782, allocations: 34.66 kB / 386.9 MB, free: 8.18 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001296/0.3795, allocations: 0.6664 MB / 387.6 MB, free: 7.746 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001913/0.3797, allocations: 0.735 MB / 388.3 MB, free: 7.051 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.336e-05/0.3798, allocations: 21.47 kB / 388.4 MB, free: 7.043 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.666e-05/0.3799, allocations: 21.44 kB / 388.4 MB, free: 7.031 MB / 318.1 MB Notification: Performance of SimCode: time 1.223e-06/0.3799, allocations: 0 / 388.4 MB, free: 7.031 MB / 318.1 MB Notification: Performance of Templates: time 0.007782/0.3877, allocations: 3.348 MB / 391.7 MB, free: 6.75 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1)