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.008602/0.008602, allocations: 102.3 kB / 15.73 MB, free: 6.008 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.001514/0.001514, allocations: 198.5 kB / 16.68 MB, free: 5.93 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.77/1.77, 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.001236/0.001236, allocations: 50.25 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1239, allocations: 46.63 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004135/0.1281, allocations: 1.985 MB / 375.1 MB, free: 15.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001988/0.1301, allocations: 1.057 MB / 376.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.1303, allocations: 3.938 kB / 376.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009925/0.1313, allocations: 299.2 kB / 376.5 MB, free: 13.95 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.0004822/0.1318, allocations: 203.3 kB / 376.7 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006685/0.1325, allocations: 259.5 kB / 376.9 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004688/0.1329, allocations: 347.1 kB / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001895/0.1331, allocations: 68.28 kB / 377.4 MB, free: 13.09 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002/0.1333, allocations: 147.4 kB / 377.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002026/0.1336, allocations: 139.5 kB / 377.6 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.541e-05/0.1336, allocations: 16 kB / 377.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001869/0.1338, allocations: 87.88 kB / 377.7 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.1339, allocations: 83.73 kB / 377.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001356/0.1341, allocations: 127.2 kB / 377.9 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004173/0.1345, allocations: 346.8 kB / 378.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.1345, allocations: 4 kB / 378.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1345, allocations: 0 / 378.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.76e-05/0.1345, allocations: 0 / 378.3 MB, free: 12.16 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.001023/0.1356, allocations: 0.6571 MB / 378.9 MB, free: 11.44 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.1356, allocations: 8.031 kB / 378.9 MB, free: 11.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.3e-05/0.1357, allocations: 32.56 kB / 379 MB, free: 11.4 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004549/0.1361, allocations: 336 kB / 379.3 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.3e-05/0.1362, allocations: 12.38 kB / 379.3 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.296e-05/0.1362, allocations: 12.12 kB / 379.3 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003053/0.1365, allocations: 144 kB / 379.5 MB, free: 10.85 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.1365, allocations: 4 kB / 379.5 MB, free: 10.85 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.906e-05/0.1366, allocations: 7.938 kB / 379.5 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.1366, allocations: 4 kB / 379.5 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001654/0.1368, allocations: 67.91 kB / 379.6 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006919/0.1375, allocations: 0.4885 MB / 380 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003105/0.1378, allocations: 134.7 kB / 380.2 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.1379, allocations: 52.83 kB / 380.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.884e-05/0.1379, allocations: 4 kB / 380.2 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002346/0.1382, allocations: 119.2 kB / 380.3 MB, free: 9.902 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.674e-06/0.1382, allocations: 3.938 kB / 380.3 MB, free: 9.898 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005159/0.1387, allocations: 213.1 kB / 380.6 MB, free: 9.684 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.093e-05/0.1388, allocations: 106.8 kB / 380.7 MB, free: 9.555 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000473/0.1393, allocations: 440.3 kB / 381.1 MB, free: 9.117 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.507e-05/0.1393, allocations: 33.7 kB / 381.1 MB, free: 9.078 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.1395, allocations: 160 kB / 381.3 MB, free: 8.918 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.232e-05/0.1395, allocations: 43.45 kB / 381.3 MB, free: 8.875 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.486e-05/0.1396, allocations: 41.7 kB / 381.4 MB, free: 8.828 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.1397, allocations: 342.8 kB / 381.7 MB, free: 8.484 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.1399, allocations: 43.98 kB / 381.7 MB, free: 8.441 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.14, allocations: 109.9 kB / 381.8 MB, free: 8.312 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001963/0.1402, allocations: 98.55 kB / 381.9 MB, free: 8.207 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1402, allocations: 0 / 381.9 MB, free: 8.207 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003188/0.1405, allocations: 181.2 kB / 382.1 MB, free: 8.023 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.1406, allocations: 9.031 kB / 382.1 MB, free: 8.016 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.1406, allocations: 4 kB / 382.1 MB, free: 8.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.1406, allocations: 3.938 kB / 382.1 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.1407, allocations: 23.98 kB / 382.2 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.004e-06/0.1408, allocations: 0 / 382.2 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.323e-05/0.1409, allocations: 12 kB / 382.2 MB, free: 7.973 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.258e-05/0.1409, allocations: 4 kB / 382.2 MB, free: 7.969 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.0001933/0.1411, allocations: 183.5 kB / 382.4 MB, free: 7.777 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.56e-05/0.1411, allocations: 31.56 kB / 382.4 MB, free: 7.746 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.023e-05/0.1412, allocations: 30.94 kB / 382.4 MB, free: 7.711 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/0.1412, allocations: 0 / 382.4 MB, free: 7.711 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.1412, allocations: 4 kB / 382.4 MB, free: 7.707 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.1412, allocations: 3.984 kB / 382.4 MB, free: 7.703 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003323/0.1416, allocations: 293.4 kB / 382.7 MB, free: 7.367 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.1416, allocations: 4 kB / 382.7 MB, free: 7.363 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.657e-05/0.1416, allocations: 7.984 kB / 382.7 MB, free: 7.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.1416, allocations: 7.938 kB / 382.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.1417, allocations: 8 kB / 382.7 MB, free: 7.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.1417, allocations: 7.938 kB / 382.7 MB, free: 7.332 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1417, allocations: 0 / 382.7 MB, free: 7.332 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003544/0.142, allocations: 205.3 kB / 382.9 MB, free: 7.113 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.123e-05/0.1421, allocations: 100.8 kB / 383 MB, free: 6.996 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.632e-05/0.1422, allocations: 15.88 kB / 383.1 MB, free: 6.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.907e-05/0.1423, allocations: 4 kB / 383.1 MB, free: 6.977 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.542e-05/0.1424, allocations: 23.97 kB / 383.1 MB, free: 6.953 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.342e-05/0.1424, allocations: 4 kB / 383.1 MB, free: 6.949 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003856/0.1428, allocations: 315 kB / 383.4 MB, free: 6.641 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1428, allocations: 0 / 383.4 MB, free: 6.641 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002908/0.1431, allocations: 59.84 kB / 383.5 MB, free: 6.582 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.001105/0.1442, allocations: 424.5 kB / 383.9 MB, free: 6.156 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003687/0.1446, allocations: 119.8 kB / 384 MB, free: 6.039 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1446, allocations: 0 / 384 MB, free: 6.039 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001455/0.1447, allocations: 63.91 kB / 384.1 MB, free: 5.977 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004442/0.1452, allocations: 77.78 kB / 384.1 MB, free: 5.902 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009134/0.1461, allocations: 484.5 kB / 384.6 MB, free: 5.402 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004866/0.1466, allocations: 0.7754 MB / 385.4 MB, free: 4.602 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001266/0.1467, allocations: 50.25 kB / 385.4 MB, free: 4.555 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.022e-05/0.1468, allocations: 31.38 kB / 385.5 MB, free: 4.523 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1468, allocations: 0 / 385.5 MB, free: 4.523 MB / 318.1 MB Notification: Performance of Templates: time 0.008677/0.1555, allocations: 3.86 MB / 389.3 MB, free: 0.6562 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)