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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007105/0.007105, allocations: 97.88 kB / 15.73 MB, free: 6.004 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.001612/0.001612, allocations: 192.4 kB / 16.67 MB, free: 5.934 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.9/1.9, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001354/0.001354, allocations: 49.53 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1298, allocations: 46.62 MB / 373.2 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003949/0.1338, allocations: 1.986 MB / 375.1 MB, free: 15.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002099/0.1359, allocations: 1.061 MB / 376.2 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001982/0.1362, allocations: 4 kB / 376.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009594/0.1372, allocations: 299.2 kB / 376.5 MB, free: 13.97 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.0005507/0.1377, allocations: 207.2 kB / 376.7 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007406/0.1385, allocations: 259.4 kB / 376.9 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004927/0.139, allocations: 343.1 kB / 377.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/0.1392, allocations: 64.3 kB / 377.3 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002537/0.1394, allocations: 147.4 kB / 377.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002425/0.1397, allocations: 147.4 kB / 377.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.118e-05/0.1397, allocations: 16 kB / 377.7 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002292/0.14, allocations: 83.94 kB / 377.7 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001328/0.1401, allocations: 83.69 kB / 377.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.1403, allocations: 127.3 kB / 377.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006054/0.1409, allocations: 350.5 kB / 378.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1409, allocations: 0 / 378.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.1409, allocations: 0 / 378.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.1409, allocations: 0 / 378.3 MB, free: 12.18 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.001542/0.1425, allocations: 0.6724 MB / 379 MB, free: 11.44 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.1425, allocations: 8.031 kB / 379 MB, free: 11.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001156/0.1427, allocations: 36.7 kB / 379 MB, free: 11.4 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005004/0.1432, allocations: 336.2 kB / 379.3 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.637e-05/0.1432, allocations: 16.3 kB / 379.3 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.645e-05/0.1432, allocations: 16.12 kB / 379.4 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003356/0.1436, allocations: 152 kB / 379.5 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.1436, allocations: 0 / 379.5 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.727e-05/0.1436, allocations: 4 kB / 379.5 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.1436, allocations: 0 / 379.5 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001807/0.1438, allocations: 71.97 kB / 379.6 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007881/0.1446, allocations: 492.3 kB / 380.1 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003229/0.145, allocations: 134.7 kB / 380.2 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.1451, allocations: 44.84 kB / 380.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.42e-05/0.1451, allocations: 7.984 kB / 380.2 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002715/0.1454, allocations: 119.2 kB / 380.4 MB, free: 9.902 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.833e-06/0.1454, allocations: 3.938 kB / 380.4 MB, free: 9.898 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005629/0.146, allocations: 217.3 kB / 380.6 MB, free: 9.68 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.483e-05/0.1461, allocations: 110.8 kB / 380.7 MB, free: 9.547 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005263/0.1466, allocations: 432.5 kB / 381.1 MB, free: 9.117 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.572e-05/0.1466, allocations: 29.7 kB / 381.1 MB, free: 9.082 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.1468, allocations: 160.1 kB / 381.3 MB, free: 8.922 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.559e-05/0.1468, allocations: 47.69 kB / 381.3 MB, free: 8.875 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.454e-05/0.1469, allocations: 41.7 kB / 381.4 MB, free: 8.828 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.1471, allocations: 342.8 kB / 381.7 MB, free: 8.484 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.1472, allocations: 43.97 kB / 381.8 MB, free: 8.441 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/0.1473, allocations: 93.98 kB / 381.8 MB, free: 8.328 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002821/0.1476, allocations: 118.5 kB / 382 MB, free: 8.203 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1476, allocations: 0 / 382 MB, free: 8.203 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003385/0.148, allocations: 181.3 kB / 382.1 MB, free: 8.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.148, allocations: 9.031 kB / 382.2 MB, free: 8.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.148, allocations: 7.984 kB / 382.2 MB, free: 8.004 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.1481, allocations: 4.062 kB / 382.2 MB, free: 8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001246/0.1482, allocations: 31.92 kB / 382.2 MB, free: 7.969 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.1482, allocations: 0 / 382.2 MB, free: 7.969 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.1483, allocations: 11.95 kB / 382.2 MB, free: 7.957 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.1483, allocations: 8 kB / 382.2 MB, free: 7.949 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.0001895/0.1485, allocations: 167.5 kB / 382.4 MB, free: 7.773 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.306e-05/0.1486, allocations: 35.75 kB / 382.4 MB, free: 7.738 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.05e-05/0.1487, allocations: 34.94 kB / 382.4 MB, free: 7.699 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.1487, allocations: 4 kB / 382.4 MB, free: 7.695 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.1487, allocations: 0 / 382.4 MB, free: 7.695 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.1487, allocations: 4 kB / 382.5 MB, free: 7.691 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003039/0.1491, allocations: 297.4 kB / 382.7 MB, free: 7.352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.1491, allocations: 3.938 kB / 382.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.377e-05/0.1491, allocations: 15.92 kB / 382.8 MB, free: 7.332 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.1491, allocations: 3.938 kB / 382.8 MB, free: 7.328 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.1492, allocations: 4 kB / 382.8 MB, free: 7.324 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.1492, allocations: 0 / 382.8 MB, free: 7.324 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1492, allocations: 0 / 382.8 MB, free: 7.324 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003704/0.1495, allocations: 209.5 kB / 383 MB, free: 7.102 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.802e-05/0.1496, allocations: 104.9 kB / 383.1 MB, free: 6.98 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.617e-05/0.1497, allocations: 15.86 kB / 383.1 MB, free: 6.965 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.315e-05/0.1498, allocations: 12 kB / 383.1 MB, free: 6.953 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.669e-05/0.1499, allocations: 11.98 kB / 383.1 MB, free: 6.941 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-05/0.1499, allocations: 11.98 kB / 383.1 MB, free: 6.93 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003422/0.1502, allocations: 311 kB / 383.4 MB, free: 6.625 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1502, allocations: 4 kB / 383.4 MB, free: 6.621 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002999/0.1505, allocations: 55.92 kB / 383.5 MB, free: 6.566 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.001071/0.1516, allocations: 420.4 kB / 383.9 MB, free: 6.145 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003566/0.152, allocations: 119.8 kB / 384 MB, free: 6.027 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.152, allocations: 0 / 384 MB, free: 6.027 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001528/0.1522, allocations: 64.05 kB / 384.1 MB, free: 5.965 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004572/0.1526, allocations: 77.78 kB / 384.2 MB, free: 5.891 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00113/0.1538, allocations: 491.8 kB / 384.6 MB, free: 5.383 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005009/0.1543, allocations: 0.7753 MB / 385.4 MB, free: 4.582 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001592/0.1545, allocations: 46.23 kB / 385.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.751e-05/0.1545, allocations: 31.36 kB / 385.5 MB, free: 4.508 MB / 318.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1545, allocations: 4 kB / 385.5 MB, free: 4.504 MB / 318.1 MB Notification: Performance of Templates: time 0.01008/0.1646, allocations: 3.856 MB / 389.3 MB, free: 0.6406 MB / 318.1 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)