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.005441/0.005441, allocations: 96.53 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.001219/0.001219, allocations: 196.4 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.519/1.519, allocations: 205.1 MB / 222.6 MB, free: 4.535 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.001165/0.001165, allocations: 50.88 kB / 326.5 MB, free: 14.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1046, 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.003453/0.1081, allocations: 1.978 MB / 375.1 MB, free: 15.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001918/0.1101, allocations: 1.053 MB / 376.2 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.1102, allocations: 0 / 376.2 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009745/0.1112, allocations: 311.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.0004802/0.1117, allocations: 203.3 kB / 376.7 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006578/0.1124, allocations: 259.4 kB / 376.9 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004028/0.1128, allocations: 339.2 kB / 377.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.1129, allocations: 72.27 kB / 377.3 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000174/0.1131, allocations: 143.5 kB / 377.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002075/0.1133, allocations: 147.4 kB / 377.6 MB, free: 12.83 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.62e-05/0.1134, allocations: 23.98 kB / 377.7 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001945/0.1136, allocations: 75.95 kB / 377.7 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.1137, allocations: 95.67 kB / 377.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001316/0.1139, allocations: 115.3 kB / 377.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005327/0.1144, allocations: 350.5 kB / 378.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1144, allocations: 0 / 378.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1144, allocations: 4 kB / 378.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.1144, 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.00108/0.1155, allocations: 0.6607 MB / 378.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.1156, allocations: 12.03 kB / 379 MB, free: 11.44 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.405e-05/0.1157, allocations: 40.69 kB / 379 MB, free: 11.4 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004867/0.1162, allocations: 340.2 kB / 379.3 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.839e-05/0.1162, allocations: 8.375 kB / 379.3 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.488e-05/0.1162, allocations: 12.12 kB / 379.3 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003135/0.1166, allocations: 152 kB / 379.5 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.1166, allocations: 0 / 379.5 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.219e-05/0.1166, allocations: 4 kB / 379.5 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.126e-06/0.1166, allocations: 8 kB / 379.5 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002101/0.1168, allocations: 67.95 kB / 379.6 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007581/0.1176, allocations: 496.2 kB / 380.1 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003473/0.118, allocations: 134.7 kB / 380.2 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001204/0.1181, allocations: 52.83 kB / 380.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.944e-05/0.1181, allocations: 4 kB / 380.2 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002813/0.1184, allocations: 111.3 kB / 380.4 MB, free: 9.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.953e-06/0.1184, allocations: 3.938 kB / 380.4 MB, free: 9.906 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005602/0.119, allocations: 221.3 kB / 380.6 MB, free: 9.684 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.147e-05/0.1191, allocations: 106.8 kB / 380.7 MB, free: 9.555 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004908/0.1196, allocations: 432.5 kB / 381.1 MB, free: 9.125 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.1196, allocations: 29.7 kB / 381.1 MB, free: 9.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.1198, allocations: 164.1 kB / 381.3 MB, free: 8.926 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.875e-05/0.1198, allocations: 43.67 kB / 381.3 MB, free: 8.883 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.619e-05/0.1199, allocations: 41.7 kB / 381.4 MB, free: 8.836 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1201, allocations: 342.8 kB / 381.7 MB, free: 8.492 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.1202, allocations: 47.98 kB / 381.8 MB, free: 8.445 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/0.1203, allocations: 102 kB / 381.9 MB, free: 8.324 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002046/0.1205, allocations: 111 kB / 382 MB, free: 8.207 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1205, allocations: 4 kB / 382 MB, free: 8.203 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003433/0.1209, allocations: 181.3 kB / 382.1 MB, free: 8.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.1209, allocations: 7.938 kB / 382.2 MB, free: 8.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.1209, allocations: 0 / 382.2 MB, free: 8.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.121, allocations: 4.047 kB / 382.2 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001216/0.1211, allocations: 31.91 kB / 382.2 MB, free: 7.977 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.1211, allocations: 4 kB / 382.2 MB, free: 7.973 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.527e-05/0.1212, allocations: 15.94 kB / 382.2 MB, free: 7.957 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/0.1212, allocations: 8.062 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.0001729/0.1214, allocations: 175.5 kB / 382.4 MB, free: 7.766 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.265e-05/0.1215, allocations: 31.75 kB / 382.4 MB, free: 7.734 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.095e-05/0.1215, allocations: 34.92 kB / 382.5 MB, free: 7.695 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.1215, allocations: 4 kB / 382.5 MB, free: 7.691 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1216, allocations: 0 / 382.5 MB, free: 7.691 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.1216, allocations: 0 / 382.5 MB, free: 7.691 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003242/0.1219, allocations: 301.4 kB / 382.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1219, allocations: 4 kB / 382.8 MB, free: 7.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.978e-05/0.122, allocations: 11.94 kB / 382.8 MB, free: 7.332 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.122, allocations: 3.938 kB / 382.8 MB, free: 7.328 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.122, allocations: 4 kB / 382.8 MB, free: 7.324 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.122, allocations: 4 kB / 382.8 MB, free: 7.32 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.122, allocations: 0 / 382.8 MB, free: 7.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003469/0.1223, allocations: 200.8 kB / 383 MB, free: 7.105 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.677e-05/0.1224, allocations: 108.8 kB / 383.1 MB, free: 6.98 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.24e-05/0.1225, allocations: 15.88 kB / 383.1 MB, free: 6.965 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.408e-05/0.1226, allocations: 7.984 kB / 383.1 MB, free: 6.957 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.574e-05/0.1226, allocations: 19.92 kB / 383.1 MB, free: 6.938 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.893e-05/0.1227, allocations: 4 kB / 383.1 MB, free: 6.934 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003751/0.1231, allocations: 319 kB / 383.4 MB, free: 6.621 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1231, allocations: 0 / 383.4 MB, free: 6.621 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002986/0.1234, allocations: 51.94 kB / 383.5 MB, free: 6.57 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.001163/0.1245, allocations: 420.5 kB / 383.9 MB, free: 6.148 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003425/0.1249, allocations: 119.8 kB / 384 MB, free: 6.031 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1249, allocations: 0 / 384 MB, free: 6.031 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000149/0.1251, allocations: 63.91 kB / 384.1 MB, free: 5.969 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004381/0.1255, allocations: 77.23 kB / 384.2 MB, free: 5.895 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008627/0.1264, allocations: 491.9 kB / 384.6 MB, free: 5.387 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004303/0.1268, allocations: 0.7714 MB / 385.4 MB, free: 4.59 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001413/0.127, allocations: 54.23 kB / 385.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.171e-05/0.1271, allocations: 31.38 kB / 385.5 MB, free: 4.508 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1271, allocations: 0 / 385.5 MB, free: 4.508 MB / 318.1 MB Notification: Performance of Templates: time 0.008416/0.1355, allocations: 3.86 MB / 389.3 MB, free: 0.6406 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)