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.9009/0.9009, allocations: 110.8 MB / 118.3 MB, free: 14.47 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001883/0.001883, allocations: 151.5 kB / 144 MB, free: 4.797 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.243e-05/2.246e-05, allocations: 4 kB / 173.8 MB, free: 22.82 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04705/0.0471, allocations: 25.17 MB / 199 MB, free: 13.71 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.04763/0.09478, allocations: 33.05 MB / 232.1 MB, free: 12.61 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000167/0.09499, allocations: 59.97 kB / 232.1 MB, free: 12.55 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005678/0.1007, allocations: 1.961 MB / 234.1 MB, free: 10.58 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1007, allocations: 0 / 234.1 MB, free: 10.58 MB / 186.7 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.1007, allocations: 0 / 234.1 MB, free: 10.58 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.000412/0.1011, allocations: 481.1 kB / 234.6 MB, free: 10.04 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.1012, allocations: 8.031 kB / 234.6 MB, free: 10.03 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.43e-05/0.1012, allocations: 11.91 kB / 234.6 MB, free: 10.02 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001292/0.1014, allocations: 186.9 kB / 234.8 MB, free: 9.797 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.1014, allocations: 4 kB / 234.8 MB, free: 9.793 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.901e-05/0.1014, allocations: 4 kB / 234.8 MB, free: 9.789 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001242/0.1015, allocations: 43.98 kB / 234.8 MB, free: 9.746 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001344/0.1017, allocations: 85.67 kB / 234.9 MB, free: 9.656 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.1017, allocations: 3.938 kB / 234.9 MB, free: 9.652 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.807e-05/0.1017, allocations: 3.953 kB / 234.9 MB, free: 9.648 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.1017, allocations: 7.938 kB / 234.9 MB, free: 9.641 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004438/0.1022, allocations: 305.4 kB / 235.2 MB, free: 9.305 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00011/0.1023, allocations: 66.52 kB / 235.3 MB, free: 9.23 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.028e-05/0.1024, allocations: 48.95 kB / 235.3 MB, free: 9.18 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.094e-05/0.1024, allocations: 0 / 235.3 MB, free: 9.18 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001766/0.1026, allocations: 154.7 kB / 235.5 MB, free: 9.004 MB / 186.7 MB Notification: Performance of pre-optimization done (n=11): time 1.272e-06/0.1026, allocations: 0 / 235.5 MB, free: 9.004 MB / 186.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003039/0.1029, allocations: 149.6 kB / 235.6 MB, free: 8.852 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.365e-05/0.103, allocations: 170.2 kB / 235.8 MB, free: 8.648 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.1031, allocations: 117.2 kB / 235.9 MB, free: 8.523 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/0.1031, allocations: 29.7 kB / 235.9 MB, free: 8.488 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.066e-05/0.1032, allocations: 108 kB / 236 MB, free: 8.379 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.363e-05/0.1032, allocations: 19.72 kB / 236.1 MB, free: 8.359 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.482e-06/0.1033, allocations: 0 / 236.1 MB, free: 8.359 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.1034, allocations: 322.8 kB / 236.4 MB, free: 8.035 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.647e-05/0.1034, allocations: 39.92 kB / 236.4 MB, free: 7.996 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.724e-05/0.1035, allocations: 32 kB / 236.4 MB, free: 7.965 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001139/0.1036, allocations: 42.47 kB / 236.5 MB, free: 7.926 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1036, allocations: 0 / 236.5 MB, free: 7.926 MB / 186.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002395/0.1039, allocations: 153.4 kB / 236.6 MB, free: 7.77 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.184e-05/0.104, allocations: 118.8 kB / 236.7 MB, free: 7.629 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.104, allocations: 0 / 236.7 MB, free: 7.629 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.104, allocations: 4 kB / 236.8 MB, free: 7.625 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.565e-05/0.104, allocations: 0 / 236.8 MB, free: 7.625 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.104, allocations: 3.984 kB / 236.8 MB, free: 7.621 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.804e-05/0.1041, allocations: 4.141 kB / 236.8 MB, free: 7.617 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.45e-05/0.1041, allocations: 12 kB / 236.8 MB, free: 7.605 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.0001262/0.1043, allocations: 180.2 kB / 236.9 MB, free: 7.41 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.383e-05/0.1043, allocations: 15.86 kB / 237 MB, free: 7.395 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.239e-05/0.1043, allocations: 8.625 kB / 237 MB, free: 7.379 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.1043, allocations: 3.984 kB / 237 MB, free: 7.375 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.1044, allocations: 7.984 kB / 237 MB, free: 7.367 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.1044, allocations: 0 / 237 MB, free: 7.367 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001457/0.1045, allocations: 174.2 kB / 237.2 MB, free: 7.16 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1045, allocations: 0 / 237.2 MB, free: 7.16 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.175e-06/0.1045, allocations: 0 / 237.2 MB, free: 7.16 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1045, allocations: 7.938 kB / 237.2 MB, free: 7.152 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.1046, allocations: 4 kB / 237.2 MB, free: 7.148 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.065e-06/0.1046, allocations: 3.953 kB / 237.2 MB, free: 7.145 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.1046, allocations: 0 / 237.2 MB, free: 7.145 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000274/0.1049, allocations: 200.9 kB / 237.4 MB, free: 6.93 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.824e-05/0.1049, allocations: 85.02 kB / 237.4 MB, free: 6.828 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.972e-05/0.105, allocations: 12.12 kB / 237.5 MB, free: 6.816 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.331e-05/0.105, allocations: 11.98 kB / 237.5 MB, free: 6.805 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.1051, allocations: 15.94 kB / 237.5 MB, free: 6.789 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.1051, allocations: 4 kB / 237.5 MB, free: 6.785 MB / 186.7 MB Notification: Performance of sorting global known variables: time 6.126e-05/0.1052, allocations: 99.27 kB / 237.6 MB, free: 6.688 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1052, allocations: 0 / 237.6 MB, free: 6.688 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0002589/0.1054, allocations: 52 kB / 237.6 MB, free: 6.637 MB / 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.0002442/0.1057, allocations: 155.1 kB / 237.8 MB, free: 6.477 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0003428/0.106, allocations: 313.5 kB / 238.1 MB, free: 6.121 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.1061, allocations: 4 kB / 238.1 MB, free: 6.117 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001586/0.1062, allocations: 182.8 kB / 238.3 MB, free: 5.914 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000124/0.1064, allocations: 9.125 kB / 238.3 MB, free: 5.906 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003455/0.1067, allocations: 156.4 kB / 238.4 MB, free: 5.734 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002856/0.107, allocations: 0.708 MB / 239.1 MB, free: 5 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 2.105e-05/0.107, allocations: 6.406 kB / 239.2 MB, free: 4.996 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.758e-05/0.1071, allocations: 11.44 kB / 239.2 MB, free: 4.988 MB / 186.7 MB Notification: Performance of SimCode: time 2.71e-07/0.1071, allocations: 3.938 kB / 239.2 MB, free: 4.984 MB / 186.7 MB Notification: Performance of Templates: time 0.003728/0.1108, allocations: 1.446 MB / 240.6 MB, free: 3.543 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)