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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008726/0.0008726, allocations: 96.83 kB / 16.65 MB, free: 6.59 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.001033/0.001033, allocations: 182 kB / 17.56 MB, free: 6.199 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.588/1.588, allocations: 205.4 MB / 223.7 MB, free: 13.06 MB / 190.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.0005281/0.000528, allocations: 15.98 kB / 280.7 MB, free: 3.41 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1286, allocations: 47.58 MB / 328.3 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002631/0.1313, allocations: 1.684 MB / 330 MB, free: 2.062 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0019/0.1332, allocations: 1.022 MB / 331 MB, free: 1.031 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001342/0.1334, allocations: 7.938 kB / 331 MB, free: 1.023 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008952/0.1343, allocations: 283.4 kB / 331.3 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004547/0.1348, allocations: 187.5 kB / 331.5 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006081/0.1354, allocations: 235.6 kB / 331.7 MB, free: 340 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004019/0.1358, allocations: 343.2 kB / 332.1 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001673/0.136, allocations: 60.33 kB / 332.1 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001797/0.1362, allocations: 115.4 kB / 332.2 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002016/0.1364, allocations: 143.4 kB / 332.4 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.634e-05/0.1364, allocations: 4 kB / 332.4 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001684/0.1366, allocations: 55.97 kB / 332.4 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.1367, allocations: 83.67 kB / 332.5 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001326/0.1369, allocations: 136.9 kB / 332.6 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004053/0.1373, allocations: 331 kB / 333 MB, free: 15.08 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.1373, allocations: 0 / 333 MB, free: 15.08 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.1373, allocations: 4 kB / 333 MB, free: 15.07 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.1373, allocations: 0 / 333 MB, free: 15.07 MB / 286.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.001243/0.1386, allocations: 0.6028 MB / 333.6 MB, free: 14.41 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.488e-05/0.1386, allocations: 8.031 kB / 333.6 MB, free: 14.4 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.1388, allocations: 36.55 kB / 333.6 MB, free: 14.37 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004689/0.1392, allocations: 331.9 kB / 333.9 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.763e-05/0.1393, allocations: 8.375 kB / 333.9 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.067e-05/0.1393, allocations: 20.12 kB / 334 MB, free: 13.98 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000337/0.1397, allocations: 140.2 kB / 334.1 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.1397, allocations: 0 / 334.1 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.14e-05/0.1397, allocations: 8 kB / 334.1 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.1397, allocations: 0 / 334.1 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002203/0.1399, allocations: 75.75 kB / 334.2 MB, free: 13.74 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007401/0.1407, allocations: 496.4 kB / 334.7 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003155/0.141, allocations: 142.7 kB / 334.8 MB, free: 13.06 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.1411, allocations: 44.84 kB / 334.8 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.06e-05/0.1412, allocations: 7.984 kB / 334.9 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002426/0.1414, allocations: 118.9 kB / 335 MB, free: 12.88 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.1414, allocations: 3.938 kB / 335 MB, free: 12.88 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004965/0.1419, allocations: 217.2 kB / 335.2 MB, free: 12.66 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.086e-05/0.142, allocations: 110.8 kB / 335.3 MB, free: 12.52 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005687/0.1426, allocations: 428.4 kB / 335.7 MB, free: 12.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.665e-05/0.1427, allocations: 33.7 kB / 335.7 MB, free: 12.05 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001538/0.1428, allocations: 164 kB / 335.9 MB, free: 11.89 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.059e-05/0.1429, allocations: 39.44 kB / 335.9 MB, free: 11.85 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.113e-05/0.1429, allocations: 29.7 kB / 336 MB, free: 11.82 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.1431, allocations: 342.8 kB / 336.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.1432, allocations: 51.91 kB / 336.4 MB, free: 11.42 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001577/0.1434, allocations: 97.98 kB / 336.5 MB, free: 11.3 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002099/0.1436, allocations: 106.5 kB / 336.6 MB, free: 11.19 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.1436, allocations: 7.938 kB / 336.6 MB, free: 11.18 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003153/0.1439, allocations: 174.3 kB / 336.7 MB, free: 11.01 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.1439, allocations: 7.938 kB / 336.7 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.1439, allocations: 0 / 336.7 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.144, allocations: 0 / 336.7 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.1441, allocations: 23.98 kB / 336.8 MB, free: 10.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.898e-06/0.1441, allocations: 0 / 336.8 MB, free: 10.98 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001153/0.1442, allocations: 27.91 kB / 336.8 MB, free: 10.95 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.1443, allocations: 4 kB / 336.8 MB, free: 10.95 MB / 286.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.0001804/0.1444, allocations: 171.5 kB / 337 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.759e-05/0.1445, allocations: 35.56 kB / 337 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.721e-05/0.1446, allocations: 34.94 kB / 337 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.1446, allocations: 0 / 337 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.1446, allocations: 0 / 337 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.1446, allocations: 7.984 kB / 337 MB, free: 10.69 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002988/0.1449, allocations: 293.4 kB / 337.3 MB, free: 10.35 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.1449, allocations: 8 kB / 337.3 MB, free: 10.34 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.654e-05/0.145, allocations: 8.031 kB / 337.3 MB, free: 10.34 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.145, allocations: 7.922 kB / 337.4 MB, free: 10.33 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.145, allocations: 8 kB / 337.4 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.145, allocations: 0 / 337.4 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.145, allocations: 3.938 kB / 337.4 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003345/0.1454, allocations: 201.5 kB / 337.6 MB, free: 10.1 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.633e-05/0.1455, allocations: 112.7 kB / 337.7 MB, free: 9.973 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.482e-05/0.1455, allocations: 15.88 kB / 337.7 MB, free: 9.957 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.514e-05/0.1456, allocations: 11.98 kB / 337.7 MB, free: 9.945 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.316e-05/0.1457, allocations: 15.92 kB / 337.7 MB, free: 9.93 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.899e-05/0.1457, allocations: 8 kB / 337.7 MB, free: 9.922 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003517/0.1461, allocations: 315 kB / 338 MB, free: 9.617 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1461, allocations: 0 / 338 MB, free: 9.617 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003007/0.1464, allocations: 44 kB / 338.1 MB, free: 9.574 MB / 286.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.001093/0.1475, allocations: 427.5 kB / 338.5 MB, free: 9.16 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003017/0.1478, allocations: 119.9 kB / 338.6 MB, free: 9.043 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1478, allocations: 0 / 338.6 MB, free: 9.043 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001307/0.1479, allocations: 55.98 kB / 338.7 MB, free: 8.988 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000452/0.1484, allocations: 69.31 kB / 338.7 MB, free: 8.918 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008651/0.1493, allocations: 0.5586 MB / 339.3 MB, free: 8.332 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004382/0.1497, allocations: 0.7755 MB / 340.1 MB, free: 7.531 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001252/0.1499, allocations: 46.25 kB / 340.1 MB, free: 7.488 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.653e-05/0.1499, allocations: 27.44 kB / 340.1 MB, free: 7.461 MB / 286.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1499, allocations: 0 / 340.1 MB, free: 7.461 MB / 286.1 MB Notification: Performance of Templates: time 0.008156/0.1581, allocations: 3.606 MB / 343.7 MB, free: 3.852 MB / 286.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)