Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.9691/0.9691, allocations: 110.8 MB / 123.3 MB, free: 10.75 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001834/0.001834, allocations: 147.4 kB / 149.1 MB, free: 0.9609 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.594e-05/2.596e-05, allocations: 4 kB / 180.2 MB, free: 17.57 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05287/0.05292, allocations: 25.17 MB / 205.4 MB, free: 8.445 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06263/0.1156, allocations: 33.73 MB / 239.1 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002603/0.1159, allocations: 51.98 kB / 239.2 MB, free: 6.609 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008057/0.124, allocations: 1.961 MB / 241.1 MB, free: 4.645 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.1241, allocations: 0 / 241.1 MB, free: 4.645 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.237e-05/0.1241, allocations: 7.938 kB / 241.1 MB, free: 4.637 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006262/0.1247, allocations: 485.1 kB / 241.6 MB, free: 4.094 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.885e-05/0.1248, allocations: 11.97 kB / 241.6 MB, free: 4.082 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.009e-05/0.1249, allocations: 11.91 kB / 241.6 MB, free: 4.07 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001872/0.1251, allocations: 174.9 kB / 241.8 MB, free: 3.859 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.469e-05/0.1251, allocations: 8 kB / 241.8 MB, free: 3.852 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.411e-05/0.1252, allocations: 12 kB / 241.8 MB, free: 3.84 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002924/0.1255, allocations: 93.66 kB / 241.9 MB, free: 3.742 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.1255, allocations: 0 / 241.9 MB, free: 3.742 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.24e-05/0.1255, allocations: 4 kB / 241.9 MB, free: 3.738 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.896e-06/0.1256, allocations: 3.953 kB / 241.9 MB, free: 3.734 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001486/0.1257, allocations: 59.91 kB / 242 MB, free: 3.676 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006987/0.1264, allocations: 336.8 kB / 242.3 MB, free: 3.297 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002008/0.1267, allocations: 70.52 kB / 242.4 MB, free: 3.219 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000114/0.1268, allocations: 52.91 kB / 242.4 MB, free: 3.164 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.448e-05/0.1268, allocations: 0 / 242.4 MB, free: 3.164 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003071/0.1271, allocations: 162.6 kB / 242.6 MB, free: 2.98 MB / 186.7 MB Notification: Performance of pre-optimization done (n=11): time 4.448e-06/0.1271, allocations: 4 kB / 242.6 MB, free: 2.977 MB / 186.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005019/0.1277, allocations: 212.9 kB / 242.8 MB, free: 2.75 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001312/0.1278, allocations: 170.3 kB / 243 MB, free: 2.547 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001484/0.128, allocations: 125.2 kB / 243.1 MB, free: 2.414 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.128, allocations: 33.69 kB / 243.1 MB, free: 2.375 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.818e-05/0.1281, allocations: 96.05 kB / 243.2 MB, free: 2.277 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.631e-05/0.1281, allocations: 27.69 kB / 243.2 MB, free: 2.25 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.023e-05/0.1282, allocations: 4 kB / 243.2 MB, free: 2.246 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.1283, allocations: 326.8 kB / 243.6 MB, free: 1.918 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.195e-05/0.1284, allocations: 32 kB / 243.6 MB, free: 1.887 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.319e-05/0.1285, allocations: 39.98 kB / 243.6 MB, free: 1.848 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001773/0.1287, allocations: 144 kB / 243.8 MB, free: 1.684 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.1287, allocations: 0 / 243.8 MB, free: 1.684 MB / 186.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004222/0.1292, allocations: 271.7 kB / 244 MB, free: 1.391 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.913e-05/0.1293, allocations: 118.8 kB / 244.1 MB, free: 1.25 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.1293, allocations: 0 / 244.1 MB, free: 1.25 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.1293, allocations: 0 / 244.1 MB, free: 1.25 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.813e-05/0.1294, allocations: 11.88 kB / 244.2 MB, free: 1.238 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.1294, allocations: 4 kB / 244.2 MB, free: 1.234 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.945e-05/0.1295, allocations: 12.06 kB / 244.2 MB, free: 1.223 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.98e-05/0.1296, allocations: 12 kB / 244.2 MB, free: 1.211 MB / 186.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition1,$whenCondition2,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,And1.u2,And1.y,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001691/0.1297, allocations: 176.4 kB / 244.4 MB, free: 1.02 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.727e-05/0.1298, allocations: 15.86 kB / 244.4 MB, free: 1.004 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.552e-05/0.1299, allocations: 8.625 kB / 244.4 MB, free: 0.9883 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1299, allocations: 3.938 kB / 244.4 MB, free: 0.9844 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.1299, allocations: 8 kB / 244.4 MB, free: 0.9766 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.1299, allocations: 3.984 kB / 244.4 MB, free: 0.9727 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002413/0.1301, allocations: 197.6 kB / 244.6 MB, free: 0.7305 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1302, allocations: 0 / 244.6 MB, free: 0.7305 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.048e-05/0.1302, allocations: 4.062 kB / 244.6 MB, free: 0.7266 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.226e-06/0.1302, allocations: 7.953 kB / 244.6 MB, free: 0.7188 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.1302, allocations: 3.984 kB / 244.6 MB, free: 0.7148 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.1302, allocations: 4 kB / 244.6 MB, free: 0.7109 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1303, allocations: 3.938 kB / 244.6 MB, free: 0.707 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005128/0.1308, allocations: 276.3 kB / 244.9 MB, free: 416 kB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.661e-05/0.1309, allocations: 85.02 kB / 245 MB, free: 312 kB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.669e-05/0.1309, allocations: 11.95 kB / 245 MB, free: 300 kB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.1311, allocations: 11.98 kB / 245 MB, free: 288 kB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.823e-05/0.1312, allocations: 7.984 kB / 245 MB, free: 280 kB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/0.1312, allocations: 8 kB / 245 MB, free: 272 kB / 186.7 MB Notification: Performance of sorting global known variables: time 8.403e-05/0.1313, allocations: 95.27 kB / 245.1 MB, free: 176 kB / 186.7 MB Notification: Performance of sort global known variables: time 2e-07/0.1313, allocations: 0 / 245.1 MB, free: 176 kB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004616/0.1318, allocations: 67.98 kB / 245.2 MB, free: 108 kB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$whenCondition2,table2.y,table2.nextTime,table2.index,table1.y,table1.nextTime,table1.index,And1.u2,And1.y,Pre1.u) * Number of discrete states: 9 (Pre1.u,table1.y,table1.nextTime,table1.index,$whenCondition1,table2.y,table2.nextTime,table2.index,$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1315/0.2632, allocations: 136.8 kB / 245.3 MB, free: 42.68 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004891/0.2638, allocations: 327.4 kB / 245.6 MB, free: 42.43 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.2638, allocations: 0 / 245.6 MB, free: 42.43 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002109/0.264, allocations: 192.4 kB / 245.8 MB, free: 42.3 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001718/0.2642, allocations: 7.312 kB / 245.8 MB, free: 42.3 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004817/0.2647, allocations: 168.2 kB / 246 MB, free: 42.22 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001381/0.2649, allocations: 0.7024 MB / 246.7 MB, free: 41.52 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 2.836e-05/0.2649, allocations: 7.719 kB / 246.7 MB, free: 41.52 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.995e-05/0.2649, allocations: 10.25 kB / 246.7 MB, free: 41.52 MB / 186.7 MB Notification: Performance of SimCode: time 4.81e-07/0.2649, allocations: 0.7812 kB / 246.7 MB, free: 41.52 MB / 186.7 MB Notification: Performance of Templates: time 0.005654/0.2706, allocations: 1.469 MB / 248.2 MB, free: 41.45 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1)