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.009/0.009, allocations: 102.8 kB / 15.73 MB, free: 5.961 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.001696/0.001696, allocations: 190 kB / 16.67 MB, free: 5.883 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.68/1.68, allocations: 205.1 MB / 222.6 MB, free: 4.367 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.001318/0.001318, allocations: 50.45 kB / 326.5 MB, free: 14.57 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1104, allocations: 46.63 MB / 373.2 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004061/0.1145, allocations: 2.193 MB / 375.4 MB, free: 15.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001429/0.116, allocations: 0.729 MB / 376.1 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.1161, allocations: 4 kB / 376.1 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002022/0.1163, allocations: 31.66 kB / 376.1 MB, free: 14.42 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001745/0.1165, allocations: 67.48 kB / 376.2 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003259/0.1168, allocations: 111.7 kB / 376.3 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002875/0.1171, allocations: 255.4 kB / 376.5 MB, free: 14 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001617/0.1173, allocations: 68.28 kB / 376.6 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001541/0.1175, allocations: 119.5 kB / 376.7 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002203/0.1177, allocations: 119.5 kB / 376.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.202e-05/0.1177, allocations: 16 kB / 376.9 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001372/0.1179, allocations: 75.94 kB / 376.9 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.157e-05/0.118, allocations: 47.84 kB / 377 MB, free: 13.56 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001474/0.1181, allocations: 107.5 kB / 377.1 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00046/0.1186, allocations: 279.1 kB / 377.4 MB, free: 13.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1186, allocations: 0 / 377.4 MB, free: 13.18 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1186, allocations: 0 / 377.4 MB, free: 13.18 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.828e-06/0.1186, allocations: 0 / 377.4 MB, free: 13.18 MB / 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.0009029/0.1195, allocations: 0.5146 MB / 377.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.487e-05/0.1196, allocations: 8.031 kB / 377.9 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.462e-05/0.1197, allocations: 24.66 kB / 377.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000412/0.1201, allocations: 251.8 kB / 378.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.1202, allocations: 12.81 kB / 378.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.735e-05/0.1202, allocations: 24.38 kB / 378.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004222/0.1206, allocations: 222 kB / 378.4 MB, free: 12.03 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.1207, allocations: 11.98 kB / 378.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.697e-05/0.1207, allocations: 8 kB / 378.4 MB, free: 12.01 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.1207, allocations: 4 kB / 378.4 MB, free: 12.01 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003192/0.121, allocations: 161 kB / 378.6 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.1222, allocations: 0.7719 MB / 379.4 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003677/0.1226, allocations: 134.5 kB / 379.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.1227, allocations: 64.83 kB / 379.6 MB, free: 10.81 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.1227, allocations: 7.938 kB / 379.6 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.137e-05/0.1228, allocations: 38.55 kB / 379.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.493e-06/0.1228, allocations: 0 / 379.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.001872/0.1246, allocations: 0.9789 MB / 380.6 MB, free: 9.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/0.1247, allocations: 59.41 kB / 380.6 MB, free: 9.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002055/0.1249, allocations: 207.4 kB / 380.8 MB, free: 9.379 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.1249, allocations: 29.7 kB / 380.9 MB, free: 9.344 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.662e-05/0.125, allocations: 148.1 kB / 381 MB, free: 9.191 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.036e-05/0.1251, allocations: 70.95 kB / 381.1 MB, free: 9.121 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.55e-05/0.1252, allocations: 53.69 kB / 381.1 MB, free: 9.062 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.1253, allocations: 330.8 kB / 381.5 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.1255, allocations: 75.95 kB / 381.5 MB, free: 8.656 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001686/0.1257, allocations: 123.6 kB / 381.7 MB, free: 8.523 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003433/0.126, allocations: 168.7 kB / 381.8 MB, free: 8.348 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.126, allocations: 0 / 381.8 MB, free: 8.348 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005066/0.1266, allocations: 295.7 kB / 382.1 MB, free: 8.051 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.1266, allocations: 8 kB / 382.1 MB, free: 8.043 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.1266, allocations: 0 / 382.1 MB, free: 8.043 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00032/0.1269, allocations: 68.81 kB / 382.2 MB, free: 7.973 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/0.1271, allocations: 39.92 kB / 382.2 MB, free: 7.934 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005101/0.1276, allocations: 0.6227 MB / 382.8 MB, free: 7.285 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001841/0.1278, allocations: 23.97 kB / 382.9 MB, free: 7.262 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.962e-05/0.1278, allocations: 8 kB / 382.9 MB, free: 7.254 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.0001366/0.128, allocations: 133.8 kB / 383 MB, free: 7.113 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.471e-05/0.128, allocations: 19.72 kB / 383 MB, free: 7.094 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.068e-05/0.1281, allocations: 25.86 kB / 383 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.1281, allocations: 12 kB / 383.1 MB, free: 7.059 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1281, allocations: 3.938 kB / 383.1 MB, free: 7.055 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.1281, allocations: 0 / 383.1 MB, free: 7.055 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008353/0.129, allocations: 0.5998 MB / 383.7 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.129, allocations: 0 / 383.7 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001574/0.1292, allocations: 36.05 kB / 383.7 MB, free: 6.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001801/0.1293, allocations: 68.84 kB / 383.8 MB, free: 6.285 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.206e-05/0.1294, allocations: 4 kB / 383.8 MB, free: 6.281 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004592/0.1298, allocations: 0.6225 MB / 384.4 MB, free: 5.633 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1298, allocations: 0 / 384.4 MB, free: 5.633 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005971/0.1305, allocations: 421.7 kB / 384.8 MB, free: 5.195 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001108/0.1306, allocations: 112.9 kB / 384.9 MB, free: 5.066 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.256e-05/0.1306, allocations: 4 kB / 384.9 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.1308, allocations: 23.97 kB / 384.9 MB, free: 5.039 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.978e-05/0.1309, allocations: 27.97 kB / 385 MB, free: 5.012 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.1309, allocations: 7.938 kB / 385 MB, free: 5.004 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001763/0.1311, allocations: 156.2 kB / 385.1 MB, free: 4.852 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1311, allocations: 0 / 385.1 MB, free: 4.852 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003476/0.1314, allocations: 71.94 kB / 385.2 MB, free: 4.781 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.0002329/0.1317, allocations: 115.2 kB / 385.3 MB, free: 4.656 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005317/0.1322, allocations: 199.8 kB / 385.5 MB, free: 4.461 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.1322, allocations: 0 / 385.5 MB, free: 4.461 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002368/0.1325, allocations: 103.8 kB / 385.6 MB, free: 4.359 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003921/0.1329, allocations: 32.39 kB / 385.6 MB, free: 4.328 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001346/0.1342, allocations: 0.6688 MB / 386.3 MB, free: 3.625 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003235/0.1346, allocations: 0.7363 MB / 387 MB, free: 2.863 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.216e-05/0.1347, allocations: 25.94 kB / 387.1 MB, free: 2.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.884e-05/0.1347, allocations: 15.44 kB / 387.1 MB, free: 2.824 MB / 318.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1347, allocations: 4 kB / 387.1 MB, free: 2.82 MB / 318.1 MB Notification: Performance of Templates: time 0.007995/0.1427, allocations: 3.215 MB / 390.3 MB, free: 15.6 MB / 334.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)