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.001197/0.001197, allocations: 171.5 kB / 7.638 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.364/1.364, allocations: 170.6 MB / 178.7 MB, free: 15.65 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.001716/0.001716, allocations: 115.4 kB / 218 MB, free: 8.398 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.558e-05/1.561e-05, allocations: 0 / 262.2 MB, free: 26.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06609/0.06612, allocations: 38.78 MB / 301 MB, free: 3.621 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2605/0.3266, allocations: 65.55 MB / 366.5 MB, free: 2.723 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002082/0.3269, allocations: 63.84 kB / 366.6 MB, free: 2.691 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005807/0.3327, allocations: 2.118 MB / 368.7 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3328, allocations: 0 / 368.7 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.3328, allocations: 4 kB / 368.7 MB, free: 0.8203 MB / 250.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.0004092/0.3332, allocations: 482.3 kB / 369.2 MB, free: 300 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.3333, allocations: 8.031 kB / 369.2 MB, free: 292 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.832e-05/0.3333, allocations: 11.91 kB / 369.2 MB, free: 280 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001425/0.3335, allocations: 174.9 kB / 369.4 MB, free: 64 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.654e-05/0.3335, allocations: 8 kB / 369.4 MB, free: 56 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.133e-05/0.3335, allocations: 7.984 kB / 369.4 MB, free: 48 kB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001296/0.3337, allocations: 44.2 kB / 369.4 MB, free: 20 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001811/0.3339, allocations: 89.88 kB / 369.5 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.3339, allocations: 0 / 369.5 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.558e-05/0.3339, allocations: 0 / 369.5 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-06/0.3339, allocations: 4 kB / 369.5 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005132/0.3344, allocations: 319.8 kB / 369.8 MB, free: 15.62 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001385/0.3346, allocations: 60.7 kB / 369.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.87e-05/0.3347, allocations: 48.84 kB / 369.9 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.311e-05/0.3347, allocations: 3.938 kB / 369.9 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/0.3349, allocations: 166.8 kB / 370.1 MB, free: 15.36 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 1.733e-06/0.3349, allocations: 0 / 370.1 MB, free: 15.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003118/0.3352, allocations: 147.7 kB / 370.3 MB, free: 15.24 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.3354, allocations: 164.3 kB / 370.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.3355, allocations: 122.8 kB / 370.5 MB, free: 14.92 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.622e-05/0.3355, allocations: 32.69 kB / 370.6 MB, free: 14.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.228e-05/0.3356, allocations: 99.03 kB / 370.7 MB, free: 14.79 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.735e-05/0.3356, allocations: 23.14 kB / 370.7 MB, free: 14.77 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.182e-06/0.3356, allocations: 0 / 370.7 MB, free: 14.77 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.3358, allocations: 325.8 kB / 371 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.735e-05/0.3358, allocations: 33.73 kB / 371 MB, free: 14.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.078e-05/0.3359, allocations: 33.89 kB / 371.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001242/0.336, allocations: 33.42 kB / 371.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.336, allocations: 7.891 kB / 371.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002447/0.3363, allocations: 151.1 kB / 371.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/0.3364, allocations: 114.8 kB / 371.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.3364, allocations: 0 / 371.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.3364, allocations: 4 kB / 371.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.871e-05/0.3365, allocations: 3.938 kB / 371.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.439e-06/0.3365, allocations: 4 kB / 371.4 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.293e-05/0.3365, allocations: 7.938 kB / 371.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.895e-05/0.3366, allocations: 8 kB / 371.4 MB, free: 14.09 MB / 266.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.0001393/0.3367, allocations: 184 kB / 371.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.212e-05/0.3367, allocations: 15.86 kB / 371.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.024e-05/0.3368, allocations: 7.938 kB / 371.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.3368, allocations: 4 kB / 371.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3368, allocations: 4 kB / 371.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3368, allocations: 0 / 371.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001515/0.337, allocations: 169.2 kB / 371.8 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.337, allocations: 0 / 371.8 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.244e-06/0.337, allocations: 4 kB / 371.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.289e-06/0.337, allocations: 7.938 kB / 371.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/0.337, allocations: 6.812 kB / 371.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.337, allocations: 0 / 371.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.337, allocations: 0 / 371.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002705/0.3373, allocations: 197.5 kB / 372 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.689e-05/0.3374, allocations: 89.09 kB / 372.1 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.267e-05/0.3374, allocations: 11.94 kB / 372.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.881e-05/0.3375, allocations: 8 kB / 372.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.695e-05/0.3376, allocations: 15.8 kB / 372.1 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.3376, allocations: 4 kB / 372.1 MB, free: 13.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.682e-05/0.3377, allocations: 103.2 kB / 372.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3377, allocations: 0 / 372.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002826/0.338, allocations: 55.94 kB / 372.3 MB, free: 13.19 MB / 266.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.0002319/0.3382, allocations: 142.8 kB / 372.4 MB, free: 13.05 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002965/0.3385, allocations: 312.8 kB / 372.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.3385, allocations: 0 / 372.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001389/0.3387, allocations: 195 kB / 372.9 MB, free: 12.55 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001045/0.3388, allocations: 4 kB / 372.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003163/0.3391, allocations: 160.1 kB / 373.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002907/0.3394, allocations: 0.7002 MB / 373.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.936e-05/0.3394, allocations: 4 kB / 373.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.735e-05/0.3394, allocations: 15.42 kB / 373.8 MB, free: 11.65 MB / 266.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3394, allocations: 0 / 373.8 MB, free: 11.65 MB / 266.7 MB Notification: Performance of Templates: time 0.003618/0.3431, allocations: 1.398 MB / 375.2 MB, free: 10.27 MB / 266.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)