Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001068/0.001068, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.122/1.122, allocations: 194.5 MB / 211.6 MB, free: 3.051 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001617/0.001617, allocations: 125.2 kB / 256.9 MB, free: 4.367 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003094/0.0003094, allocations: 8 kB / 310.5 MB, free: 14.95 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08634/0.08667, allocations: 44.5 MB / 355.1 MB, free: 2.344 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2341/0.3208, allocations: 71.61 MB / 426.7 MB, free: 17.91 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001861/0.321, allocations: 71.59 kB / 426.7 MB, free: 17.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005368/0.3264, allocations: 2.138 MB / 428.9 MB, free: 16 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3264, allocations: 0 / 428.9 MB, free: 16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.3264, allocations: 4 kB / 428.9 MB, free: 16 MB / 314.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.0003124/0.3268, allocations: 495.2 kB / 429.4 MB, free: 15.46 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.3268, allocations: 8.031 kB / 429.4 MB, free: 15.45 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.241e-05/0.3269, allocations: 15.47 kB / 429.4 MB, free: 15.44 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.613e-05/0.3269, allocations: 173 kB / 429.6 MB, free: 15.23 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.327, allocations: 9.25 kB / 429.6 MB, free: 15.23 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.053e-05/0.327, allocations: 12.94 kB / 429.6 MB, free: 15.22 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001596/0.3272, allocations: 97.41 kB / 429.7 MB, free: 15.14 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.3272, allocations: 0 / 429.7 MB, free: 15.14 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.3272, allocations: 0 / 429.7 MB, free: 15.14 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.3272, allocations: 4 kB / 429.7 MB, free: 15.13 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.157e-05/0.3273, allocations: 47.09 kB / 429.7 MB, free: 15.1 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003698/0.3277, allocations: 351.5 kB / 430.1 MB, free: 14.75 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001006/0.3278, allocations: 72.11 kB / 430.1 MB, free: 14.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.01e-05/0.3278, allocations: 0 / 430.1 MB, free: 14.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001369/0.3279, allocations: 158.4 kB / 430.3 MB, free: 14.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 1.242e-06/0.328, allocations: 1 kB / 430.3 MB, free: 14.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003562/0.3283, allocations: 422.2 kB / 430.7 MB, free: 14.11 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.973e-05/0.3284, allocations: 177.8 kB / 430.9 MB, free: 13.9 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.985e-05/0.3285, allocations: 124 kB / 431 MB, free: 13.78 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.3285, allocations: 29.64 kB / 431 MB, free: 13.74 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.621e-05/0.3285, allocations: 95.67 kB / 431.1 MB, free: 13.65 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.3285, allocations: 26.84 kB / 431.1 MB, free: 13.63 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.114e-06/0.3286, allocations: 4 kB / 431.1 MB, free: 13.63 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.905e-05/0.3286, allocations: 318.6 kB / 431.5 MB, free: 13.31 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.037e-05/0.3287, allocations: 34.86 kB / 431.5 MB, free: 13.29 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.598e-05/0.3287, allocations: 38.09 kB / 431.5 MB, free: 13.26 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.416e-05/0.3288, allocations: 152.2 kB / 431.7 MB, free: 13.11 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3288, allocations: 0 / 431.7 MB, free: 13.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002043/0.329, allocations: 270 kB / 431.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.774e-05/0.3291, allocations: 119 kB / 432.1 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.3291, allocations: 0 / 432.1 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.3291, allocations: 0 / 432.1 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.295e-05/0.3291, allocations: 6.141 kB / 432.1 MB, free: 12.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.3291, allocations: 4 kB / 432.1 MB, free: 12.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.151e-05/0.3292, allocations: 14.39 kB / 432.1 MB, free: 12.69 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.354e-05/0.3292, allocations: 10.81 kB / 432.1 MB, free: 12.68 MB / 314.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 () * Number of clocked 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 9.225e-05/0.3293, allocations: 198 kB / 432.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.742e-05/0.3293, allocations: 11.89 kB / 432.3 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.741e-05/0.3294, allocations: 15.62 kB / 432.3 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.3294, allocations: 0 / 432.3 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3294, allocations: 0 / 432.3 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.3294, allocations: 0 / 432.3 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.566e-05/0.3295, allocations: 211.2 kB / 432.5 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3295, allocations: 4 kB / 432.5 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.27e-06/0.3295, allocations: 3.938 kB / 432.5 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.3295, allocations: 0 / 432.5 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.3295, allocations: 4 kB / 432.5 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.3295, allocations: 0 / 432.5 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3296, allocations: 0 / 432.5 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002453/0.3298, allocations: 278.3 kB / 432.8 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.923e-05/0.3298, allocations: 85.02 kB / 432.9 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.561e-05/0.3299, allocations: 7.984 kB / 432.9 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.499e-05/0.3299, allocations: 12 kB / 432.9 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.659e-05/0.33, allocations: 11.67 kB / 432.9 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.006e-05/0.33, allocations: 4 kB / 432.9 MB, free: 11.82 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.871e-05/0.3301, allocations: 108.1 kB / 433 MB, free: 11.72 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3301, allocations: 1.406 kB / 433 MB, free: 11.72 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002149/0.3303, allocations: 54.94 kB / 433.1 MB, free: 11.67 MB / 314.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) * Number of clocked states: 0 () * 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.0001713/0.3305, allocations: 147.5 kB / 433.2 MB, free: 11.53 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002236/0.3307, allocations: 329 kB / 433.5 MB, free: 11.19 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.3307, allocations: 0 / 433.5 MB, free: 11.19 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001039/0.3308, allocations: 198.4 kB / 433.7 MB, free: 11.01 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.482e-05/0.3309, allocations: 7.953 kB / 433.7 MB, free: 11 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003087/0.3312, allocations: 247.5 kB / 434 MB, free: 10.76 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001105/0.3313, allocations: 0.7072 MB / 434.7 MB, free: 10.03 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.615e-05/0.3314, allocations: 4 kB / 434.7 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.623e-05/0.3314, allocations: 11.44 kB / 434.7 MB, free: 10.02 MB / 314.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3314, allocations: 3.938 kB / 434.7 MB, free: 10.01 MB / 314.7 MB Notification: Performance of Templates: time 0.003156/0.3346, allocations: 1.415 MB / 436.1 MB, free: 8.664 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1)