Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Digital.Examples.BUF3S.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.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Digital.Examples.BUF3S") translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Digital.Examples.BUF3S") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01033/0.01033, allocations: 100.4 kB / 15.73 MB, free: 6.016 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.001792/0.001792, allocations: 185.8 kB / 16.67 MB, free: 5.934 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.943/1.943, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.001276/0.001276, allocations: 50.3 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1251, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.00296/0.1281, allocations: 1.517 MB / 374.7 MB, free: 15.78 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002068/0.1302, allocations: 0.9014 MB / 375.6 MB, free: 14.87 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.386e-05/0.1303, allocations: 0 / 375.6 MB, free: 14.87 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001054/0.1304, allocations: 7.938 kB / 375.6 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.866e-05/0.1305, allocations: 19.8 kB / 375.6 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003073/0.1308, allocations: 47.88 kB / 375.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002545/0.1311, allocations: 151.8 kB / 375.8 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.1312, allocations: 15.98 kB / 375.8 MB, free: 14.63 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004649/0.1317, allocations: 395.2 kB / 376.2 MB, free: 14.24 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001555/0.1318, allocations: 59.77 kB / 376.3 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.042e-05/0.1319, allocations: 15.94 kB / 376.3 MB, free: 14.17 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.258e-05/0.1319, allocations: 12 kB / 376.3 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.669e-05/0.132, allocations: 63.7 kB / 376.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001357/0.1322, allocations: 115.1 kB / 376.5 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003791/0.1326, allocations: 358.5 kB / 376.8 MB, free: 13.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1326, allocations: 0 / 376.8 MB, free: 13.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1326, allocations: 0 / 376.8 MB, free: 13.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.1326, allocations: 0 / 376.8 MB, free: 13.63 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009169/0.1335, allocations: 0.7382 MB / 377.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.1336, allocations: 12.03 kB / 377.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000114/0.1337, allocations: 40.7 kB / 377.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003177/0.134, allocations: 274.7 kB / 377.9 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.1341, allocations: 4.375 kB / 377.9 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.537e-05/0.1341, allocations: 8.375 kB / 377.9 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003307/0.1344, allocations: 125.9 kB / 378 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.1345, allocations: 3.984 kB / 378 MB, free: 12.31 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.639e-05/0.1345, allocations: 11.98 kB / 378 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.1345, allocations: 0 / 378 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001428/0.1346, allocations: 55.95 kB / 378.1 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007128/0.1354, allocations: 468.5 kB / 378.5 MB, free: 11.74 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000198/0.1356, allocations: 90.55 kB / 378.6 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.1357, allocations: 84.89 kB / 378.7 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.186e-05/0.1358, allocations: 0 / 378.7 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003807/0.1361, allocations: 210.7 kB / 378.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.753e-06/0.1362, allocations: 0 / 378.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.000816/0.137, allocations: 468.2 kB / 379.4 MB, free: 10.84 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.976e-05/0.1371, allocations: 162.2 kB / 379.5 MB, free: 10.64 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006902/0.1378, allocations: 0.5168 MB / 380 MB, free: 10.11 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.115e-05/0.1378, allocations: 33.69 kB / 380.1 MB, free: 10.07 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.528e-05/0.1379, allocations: 93.14 kB / 380.2 MB, free: 9.98 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.448e-05/0.138, allocations: 39.72 kB / 380.2 MB, free: 9.941 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.1381, allocations: 85.5 kB / 380.3 MB, free: 9.852 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.1382, allocations: 330.8 kB / 380.6 MB, free: 9.52 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.1383, allocations: 51.97 kB / 380.7 MB, free: 9.469 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001262/0.1385, allocations: 73.78 kB / 380.7 MB, free: 9.391 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003213/0.1388, allocations: 339.2 kB / 381.1 MB, free: 9.004 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.1388, allocations: 0 / 381.1 MB, free: 9.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005168/0.1393, allocations: 384.6 kB / 381.4 MB, free: 8.598 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.281e-05/0.1394, allocations: 127.9 kB / 381.6 MB, free: 8.449 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.1394, allocations: 3.984 kB / 381.6 MB, free: 8.445 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.1395, allocations: 0 / 381.6 MB, free: 8.445 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.537e-05/0.1395, allocations: 4 kB / 381.6 MB, free: 8.441 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.1395, allocations: 3.938 kB / 381.6 MB, free: 8.438 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001428/0.1397, allocations: 8 kB / 381.6 MB, free: 8.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.08e-05/0.1397, allocations: 47.92 kB / 381.6 MB, free: 8.383 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.x,$PRE.bUF3S.inertialDelaySensitive.x,bUF3S.yy,bUF3S.nextstate,x_table.y,e_table.y,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003283/0.1401, allocations: 366.2 kB / 382 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.183e-05/0.1401, allocations: 43.7 kB / 382 MB, free: 7.945 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001005/0.1402, allocations: 67.14 kB / 382.1 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1402, allocations: 0 / 382.1 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1403, allocations: 0 / 382.1 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1403, allocations: 0 / 382.1 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009413/0.1412, allocations: 0.8095 MB / 382.9 MB, free: 6.988 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.1412, allocations: 0 / 382.9 MB, free: 6.988 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.049e-06/0.1412, allocations: 0 / 382.9 MB, free: 6.988 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.1412, allocations: 0 / 382.9 MB, free: 6.988 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.014e-05/0.1413, allocations: 15.98 kB / 382.9 MB, free: 6.973 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.1413, allocations: 0 / 382.9 MB, free: 6.973 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.1413, allocations: 7.938 kB / 382.9 MB, free: 6.965 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006251/0.1419, allocations: 0.5253 MB / 383.5 MB, free: 6.398 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002927/0.1422, allocations: 248.9 kB / 383.7 MB, free: 6.137 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.397e-05/0.1423, allocations: 4 kB / 383.7 MB, free: 6.133 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/0.1424, allocations: 19.98 kB / 383.7 MB, free: 6.113 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.1426, allocations: 23.92 kB / 383.8 MB, free: 6.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.892e-05/0.1426, allocations: 43.98 kB / 383.8 MB, free: 6.047 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004497/0.1431, allocations: 386.9 kB / 384.2 MB, free: 5.668 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1431, allocations: 3.938 kB / 384.2 MB, free: 5.664 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002957/0.1434, allocations: 40 kB / 384.2 MB, free: 5.625 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,bUF3S.yy,bUF3S.nextstate,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001559/0.1435, allocations: 119 kB / 384.3 MB, free: 5.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005461/0.1441, allocations: 437.5 kB / 384.8 MB, free: 5.023 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1441, allocations: 0 / 384.8 MB, free: 5.023 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004064/0.1445, allocations: 377.6 kB / 385.1 MB, free: 4.605 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006587/0.1452, allocations: 133.2 kB / 385.3 MB, free: 4.477 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.1464, allocations: 0.6608 MB / 385.9 MB, free: 3.789 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000524/0.1469, allocations: 0.7983 MB / 386.7 MB, free: 2.961 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.801e-05/0.147, allocations: 8.672 kB / 386.7 MB, free: 2.949 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.679e-05/0.147, allocations: 15.44 kB / 386.7 MB, free: 2.934 MB / 318.1 MB Notification: Performance of SimCode: time 1.844e-06/0.147, allocations: 0 / 386.7 MB, free: 2.934 MB / 318.1 MB Notification: Performance of Templates: time 0.01112/0.1582, allocations: 4.38 MB / 391.1 MB, free: 14.54 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Digital.Examples.BUF3S.makefile (rm -f Modelica_3.1_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Digital.Examples.BUF3S.sim & ./Modelica_3.1_Modelica.Electrical.Digital.Examples.BUF3S -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1)