Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001499/0.001499, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002232/0.002232, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.59/1.59, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.001375/0.001375, allocations: 55.91 kB / 278.7 MB, free: 12.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2892/0.2906, allocations: 46.63 MB / 325.3 MB, free: 1.879 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004104/0.2948, allocations: 2.202 MB / 327.5 MB, free: 148 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001689/0.2965, allocations: 0.7295 MB / 328.2 MB, free: 15.55 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001638/0.2967, allocations: 7.938 kB / 328.2 MB, free: 15.55 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002431/0.2969, allocations: 28.41 kB / 328.3 MB, free: 15.53 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002503/0.2972, allocations: 73.45 kB / 328.3 MB, free: 15.46 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004672/0.2977, allocations: 98.52 kB / 328.4 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000457/0.2982, allocations: 264 kB / 328.7 MB, free: 15.23 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000206/0.2984, allocations: 56.09 kB / 328.8 MB, free: 15.21 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002403/0.2987, allocations: 109.7 kB / 328.9 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002902/0.299, allocations: 113.9 kB / 329 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.429e-05/0.299, allocations: 24.28 kB / 329 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000215/0.2993, allocations: 76.16 kB / 329.1 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001012/0.2994, allocations: 47.97 kB / 329.1 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001767/0.2996, allocations: 110.1 kB / 329.2 MB, free: 14.92 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004695/0.3, allocations: 270.9 kB / 329.5 MB, free: 14.73 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.3001, allocations: 1.188 kB / 329.5 MB, free: 14.73 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3001, allocations: 0 / 329.5 MB, free: 14.73 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.3001, allocations: 0 / 329.5 MB, free: 14.73 MB / 270.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.001203/0.3013, allocations: 0.5134 MB / 330 MB, free: 14.24 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.3014, allocations: 10.12 kB / 330 MB, free: 14.24 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.469e-05/0.3015, allocations: 23.94 kB / 330 MB, free: 14.23 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003953/0.3019, allocations: 232.7 kB / 330.3 MB, free: 13.98 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.055e-05/0.302, allocations: 20.7 kB / 330.3 MB, free: 13.97 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.737e-05/0.302, allocations: 21.25 kB / 330.3 MB, free: 13.96 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006531/0.3027, allocations: 220.7 kB / 330.5 MB, free: 13.81 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.628e-05/0.3027, allocations: 5.062 kB / 330.5 MB, free: 13.81 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.211e-05/0.3028, allocations: 5.875 kB / 330.5 MB, free: 13.8 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.652e-05/0.3028, allocations: 9 kB / 330.5 MB, free: 13.8 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005897/0.3034, allocations: 171.4 kB / 330.7 MB, free: 13.72 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001819/0.3053, allocations: 0.7777 MB / 331.5 MB, free: 13.03 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005665/0.3058, allocations: 133.2 kB / 331.6 MB, free: 12.96 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002543/0.3061, allocations: 71.08 kB / 331.7 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.3061, allocations: 6.438 kB / 331.7 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/0.3062, allocations: 31.47 kB / 331.7 MB, free: 12.88 MB / 270.1 MB Notification: Performance of pre-optimization done (n=18): time 2.053e-06/0.3062, allocations: 0 / 331.7 MB, free: 12.88 MB / 270.1 MB Notification: Performance of matching and sorting (n=20): time 0.003156/0.3094, allocations: 0.9833 MB / 332.7 MB, free: 12.07 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.811e-05/0.3095, allocations: 53.69 kB / 332.8 MB, free: 12.01 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003775/0.3099, allocations: 211.2 kB / 333 MB, free: 11.85 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.439e-05/0.3099, allocations: 27.14 kB / 333 MB, free: 11.82 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001785/0.3101, allocations: 140.9 kB / 333.1 MB, free: 11.69 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.3103, allocations: 77.05 kB / 333.2 MB, free: 11.62 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001407/0.3104, allocations: 51.95 kB / 333.3 MB, free: 11.58 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.3106, allocations: 339 kB / 333.6 MB, free: 11.25 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003081/0.3109, allocations: 74.81 kB / 333.7 MB, free: 11.21 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003507/0.3113, allocations: 126.1 kB / 333.8 MB, free: 11.12 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005152/0.3118, allocations: 168.7 kB / 333.9 MB, free: 10.94 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3118, allocations: 0 / 333.9 MB, free: 10.94 MB / 270.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007108/0.3126, allocations: 283.8 kB / 334.2 MB, free: 10.66 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.648e-05/0.3126, allocations: 8 kB / 334.2 MB, free: 10.65 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.3126, allocations: 0 / 334.2 MB, free: 10.65 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004589/0.3131, allocations: 72.88 kB / 334.3 MB, free: 10.57 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002147/0.3133, allocations: 47.95 kB / 334.3 MB, free: 10.53 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009318/0.3143, allocations: 0.6225 MB / 335 MB, free: 9.879 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003311/0.3146, allocations: 27.98 kB / 335 MB, free: 9.852 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.693e-05/0.3147, allocations: 8 kB / 335 MB, free: 9.844 MB / 270.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.000257/0.3149, allocations: 136.2 kB / 335.1 MB, free: 9.703 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.105e-05/0.315, allocations: 19.81 kB / 335.2 MB, free: 9.684 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.125e-05/0.3151, allocations: 25.86 kB / 335.2 MB, free: 9.656 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.3152, allocations: 3.938 kB / 335.2 MB, free: 9.652 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.3152, allocations: 0 / 335.2 MB, free: 9.652 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.3152, allocations: 4 kB / 335.2 MB, free: 9.648 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00151/0.3167, allocations: 0.5983 MB / 335.8 MB, free: 8.984 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.3167, allocations: 0 / 335.8 MB, free: 8.984 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002812/0.317, allocations: 35.86 kB / 335.8 MB, free: 8.949 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002926/0.3173, allocations: 68.81 kB / 335.9 MB, free: 8.879 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.938e-05/0.3174, allocations: 12.05 kB / 335.9 MB, free: 8.867 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007833/0.3182, allocations: 0.6108 MB / 336.5 MB, free: 8.23 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.3182, allocations: 0 / 336.5 MB, free: 8.23 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001093/0.3193, allocations: 422 kB / 336.9 MB, free: 7.793 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001641/0.3195, allocations: 105 kB / 337 MB, free: 7.672 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.381e-05/0.3196, allocations: 7.984 kB / 337 MB, free: 7.664 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003136/0.3199, allocations: 23.92 kB / 337.1 MB, free: 7.641 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.32, allocations: 19.97 kB / 337.1 MB, free: 7.621 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-05/0.3201, allocations: 7.984 kB / 337.1 MB, free: 7.613 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002318/0.3203, allocations: 167.9 kB / 337.3 MB, free: 7.449 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3203, allocations: 0 / 337.3 MB, free: 7.449 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0006807/0.321, allocations: 67.94 kB / 337.3 MB, free: 7.383 MB / 270.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.0003324/0.3214, allocations: 119.2 kB / 337.4 MB, free: 7.258 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0009115/0.3223, allocations: 211.7 kB / 337.6 MB, free: 7.051 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.3223, allocations: 0 / 337.6 MB, free: 7.051 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004738/0.3228, allocations: 108 kB / 337.7 MB, free: 6.945 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006804/0.3235, allocations: 47.02 kB / 337.8 MB, free: 6.902 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002223/0.3258, allocations: 0.6658 MB / 338.5 MB, free: 6.207 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005443/0.3263, allocations: 0.7439 MB / 339.2 MB, free: 5.438 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001579/0.3265, allocations: 21.94 kB / 339.2 MB, free: 5.414 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.425e-05/0.3266, allocations: 15.44 kB / 339.2 MB, free: 5.398 MB / 270.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3266, allocations: 4 kB / 339.2 MB, free: 5.395 MB / 270.1 MB Notification: Performance of Templates: time 0.00935/0.336, allocations: 3.164 MB / 342.4 MB, free: 2.227 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1)