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.001286/0.001286, allocations: 97.8 kB / 16.5 MB, free: 6.648 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.001194/0.001194, allocations: 194 kB / 17.42 MB, free: 6.066 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.622/1.622, allocations: 205.1 MB / 223.3 MB, free: 12.47 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.001323/0.001324, allocations: 51.94 kB / 279.3 MB, free: 3.602 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1196, allocations: 46.63 MB / 325.9 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004152/0.1238, allocations: 2.042 MB / 328 MB, free: 2.84 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002071/0.1259, allocations: 1.038 MB / 329 MB, free: 1.793 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001993/0.1262, allocations: 3.938 kB / 329 MB, free: 1.789 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009623/0.1272, allocations: 287.3 kB / 329.3 MB, free: 1.508 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004871/0.1277, allocations: 187.5 kB / 329.5 MB, free: 1.324 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008432/0.1285, allocations: 243.6 kB / 329.7 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005432/0.1291, allocations: 343.1 kB / 330.1 MB, free: 0.75 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001747/0.1293, allocations: 56.39 kB / 330.1 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00026/0.1295, allocations: 127.5 kB / 330.2 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002521/0.1298, allocations: 135.4 kB / 330.4 MB, free: 448 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.885e-05/0.1299, allocations: 8 kB / 330.4 MB, free: 440 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002693/0.1301, allocations: 75.89 kB / 330.5 MB, free: 364 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001558/0.1303, allocations: 75.73 kB / 330.5 MB, free: 288 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000228/0.1305, allocations: 111.2 kB / 330.6 MB, free: 176 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006754/0.1312, allocations: 339.1 kB / 331 MB, free: 15.84 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.1312, allocations: 4 kB / 331 MB, free: 15.84 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1313, allocations: 0 / 331 MB, free: 15.84 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.588e-05/0.1313, allocations: 0 / 331 MB, free: 15.84 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.001716/0.133, allocations: 0.6533 MB / 331.6 MB, free: 15.12 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.117e-05/0.1331, allocations: 12.03 kB / 331.6 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001412/0.1332, allocations: 32.56 kB / 331.7 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005822/0.1338, allocations: 331.9 kB / 332 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/0.1339, allocations: 8.375 kB / 332 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.465e-05/0.1339, allocations: 16.12 kB / 332 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000399/0.1343, allocations: 148.1 kB / 332.2 MB, free: 14.53 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.1343, allocations: 0 / 332.2 MB, free: 14.53 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.39e-05/0.1344, allocations: 3.984 kB / 332.2 MB, free: 14.53 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.1344, allocations: 8 kB / 332.2 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002438/0.1346, allocations: 75.81 kB / 332.3 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009199/0.1356, allocations: 488.3 kB / 332.7 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003367/0.1359, allocations: 146.7 kB / 332.9 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001149/0.136, allocations: 48.83 kB / 332.9 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.58e-05/0.1361, allocations: 4 kB / 332.9 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00026/0.1364, allocations: 115.3 kB / 333 MB, free: 13.59 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.432e-06/0.1364, allocations: 4 kB / 333 MB, free: 13.58 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006031/0.137, allocations: 218.3 kB / 333.3 MB, free: 13.36 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.729e-05/0.1371, allocations: 114.8 kB / 333.4 MB, free: 13.23 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005285/0.1376, allocations: 420.5 kB / 333.8 MB, free: 12.8 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.283e-05/0.1377, allocations: 33.7 kB / 333.8 MB, free: 12.77 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.1378, allocations: 171.9 kB / 334 MB, free: 12.59 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.807e-05/0.1379, allocations: 39.55 kB / 334 MB, free: 12.55 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.298e-05/0.138, allocations: 41.7 kB / 334.1 MB, free: 12.51 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1381, allocations: 346.8 kB / 334.4 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.1382, allocations: 39.98 kB / 334.4 MB, free: 12.12 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001587/0.1384, allocations: 102 kB / 334.5 MB, free: 12 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002438/0.1386, allocations: 111.1 kB / 334.6 MB, free: 11.88 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1387, allocations: 0 / 334.6 MB, free: 11.88 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003722/0.139, allocations: 175.5 kB / 334.8 MB, free: 11.71 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.1391, allocations: 7.938 kB / 334.8 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.1391, allocations: 0 / 334.8 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.54e-05/0.1391, allocations: 12.06 kB / 334.8 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.1392, allocations: 19.98 kB / 334.9 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.1393, allocations: 7.938 kB / 334.9 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001197/0.1394, allocations: 23.83 kB / 334.9 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/0.1394, allocations: 4 kB / 334.9 MB, free: 11.63 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.0001861/0.1396, allocations: 163.6 kB / 335.1 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.194e-05/0.1397, allocations: 39.55 kB / 335.1 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.639e-05/0.1398, allocations: 34.94 kB / 335.1 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.1398, allocations: 4 kB / 335.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.321e-06/0.1398, allocations: 0 / 335.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1398, allocations: 0 / 335.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003072/0.1401, allocations: 293.4 kB / 335.4 MB, free: 11.05 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.1401, allocations: 0 / 335.4 MB, free: 11.05 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.157e-05/0.1402, allocations: 11.94 kB / 335.4 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.1402, allocations: 3.938 kB / 335.4 MB, free: 11.03 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.1402, allocations: 11.98 kB / 335.4 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.1402, allocations: 0 / 335.4 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1402, allocations: 0 / 335.4 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000354/0.1406, allocations: 200.7 kB / 335.6 MB, free: 10.8 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.795e-05/0.1407, allocations: 108.6 kB / 335.7 MB, free: 10.68 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.854e-05/0.1407, allocations: 11.94 kB / 335.8 MB, free: 10.67 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.552e-05/0.1408, allocations: 11.98 kB / 335.8 MB, free: 10.66 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.549e-05/0.1409, allocations: 7.984 kB / 335.8 MB, free: 10.65 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.303e-05/0.1409, allocations: 8 kB / 335.8 MB, free: 10.64 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003369/0.1413, allocations: 315 kB / 336.1 MB, free: 10.34 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1413, allocations: 4 kB / 336.1 MB, free: 10.33 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003125/0.1416, allocations: 48 kB / 336.1 MB, free: 10.29 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.001177/0.1428, allocations: 438.5 kB / 336.6 MB, free: 9.859 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003674/0.1432, allocations: 115.9 kB / 336.7 MB, free: 9.746 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1432, allocations: 0 / 336.7 MB, free: 9.746 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.1433, allocations: 60.05 kB / 336.7 MB, free: 9.688 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000476/0.1438, allocations: 77.38 kB / 336.8 MB, free: 9.609 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.1449, allocations: 0.5527 MB / 337.4 MB, free: 9.031 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004647/0.1454, allocations: 0.7755 MB / 338.1 MB, free: 8.23 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001748/0.1455, allocations: 46.2 kB / 338.2 MB, free: 8.184 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.452e-05/0.1456, allocations: 31.42 kB / 338.2 MB, free: 8.152 MB / 286.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1456, allocations: 0 / 338.2 MB, free: 8.152 MB / 286.1 MB Notification: Performance of Templates: time 0.009486/0.1551, allocations: 3.638 MB / 341.9 MB, free: 4.512 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)