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.001603/0.001604, allocations: 108.3 kB / 17.06 MB, free: 5.824 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.001345/0.001345, allocations: 191 kB / 18 MB, free: 4.977 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.587/1.587, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001293/0.001293, allocations: 55.92 kB / 327.9 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1017, allocations: 46.62 MB / 374.5 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003756/0.1055, allocations: 2.204 MB / 376.7 MB, free: 2.367 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001367/0.1069, allocations: 0.7252 MB / 377.4 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.1071, allocations: 8 kB / 377.4 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000181/0.1072, allocations: 31.66 kB / 377.4 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001835/0.1074, allocations: 67.47 kB / 377.5 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003382/0.1078, allocations: 103.8 kB / 377.6 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003068/0.1081, allocations: 263.4 kB / 377.9 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.1083, allocations: 72.31 kB / 377.9 MB, free: 1.098 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001683/0.1085, allocations: 115.5 kB / 378.1 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001919/0.1087, allocations: 123.5 kB / 378.2 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.142e-05/0.1087, allocations: 16 kB / 378.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001239/0.1088, allocations: 67.95 kB / 378.3 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.372e-05/0.1089, allocations: 51.83 kB / 378.3 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001089/0.109, allocations: 111.5 kB / 378.4 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003091/0.1093, allocations: 271.1 kB / 378.7 MB, free: 364 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.1094, allocations: 0 / 378.7 MB, free: 364 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1094, allocations: 0 / 378.7 MB, free: 364 kB / 318.1 MB Notification: Performance of Transformations before backend: time 5.74e-06/0.1094, allocations: 4 kB / 378.7 MB, free: 360 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.1883/0.2976, allocations: 0.5114 MB / 379.2 MB, free: 13.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/0.2977, allocations: 10.28 kB / 379.2 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.537e-05/0.2978, allocations: 24.31 kB / 379.2 MB, free: 13.15 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003392/0.2981, allocations: 235.6 kB / 379.5 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.794e-05/0.2982, allocations: 16 kB / 379.5 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.781e-05/0.2982, allocations: 21.33 kB / 379.5 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004389/0.2987, allocations: 226 kB / 379.7 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.2987, allocations: 1.312 kB / 379.7 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.287e-05/0.2987, allocations: 13 kB / 379.7 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.2987, allocations: 5.094 kB / 379.7 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003565/0.2991, allocations: 165.5 kB / 379.9 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.3004, allocations: 0.7762 MB / 380.7 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000392/0.3008, allocations: 139.3 kB / 380.8 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001421/0.3009, allocations: 66.61 kB / 380.9 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.752e-05/0.301, allocations: 6.047 kB / 380.9 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.301, allocations: 36.34 kB / 380.9 MB, free: 12.36 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.774e-06/0.301, allocations: 3.188 kB / 380.9 MB, free: 12.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.001999/0.303, allocations: 0.9852 MB / 381.9 MB, free: 11.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.149e-05/0.3031, allocations: 54.42 kB / 382 MB, free: 11.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002624/0.3033, allocations: 208.3 kB / 382.2 MB, free: 11.53 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.3034, allocations: 27.8 kB / 382.2 MB, free: 11.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.209e-05/0.3035, allocations: 144.4 kB / 382.3 MB, free: 11.38 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.491e-05/0.3035, allocations: 75.02 kB / 382.4 MB, free: 11.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.3037, allocations: 57.03 kB / 382.5 MB, free: 11.29 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.79e-05/0.3038, allocations: 335.2 kB / 382.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001922/0.304, allocations: 73.66 kB / 382.9 MB, free: 10.94 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001882/0.3042, allocations: 126 kB / 383 MB, free: 10.86 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003075/0.3045, allocations: 163.6 kB / 383.1 MB, free: 10.78 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.3045, allocations: 0 / 383.1 MB, free: 10.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005806/0.3051, allocations: 287.6 kB / 383.4 MB, free: 10.65 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.3051, allocations: 7.25 kB / 383.4 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.3051, allocations: 2.219 kB / 383.4 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002638/0.3054, allocations: 67.42 kB / 383.5 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000162/0.3056, allocations: 43.16 kB / 383.5 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004212/0.306, allocations: 0.6208 MB / 384.2 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001813/0.3062, allocations: 22.5 kB / 384.2 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.25e-05/0.3062, allocations: 7.578 kB / 384.2 MB, free: 10.05 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.0001155/0.3063, allocations: 138.1 kB / 384.3 MB, free: 9.914 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.854e-05/0.3064, allocations: 20.88 kB / 384.3 MB, free: 9.902 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.113e-05/0.3065, allocations: 28.83 kB / 384.4 MB, free: 9.879 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.3065, allocations: 3.75 kB / 384.4 MB, free: 9.879 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.3065, allocations: 4.812 kB / 384.4 MB, free: 9.875 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.3065, allocations: 1.031 kB / 384.4 MB, free: 9.875 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009746/0.3075, allocations: 0.5926 MB / 385 MB, free: 9.441 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.608e-06/0.3075, allocations: 5.281 kB / 385 MB, free: 9.438 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000186/0.3077, allocations: 28.78 kB / 385 MB, free: 9.438 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002282/0.3079, allocations: 76.34 kB / 385.1 MB, free: 9.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.624e-05/0.308, allocations: 9.203 kB / 385.1 MB, free: 9.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004919/0.3085, allocations: 0.6165 MB / 385.7 MB, free: 8.844 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.3085, allocations: 5.469 kB / 385.7 MB, free: 8.84 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007039/0.3092, allocations: 416.6 kB / 386.1 MB, free: 8.582 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001101/0.3093, allocations: 114.3 kB / 386.2 MB, free: 8.469 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.279e-05/0.3094, allocations: 6.656 kB / 386.2 MB, free: 8.465 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/0.3096, allocations: 20.39 kB / 386.3 MB, free: 8.461 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.46e-05/0.3097, allocations: 23.23 kB / 386.3 MB, free: 8.457 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.81e-05/0.3097, allocations: 9.828 kB / 386.3 MB, free: 8.453 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001718/0.3099, allocations: 152.3 kB / 386.4 MB, free: 8.355 MB / 318.1 MB Notification: Performance of sort global known variables: time 8.01e-07/0.3099, allocations: 0 / 386.4 MB, free: 8.355 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000415/0.3103, allocations: 63.98 kB / 386.5 MB, free: 8.348 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.0002428/0.3105, allocations: 124.2 kB / 386.6 MB, free: 8.254 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006158/0.3112, allocations: 205.1 kB / 386.8 MB, free: 8.191 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.3112, allocations: 0 / 386.8 MB, free: 8.191 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002543/0.3114, allocations: 99.59 kB / 386.9 MB, free: 8.164 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004309/0.3119, allocations: 30.7 kB / 386.9 MB, free: 8.152 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001393/0.3133, allocations: 0.6673 MB / 387.6 MB, free: 7.723 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002211/0.3135, allocations: 0.7362 MB / 388.4 MB, free: 7.027 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.249e-05/0.3136, allocations: 20.83 kB / 388.4 MB, free: 7.02 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.534e-05/0.3137, allocations: 21.3 kB / 388.4 MB, free: 7.008 MB / 318.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3137, allocations: 0 / 388.4 MB, free: 7.008 MB / 318.1 MB Notification: Performance of Templates: time 0.008834/0.3225, allocations: 3.239 MB / 391.6 MB, free: 6.766 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)