Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.008893/0.008893, allocations: 166.5 kB / 15.11 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.391/1.391, allocations: 170.8 MB / 186.6 MB, free: 0.9688 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001856/0.001856, allocations: 110.7 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003805/0.0003806, allocations: 12 kB / 274.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2412, allocations: 38.77 MB / 312.9 MB, free: 38.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08616/0.3274, allocations: 66.31 MB / 379.2 MB, free: 8.211 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001999/0.3277, allocations: 67.97 kB / 379.3 MB, free: 8.145 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0065/0.3342, allocations: 2.149 MB / 381.4 MB, free: 5.992 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3342, allocations: 0 / 381.4 MB, free: 5.992 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.3342, allocations: 4 kB / 381.4 MB, free: 5.988 MB / 282.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.0004508/0.3347, allocations: 485.9 kB / 381.9 MB, free: 5.441 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.3347, allocations: 12.03 kB / 381.9 MB, free: 5.43 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.132e-05/0.3348, allocations: 15.89 kB / 381.9 MB, free: 5.414 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.3349, allocations: 174.9 kB / 382.1 MB, free: 5.203 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.462e-05/0.335, allocations: 4 kB / 382.1 MB, free: 5.199 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.255e-05/0.335, allocations: 11.94 kB / 382.1 MB, free: 5.188 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002222/0.3352, allocations: 102.9 kB / 382.2 MB, free: 5.086 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/0.3352, allocations: 0 / 382.2 MB, free: 5.086 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.3352, allocations: 0 / 382.2 MB, free: 5.086 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.3353, allocations: 4 kB / 382.2 MB, free: 5.082 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000106/0.3354, allocations: 47.97 kB / 382.3 MB, free: 5.035 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005562/0.336, allocations: 344.7 kB / 382.6 MB, free: 4.648 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001508/0.3361, allocations: 74.55 kB / 382.7 MB, free: 4.566 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.282e-05/0.3362, allocations: 0 / 382.7 MB, free: 4.566 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002218/0.3364, allocations: 170.8 kB / 382.8 MB, free: 4.375 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 1.233e-06/0.3364, allocations: 0 / 382.8 MB, free: 4.375 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005628/0.337, allocations: 419.1 kB / 383.2 MB, free: 3.91 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.3371, allocations: 166.2 kB / 383.4 MB, free: 3.711 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.3372, allocations: 122.2 kB / 383.5 MB, free: 3.582 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.68e-05/0.3372, allocations: 29.7 kB / 383.5 MB, free: 3.547 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.668e-05/0.3373, allocations: 96.05 kB / 383.6 MB, free: 3.449 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.067e-05/0.3374, allocations: 27.78 kB / 383.7 MB, free: 3.422 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.027e-05/0.3374, allocations: 12 kB / 383.7 MB, free: 3.41 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.3376, allocations: 322.8 kB / 384 MB, free: 3.086 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.954e-05/0.3377, allocations: 35.92 kB / 384 MB, free: 3.051 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.31e-05/0.3377, allocations: 43.56 kB / 384.1 MB, free: 3.012 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001384/0.3379, allocations: 149 kB / 384.2 MB, free: 2.844 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3379, allocations: 0 / 384.2 MB, free: 2.844 MB / 282.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003421/0.3382, allocations: 266.7 kB / 384.5 MB, free: 2.555 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.693e-05/0.3384, allocations: 114.8 kB / 384.6 MB, free: 2.418 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3384, allocations: 0 / 384.6 MB, free: 2.418 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.3384, allocations: 4 kB / 384.6 MB, free: 2.414 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.251e-05/0.3384, allocations: 4 kB / 384.6 MB, free: 2.41 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.3384, allocations: 11.92 kB / 384.6 MB, free: 2.398 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.619e-05/0.3385, allocations: 11.88 kB / 384.6 MB, free: 2.387 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.886e-05/0.3386, allocations: 4 kB / 384.6 MB, free: 2.383 MB / 282.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 0.0001742/0.3387, allocations: 205.2 kB / 384.8 MB, free: 2.16 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.871e-05/0.3388, allocations: 7.906 kB / 384.8 MB, free: 2.152 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.294e-05/0.3388, allocations: 20.34 kB / 384.9 MB, free: 2.137 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.3388, allocations: 0 / 384.9 MB, free: 2.137 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.3388, allocations: 0 / 384.9 MB, free: 2.137 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.3388, allocations: 0 / 384.9 MB, free: 2.137 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001873/0.339, allocations: 209.5 kB / 385.1 MB, free: 1.883 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.339, allocations: 0 / 385.1 MB, free: 1.883 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.598e-05/0.339, allocations: 4.062 kB / 385.1 MB, free: 1.879 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.3391, allocations: 0 / 385.1 MB, free: 1.879 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.3391, allocations: 8 kB / 385.1 MB, free: 1.871 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.3391, allocations: 0 / 385.1 MB, free: 1.871 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3391, allocations: 0 / 385.1 MB, free: 1.871 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003987/0.3395, allocations: 280.3 kB / 385.3 MB, free: 1.566 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.149e-05/0.3396, allocations: 92.91 kB / 385.4 MB, free: 1.457 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.162e-05/0.3396, allocations: 7.984 kB / 385.4 MB, free: 1.449 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.277e-05/0.3397, allocations: 12 kB / 385.5 MB, free: 1.438 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.316e-05/0.3397, allocations: 7.984 kB / 385.5 MB, free: 1.43 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.3398, allocations: 4 kB / 385.5 MB, free: 1.426 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.724e-05/0.3398, allocations: 103.2 kB / 385.6 MB, free: 1.324 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3398, allocations: 4 kB / 385.6 MB, free: 1.32 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002743/0.3401, allocations: 52 kB / 385.6 MB, free: 1.27 MB / 282.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.0002628/0.3404, allocations: 136.5 kB / 385.8 MB, free: 1.129 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003965/0.3408, allocations: 333.5 kB / 386.1 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3408, allocations: 0 / 386.1 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002184/0.341, allocations: 194.8 kB / 386.3 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001588/0.3412, allocations: 11.94 kB / 386.3 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005372/0.3418, allocations: 249.2 kB / 386.5 MB, free: 264 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004025/0.3422, allocations: 0.7043 MB / 387.2 MB, free: 15.53 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.197e-05/0.3422, allocations: 11.94 kB / 387.2 MB, free: 15.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.303e-05/0.3422, allocations: 11.44 kB / 387.3 MB, free: 15.5 MB / 298.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3423, allocations: 0 / 387.3 MB, free: 15.5 MB / 298.7 MB Notification: Performance of Templates: time 0.00466/0.3469, allocations: 1.412 MB / 388.7 MB, free: 14.1 MB / 298.7 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1)