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.001411/0.001411, allocations: 188.6 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.329/1.329, allocations: 194.3 MB / 203.1 MB, free: 9.32 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001674/0.001675, allocations: 110.1 kB / 248.1 MB, free: 6.355 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 2.307e-05/2.285e-05, allocations: 4 kB / 298.1 MB, free: 8.258 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08995/0.09, allocations: 44.5 MB / 342.6 MB, free: 11.65 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2979/0.3879, allocations: 70.87 MB / 413.4 MB, free: 24.91 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002067/0.3882, allocations: 66.59 kB / 413.5 MB, free: 24.88 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.006015/0.3942, allocations: 2.12 MB / 415.6 MB, free: 23.03 MB / 315.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3942, allocations: 0 / 415.6 MB, free: 23.03 MB / 315.1 MB Notification: Performance of Transformations before backend: time 8.146e-06/0.3943, allocations: 0 / 415.6 MB, free: 23.03 MB / 315.1 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.0003431/0.3946, allocations: 484.3 kB / 416.1 MB, free: 22.5 MB / 315.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.3947, allocations: 12.03 kB / 416.1 MB, free: 22.49 MB / 315.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.539e-05/0.3947, allocations: 11.91 kB / 416.1 MB, free: 22.48 MB / 315.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00011/0.3948, allocations: 176.6 kB / 416.3 MB, free: 22.27 MB / 315.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.671e-05/0.3949, allocations: 3.984 kB / 416.3 MB, free: 22.26 MB / 315.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.102e-05/0.3949, allocations: 11.09 kB / 416.3 MB, free: 22.25 MB / 315.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001257/0.395, allocations: 46.69 kB / 416.3 MB, free: 22.22 MB / 315.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001491/0.3952, allocations: 79.55 kB / 416.4 MB, free: 22.15 MB / 315.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.3952, allocations: 0 / 416.4 MB, free: 22.15 MB / 315.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.3952, allocations: 2.906 kB / 416.4 MB, free: 22.15 MB / 315.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.367e-06/0.3952, allocations: 0 / 416.4 MB, free: 22.15 MB / 315.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003992/0.3956, allocations: 322.9 kB / 416.7 MB, free: 21.83 MB / 315.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001028/0.3958, allocations: 69.95 kB / 416.8 MB, free: 21.77 MB / 315.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.4e-05/0.3958, allocations: 42.48 kB / 416.9 MB, free: 21.74 MB / 315.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.227e-05/0.3958, allocations: 0 / 416.9 MB, free: 21.74 MB / 315.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001411/0.396, allocations: 159.5 kB / 417 MB, free: 21.58 MB / 315.1 MB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.396, allocations: 0 / 417 MB, free: 21.58 MB / 315.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002592/0.3963, allocations: 150.6 kB / 417.2 MB, free: 21.46 MB / 315.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.789e-05/0.3963, allocations: 169.8 kB / 417.3 MB, free: 21.26 MB / 315.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.543e-05/0.3964, allocations: 120 kB / 417.4 MB, free: 21.14 MB / 315.1 MB Notification: Performance of collectPreVariables (initialization): time 2.246e-05/0.3964, allocations: 37.52 kB / 417.5 MB, free: 21.1 MB / 315.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.944e-05/0.3965, allocations: 94.98 kB / 417.6 MB, free: 21.01 MB / 315.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.133e-05/0.3965, allocations: 25.52 kB / 417.6 MB, free: 20.99 MB / 315.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.953e-06/0.3965, allocations: 4 kB / 417.6 MB, free: 20.99 MB / 315.1 MB Notification: Performance of setup shared object (initialization): time 6.627e-05/0.3966, allocations: 322.4 kB / 417.9 MB, free: 20.67 MB / 315.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.283e-05/0.3967, allocations: 29.12 kB / 417.9 MB, free: 20.65 MB / 315.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.738e-05/0.3967, allocations: 34.98 kB / 418 MB, free: 20.63 MB / 315.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001165/0.3968, allocations: 31.73 kB / 418 MB, free: 20.61 MB / 315.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3969, allocations: 4 kB / 418 MB, free: 20.61 MB / 315.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002313/0.3971, allocations: 152 kB / 418.2 MB, free: 20.48 MB / 315.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.955e-05/0.3972, allocations: 114.8 kB / 418.3 MB, free: 20.34 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.3972, allocations: 0 / 418.3 MB, free: 20.34 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.3972, allocations: 4 kB / 418.3 MB, free: 20.34 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.063e-05/0.3972, allocations: 10.44 kB / 418.3 MB, free: 20.33 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.3972, allocations: 0 / 418.3 MB, free: 20.33 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.748e-05/0.3973, allocations: 5.031 kB / 418.3 MB, free: 20.32 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.549e-05/0.3973, allocations: 11.95 kB / 418.3 MB, free: 20.31 MB / 315.1 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 9.373e-05/0.3974, allocations: 182 kB / 418.5 MB, free: 20.12 MB / 315.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.114e-05/0.3975, allocations: 9.781 kB / 418.5 MB, free: 20.11 MB / 315.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.106e-05/0.3975, allocations: 12.62 kB / 418.5 MB, free: 20.1 MB / 315.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.3975, allocations: 0 / 418.5 MB, free: 20.1 MB / 315.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.3975, allocations: 0 / 418.5 MB, free: 20.1 MB / 315.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3975, allocations: 0 / 418.5 MB, free: 20.1 MB / 315.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001109/0.3977, allocations: 183.9 kB / 418.7 MB, free: 19.9 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.3977, allocations: 3.938 kB / 418.7 MB, free: 19.89 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.813e-06/0.3977, allocations: 3.984 kB / 418.7 MB, free: 19.89 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.3977, allocations: 1.969 kB / 418.7 MB, free: 19.89 MB / 315.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.685e-05/0.3977, allocations: 7.438 kB / 418.7 MB, free: 19.89 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.3977, allocations: 3.938 kB / 418.7 MB, free: 19.88 MB / 315.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3977, allocations: 4 kB / 418.7 MB, free: 19.88 MB / 315.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002318/0.398, allocations: 199.2 kB / 418.9 MB, free: 19.7 MB / 315.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.88e-05/0.398, allocations: 85.16 kB / 419 MB, free: 19.6 MB / 315.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.286e-05/0.398, allocations: 8.797 kB / 419 MB, free: 19.59 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.003e-05/0.3981, allocations: 8 kB / 419 MB, free: 19.59 MB / 315.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.723e-05/0.3982, allocations: 11.55 kB / 419 MB, free: 19.58 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.3982, allocations: 4 kB / 419 MB, free: 19.57 MB / 315.1 MB Notification: Performance of sorting global known variables: time 4.64e-05/0.3983, allocations: 100.7 kB / 419.1 MB, free: 19.48 MB / 315.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3983, allocations: 4 kB / 419.1 MB, free: 19.48 MB / 315.1 MB Notification: Performance of remove unused functions: time 0.0002652/0.3985, allocations: 55.88 kB / 419.2 MB, free: 19.43 MB / 315.1 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.0002324/0.3988, allocations: 141.7 kB / 419.3 MB, free: 19.29 MB / 315.1 MB Notification: Performance of simCode: created initialization part: time 0.0002317/0.399, allocations: 317.1 kB / 419.6 MB, free: 18.96 MB / 315.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.399, allocations: 0 / 419.6 MB, free: 18.96 MB / 315.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001381/0.3992, allocations: 189.7 kB / 419.8 MB, free: 18.79 MB / 315.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001199/0.3993, allocations: 11.83 kB / 419.8 MB, free: 18.78 MB / 315.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003081/0.3996, allocations: 156.5 kB / 420 MB, free: 18.63 MB / 315.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001269/0.3998, allocations: 0.7072 MB / 420.7 MB, free: 17.9 MB / 315.1 MB Notification: Performance of simCode: alias equations: time 2.392e-05/0.3998, allocations: 7.984 kB / 420.7 MB, free: 17.89 MB / 315.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.769e-05/0.3998, allocations: 11.44 kB / 420.7 MB, free: 17.88 MB / 315.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3998, allocations: 0 / 420.7 MB, free: 17.88 MB / 315.1 MB Notification: Performance of Templates: time 0.003621/0.4034, allocations: 1.378 MB / 422.1 MB, free: 16.57 MB / 315.1 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)