Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008554/0.008553, allocations: 103.8 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001897/0.001898, allocations: 194.2 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.818/1.818, allocations: 205.1 MB / 222.5 MB, free: 4.492 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 50.02 kB / 326.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1361, allocations: 46.63 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003746/0.1399, allocations: 1.982 MB / 375.1 MB, free: 15.33 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001735/0.1417, allocations: 1.061 MB / 376.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001275/0.1418, allocations: 0 / 376.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009271/0.1428, allocations: 303.2 kB / 376.5 MB, free: 13.96 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004613/0.1432, allocations: 207.3 kB / 376.7 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000666/0.1439, allocations: 259.4 kB / 376.9 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004135/0.1443, allocations: 347.1 kB / 377.3 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.1445, allocations: 64.3 kB / 377.4 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001777/0.1447, allocations: 143.4 kB / 377.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001817/0.1449, allocations: 147.4 kB / 377.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.658e-05/0.1449, allocations: 20 kB / 377.7 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000203/0.1451, allocations: 83.88 kB / 377.7 MB, free: 12.72 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.1453, allocations: 83.75 kB / 377.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.1455, allocations: 119.3 kB / 377.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006224/0.1461, allocations: 350.8 kB / 378.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.1461, allocations: 0 / 378.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.518e-06/0.1461, allocations: 7.984 kB / 378.3 MB, free: 12.17 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.592e-05/0.1461, allocations: 0 / 378.3 MB, free: 12.17 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001338/0.1475, allocations: 0.6571 MB / 378.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/0.1475, allocations: 12.03 kB / 379 MB, free: 11.44 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.854e-05/0.1476, allocations: 32.56 kB / 379 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005093/0.1482, allocations: 324.1 kB / 379.3 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.102e-05/0.1482, allocations: 12.31 kB / 379.3 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.459e-05/0.1482, allocations: 16.11 kB / 379.3 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003821/0.1486, allocations: 148.1 kB / 379.5 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.1486, allocations: 0 / 379.5 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.636e-05/0.1487, allocations: 7.984 kB / 379.5 MB, free: 10.85 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.1487, allocations: 4 kB / 379.5 MB, free: 10.85 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000198/0.1489, allocations: 63.97 kB / 379.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009051/0.1498, allocations: 0.4884 MB / 380 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003689/0.1502, allocations: 134.7 kB / 380.2 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001176/0.1503, allocations: 48.84 kB / 380.2 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.676e-05/0.1504, allocations: 4 kB / 380.2 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002771/0.1507, allocations: 111.3 kB / 380.3 MB, free: 9.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 3.607e-06/0.1507, allocations: 7.938 kB / 380.3 MB, free: 9.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005805/0.1513, allocations: 221.1 kB / 380.6 MB, free: 9.699 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.135e-05/0.1514, allocations: 102.8 kB / 380.7 MB, free: 9.574 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004917/0.1519, allocations: 440.3 kB / 381.1 MB, free: 9.137 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.22e-05/0.1519, allocations: 33.7 kB / 381.1 MB, free: 9.098 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.152, allocations: 164 kB / 381.3 MB, free: 8.934 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.221e-05/0.1521, allocations: 39.45 kB / 381.3 MB, free: 8.895 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.584e-05/0.1522, allocations: 45.7 kB / 381.4 MB, free: 8.844 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.1523, allocations: 338.8 kB / 381.7 MB, free: 8.504 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.1524, allocations: 47.97 kB / 381.7 MB, free: 8.457 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001642/0.1526, allocations: 101.9 kB / 381.8 MB, free: 8.336 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002007/0.1528, allocations: 106.5 kB / 381.9 MB, free: 8.223 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1528, allocations: 0 / 381.9 MB, free: 8.223 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003204/0.1532, allocations: 177.2 kB / 382.1 MB, free: 8.043 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.1532, allocations: 11.92 kB / 382.1 MB, free: 8.031 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.1532, allocations: 0 / 382.1 MB, free: 8.031 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.1532, allocations: 4 kB / 382.1 MB, free: 8.027 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.1533, allocations: 19.94 kB / 382.1 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.1534, allocations: 12.05 kB / 382.2 MB, free: 7.996 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.358e-05/0.1535, allocations: 8 kB / 382.2 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.555e-05/0.1535, allocations: 8 kB / 382.2 MB, free: 7.98 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001831/0.1537, allocations: 175.4 kB / 382.3 MB, free: 7.797 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.504e-05/0.1537, allocations: 31.56 kB / 382.4 MB, free: 7.766 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.415e-05/0.1538, allocations: 30.94 kB / 382.4 MB, free: 7.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.1538, allocations: 4 kB / 382.4 MB, free: 7.727 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.1538, allocations: 0 / 382.4 MB, free: 7.727 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1538, allocations: 4 kB / 382.4 MB, free: 7.723 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002824/0.1541, allocations: 305.3 kB / 382.7 MB, free: 7.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1541, allocations: 0 / 382.7 MB, free: 7.375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.783e-05/0.1542, allocations: 11.98 kB / 382.7 MB, free: 7.363 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.1542, allocations: 7.969 kB / 382.7 MB, free: 7.355 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.1542, allocations: 4 kB / 382.7 MB, free: 7.352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1542, allocations: 4 kB / 382.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1542, allocations: 0 / 382.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003438/0.1546, allocations: 209.3 kB / 382.9 MB, free: 7.125 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.575e-05/0.1547, allocations: 100.8 kB / 383 MB, free: 7.008 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.253e-05/0.1547, allocations: 15.86 kB / 383.1 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.747e-05/0.1548, allocations: 4 kB / 383.1 MB, free: 6.988 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.481e-05/0.1549, allocations: 15.98 kB / 383.1 MB, free: 6.973 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.157e-05/0.1549, allocations: 11.98 kB / 383.1 MB, free: 6.961 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004346/0.1553, allocations: 315 kB / 383.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1553, allocations: 0 / 383.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002986/0.1556, allocations: 67.83 kB / 383.5 MB, free: 6.586 MB / 318.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 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001037/0.1567, allocations: 412.5 kB / 383.9 MB, free: 6.172 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003284/0.157, allocations: 115.9 kB / 384 MB, free: 6.059 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.157, allocations: 0 / 384 MB, free: 6.059 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.1572, allocations: 63.86 kB / 384 MB, free: 5.996 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004316/0.1576, allocations: 85.91 kB / 384.1 MB, free: 5.914 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007579/0.1584, allocations: 484.5 kB / 384.6 MB, free: 5.414 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003542/0.1588, allocations: 0.7714 MB / 385.4 MB, free: 4.617 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001153/0.1589, allocations: 46.25 kB / 385.4 MB, free: 4.574 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.458e-05/0.159, allocations: 35.36 kB / 385.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.159, allocations: 0 / 385.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of Templates: time 0.008243/0.1672, allocations: 3.86 MB / 389.3 MB, free: 0.6719 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1)