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.001086/0.001086, allocations: 181.9 kB / 13.64 MB, free: 1.676 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.501/1.501, allocations: 194.3 MB / 208.4 MB, free: 6.695 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.001718/0.001718, allocations: 116.7 kB / 253.5 MB, free: 9.574 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.408e-05/2.41e-05, allocations: 4 kB / 304.9 MB, free: 29.78 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07948/0.07952, allocations: 44.51 MB / 349.4 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3336/0.4132, allocations: 71.53 MB / 421 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/0.4135, allocations: 65.61 kB / 421 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006642/0.4201, allocations: 2.127 MB / 423.2 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.4202, allocations: 0 / 423.2 MB, free: 10.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.375e-06/0.4202, allocations: 1.219 kB / 423.2 MB, free: 10.57 MB / 298.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.0003677/0.4206, allocations: 477.8 kB / 423.6 MB, free: 10.08 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.4206, allocations: 13.25 kB / 423.6 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.514e-05/0.4207, allocations: 13.56 kB / 423.6 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/0.4208, allocations: 183.6 kB / 423.8 MB, free: 9.859 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.4209, allocations: 6.844 kB / 423.8 MB, free: 9.859 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.227e-05/0.4209, allocations: 9.375 kB / 423.8 MB, free: 9.859 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002452/0.4212, allocations: 92.16 kB / 423.9 MB, free: 9.828 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.4212, allocations: 0 / 423.9 MB, free: 9.828 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.4212, allocations: 6.469 kB / 423.9 MB, free: 9.824 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.4212, allocations: 3.844 kB / 423.9 MB, free: 9.824 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001351/0.4214, allocations: 48.25 kB / 424 MB, free: 9.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005262/0.4219, allocations: 347.5 kB / 424.3 MB, free: 9.547 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001573/0.4221, allocations: 70.3 kB / 424.4 MB, free: 9.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.682e-05/0.4222, allocations: 49.42 kB / 424.4 MB, free: 9.512 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.256e-05/0.4222, allocations: 4 kB / 424.5 MB, free: 9.508 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001934/0.4224, allocations: 164.5 kB / 424.6 MB, free: 9.395 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.763e-06/0.4224, allocations: 0 / 424.6 MB, free: 9.395 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003814/0.4228, allocations: 214.4 kB / 424.8 MB, free: 9.293 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.214e-05/0.4229, allocations: 171.9 kB / 425 MB, free: 9.102 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.046e-05/0.423, allocations: 118.4 kB / 425.1 MB, free: 9.008 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.139e-05/0.423, allocations: 33.14 kB / 425.1 MB, free: 8.977 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.745e-05/0.4231, allocations: 102.7 kB / 425.2 MB, free: 8.887 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.604e-05/0.4231, allocations: 22.8 kB / 425.3 MB, free: 8.875 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.977e-06/0.4231, allocations: 3.812 kB / 425.3 MB, free: 8.875 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.608e-05/0.4232, allocations: 325 kB / 425.6 MB, free: 8.562 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.011e-05/0.4233, allocations: 32.55 kB / 425.6 MB, free: 8.562 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.555e-05/0.4234, allocations: 36.67 kB / 425.6 MB, free: 8.562 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001051/0.4235, allocations: 139.8 kB / 425.8 MB, free: 8.438 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4235, allocations: 0 / 425.8 MB, free: 8.438 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003122/0.4238, allocations: 269.1 kB / 426 MB, free: 8.273 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.272e-05/0.4239, allocations: 124.4 kB / 426.2 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.4239, allocations: 3.938 kB / 426.2 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.4239, allocations: 0 / 426.2 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.01e-05/0.424, allocations: 7.75 kB / 426.2 MB, free: 8.137 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.424, allocations: 3.953 kB / 426.2 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.676e-05/0.4241, allocations: 15 kB / 426.2 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.069e-05/0.4241, allocations: 7.5 kB / 426.2 MB, free: 8.129 MB / 298.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.0001055/0.4242, allocations: 177.9 kB / 426.4 MB, free: 7.957 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.513e-05/0.4243, allocations: 11.69 kB / 426.4 MB, free: 7.953 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.546e-05/0.4243, allocations: 11.55 kB / 426.4 MB, free: 7.945 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.4243, allocations: 0 / 426.4 MB, free: 7.945 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.4243, allocations: 0 / 426.4 MB, free: 7.945 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.4243, allocations: 3.953 kB / 426.4 MB, free: 7.941 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001513/0.4245, allocations: 210.3 kB / 426.6 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.4245, allocations: 0 / 426.6 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.396e-06/0.4245, allocations: 0 / 426.6 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.4245, allocations: 3.938 kB / 426.6 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.4246, allocations: 3.969 kB / 426.6 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.4246, allocations: 4 kB / 426.6 MB, free: 7.746 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4246, allocations: 7.922 kB / 426.6 MB, free: 7.738 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003737/0.425, allocations: 284 kB / 426.9 MB, free: 7.602 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.605e-05/0.425, allocations: 85.09 kB / 427 MB, free: 7.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.611e-05/0.4251, allocations: 3.812 kB / 427 MB, free: 7.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.765e-05/0.4252, allocations: 18.61 kB / 427 MB, free: 7.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.797e-05/0.4252, allocations: 9.75 kB / 427 MB, free: 7.496 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.495e-05/0.4253, allocations: 11.56 kB / 427 MB, free: 7.492 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.42e-05/0.4253, allocations: 100.4 kB / 427.1 MB, free: 7.414 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4253, allocations: 0 / 427.1 MB, free: 7.414 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003848/0.4257, allocations: 53.12 kB / 427.2 MB, free: 7.41 MB / 298.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.0002534/0.426, allocations: 143.8 kB / 427.3 MB, free: 7.316 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003585/0.4264, allocations: 324.6 kB / 427.6 MB, free: 7.066 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4264, allocations: 3.938 kB / 427.6 MB, free: 7.062 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001646/0.4266, allocations: 203.6 kB / 427.8 MB, free: 6.93 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001454/0.4267, allocations: 7.797 kB / 427.9 MB, free: 6.926 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003748/0.4271, allocations: 159.4 kB / 428 MB, free: 6.848 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001461/0.4273, allocations: 0.7055 MB / 428.7 MB, free: 6.152 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.062e-05/0.4273, allocations: 3.906 kB / 428.7 MB, free: 6.152 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.013e-05/0.4273, allocations: 11.34 kB / 428.7 MB, free: 6.145 MB / 298.7 MB Notification: Performance of SimCode: time 3.1e-07/0.4273, allocations: 0 / 428.7 MB, free: 6.145 MB / 298.7 MB Notification: Performance of Templates: time 0.004609/0.4319, allocations: 1.426 MB / 430.2 MB, free: 5.52 MB / 298.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)