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.008806/0.008806, allocations: 100.9 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.001324/0.001324, allocations: 186.5 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.48/1.48, allocations: 205.1 MB / 222.6 MB, free: 4.504 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.001814/0.001814, allocations: 50.08 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1067, allocations: 46.61 MB / 373.1 MB, free: 1.348 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003992/0.1107, allocations: 1.989 MB / 375.1 MB, free: 15.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002103/0.1129, allocations: 1.057 MB / 376.2 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001925/0.1131, allocations: 3.938 kB / 376.2 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009758/0.1141, allocations: 311.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.0006228/0.1148, allocations: 203.2 kB / 376.7 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008434/0.1156, allocations: 251.5 kB / 376.9 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005525/0.1162, allocations: 351.1 kB / 377.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002091/0.1164, allocations: 68.3 kB / 377.4 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000269/0.1167, allocations: 143.5 kB / 377.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002599/0.1169, allocations: 151.4 kB / 377.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.434e-05/0.117, allocations: 16 kB / 377.7 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002177/0.1172, allocations: 83.94 kB / 377.7 MB, free: 12.72 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000124/0.1173, allocations: 83.69 kB / 377.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001589/0.1175, allocations: 123.3 kB / 377.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005193/0.118, allocations: 350.8 kB / 378.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.1181, allocations: 0 / 378.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1181, allocations: 0 / 378.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.1181, 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.001134/0.1192, allocations: 0.6649 MB / 378.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.1193, allocations: 8.031 kB / 379 MB, free: 11.44 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.972e-05/0.1194, allocations: 32.56 kB / 379 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006149/0.12, allocations: 328 kB / 379.3 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/0.12, allocations: 8.375 kB / 379.3 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.255e-05/0.1201, allocations: 16.11 kB / 379.3 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003027/0.1204, allocations: 148.1 kB / 379.5 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.1204, allocations: 3.938 kB / 379.5 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.1204, allocations: 7.984 kB / 379.5 MB, free: 10.85 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.1204, allocations: 4 kB / 379.5 MB, free: 10.85 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000186/0.1206, allocations: 63.97 kB / 379.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007638/0.1214, allocations: 0.4923 MB / 380 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003203/0.1217, allocations: 126.8 kB / 380.2 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.1219, allocations: 52.78 kB / 380.2 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.952e-05/0.1219, allocations: 0 / 380.2 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002376/0.1221, allocations: 119.3 kB / 380.3 MB, free: 9.926 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.944e-06/0.1221, allocations: 3.938 kB / 380.3 MB, free: 9.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005279/0.1227, allocations: 209.2 kB / 380.5 MB, free: 9.711 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.476e-05/0.1228, allocations: 106.8 kB / 380.7 MB, free: 9.582 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004998/0.1233, allocations: 440.3 kB / 381.1 MB, free: 9.145 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.63e-05/0.1233, allocations: 33.7 kB / 381.1 MB, free: 9.105 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.1235, allocations: 168 kB / 381.3 MB, free: 8.938 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.009e-05/0.1235, allocations: 43.45 kB / 381.3 MB, free: 8.895 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.41e-05/0.1236, allocations: 41.7 kB / 381.4 MB, free: 8.848 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1237, allocations: 338.8 kB / 381.7 MB, free: 8.508 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001199/0.1239, allocations: 47.97 kB / 381.7 MB, free: 8.461 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.124, allocations: 102 kB / 381.8 MB, free: 8.34 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002186/0.1242, allocations: 102.5 kB / 381.9 MB, free: 8.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1243, allocations: 0 / 381.9 MB, free: 8.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003331/0.1246, allocations: 173.8 kB / 382.1 MB, free: 8.055 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.53e-05/0.1246, allocations: 11.94 kB / 382.1 MB, free: 8.043 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.1247, allocations: 8.031 kB / 382.1 MB, free: 8.035 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.608e-05/0.1247, allocations: 8 kB / 382.1 MB, free: 8.027 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001666/0.1249, allocations: 20 kB / 382.2 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.1249, allocations: 3.984 kB / 382.2 MB, free: 8.004 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.125, allocations: 12 kB / 382.2 MB, free: 7.992 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/0.125, allocations: 4 kB / 382.2 MB, free: 7.988 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.0002184/0.1253, allocations: 179.4 kB / 382.3 MB, free: 7.801 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.063e-05/0.1253, allocations: 31.56 kB / 382.4 MB, free: 7.77 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.432e-05/0.1254, allocations: 34.94 kB / 382.4 MB, free: 7.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.1255, allocations: 3.938 kB / 382.4 MB, free: 7.727 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/0.1255, allocations: 4 kB / 382.4 MB, free: 7.723 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.1255, allocations: 0 / 382.4 MB, free: 7.723 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004067/0.1259, allocations: 305.3 kB / 382.7 MB, free: 7.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1259, allocations: 0 / 382.7 MB, free: 7.375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.488e-05/0.126, allocations: 7.938 kB / 382.7 MB, free: 7.367 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.374e-05/0.126, allocations: 11.92 kB / 382.7 MB, free: 7.355 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.464e-05/0.126, allocations: 4 kB / 382.7 MB, free: 7.352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.126, allocations: 0 / 382.7 MB, free: 7.352 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.126, allocations: 0 / 382.7 MB, free: 7.352 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004353/0.1265, allocations: 208.7 kB / 382.9 MB, free: 7.129 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001344/0.1266, allocations: 96.83 kB / 383 MB, free: 7.016 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.252e-05/0.1267, allocations: 19.86 kB / 383.1 MB, free: 6.996 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.61e-05/0.1268, allocations: 4 kB / 383.1 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.1269, allocations: 15.98 kB / 383.1 MB, free: 6.977 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-05/0.1269, allocations: 7.984 kB / 383.1 MB, free: 6.969 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003899/0.1273, allocations: 315 kB / 383.4 MB, free: 6.66 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1273, allocations: 0 / 383.4 MB, free: 6.66 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003888/0.1277, allocations: 63.83 kB / 383.5 MB, free: 6.598 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.001254/0.129, allocations: 424.5 kB / 383.9 MB, free: 6.172 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003658/0.1294, allocations: 111.9 kB / 384 MB, free: 6.062 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.1294, allocations: 0 / 384 MB, free: 6.062 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001532/0.1295, allocations: 67.98 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.0005201/0.1301, allocations: 85.77 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.001031/0.1311, allocations: 480.6 kB / 384.6 MB, free: 5.418 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004281/0.1316, allocations: 0.7753 MB / 385.4 MB, free: 4.617 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001431/0.1317, 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 8.124e-05/0.1318, allocations: 35.36 kB / 385.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1318, allocations: 4 kB / 385.5 MB, free: 4.535 MB / 318.1 MB Notification: Performance of Templates: time 0.009694/0.1415, allocations: 3.852 MB / 389.3 MB, free: 0.6758 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)