Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001122/0.001122, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.009837/0.009837, allocations: 170.1 kB / 16.26 MB, free: 6.613 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.742/1.742, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0007026/0.0007025, allocations: 8 kB / 279.4 MB, free: 12.53 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.3563, allocations: 47.59 MB / 327 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003199/0.3596, allocations: 1.692 MB / 328.7 MB, free: 60 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002234/0.3618, allocations: 1.021 MB / 329.7 MB, free: 15.26 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002753/0.3621, allocations: 2.719 kB / 329.7 MB, free: 15.26 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001083/0.3632, allocations: 294.9 kB / 330 MB, free: 15.1 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005955/0.3639, allocations: 184.7 kB / 330.2 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008419/0.3647, allocations: 243.9 kB / 330.4 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006797/0.3654, allocations: 338.3 kB / 330.8 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002052/0.3656, allocations: 48.33 kB / 330.8 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003747/0.366, allocations: 124 kB / 330.9 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003866/0.3664, allocations: 132.9 kB / 331.1 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.194e-05/0.3665, allocations: 14.66 kB / 331.1 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002661/0.3668, allocations: 54.94 kB / 331.1 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001486/0.3669, allocations: 74.02 kB / 331.2 MB, free: 14.4 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002113/0.3671, allocations: 138.1 kB / 331.3 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006087/0.3677, allocations: 326.9 kB / 331.7 MB, free: 14.06 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.3678, allocations: 1 kB / 331.7 MB, free: 14.06 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3678, allocations: 0 / 331.7 MB, free: 14.06 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.3678, allocations: 0 / 331.7 MB, free: 14.06 MB / 270.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.001334/0.3691, allocations: 0.6148 MB / 332.3 MB, free: 13.46 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.277e-05/0.3692, allocations: 9.094 kB / 332.3 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/0.3693, allocations: 36.17 kB / 332.3 MB, free: 13.44 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005511/0.3699, allocations: 321.2 kB / 332.6 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.456e-05/0.3699, allocations: 5.844 kB / 332.6 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.563e-05/0.37, allocations: 16 kB / 332.7 MB, free: 13.13 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003502/0.3703, allocations: 150.2 kB / 332.8 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.3704, allocations: 9.203 kB / 332.8 MB, free: 13.01 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.163e-05/0.3704, allocations: 5.344 kB / 332.8 MB, free: 13 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.3704, allocations: 2.5 kB / 332.8 MB, free: 13 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001934/0.3706, allocations: 71.81 kB / 332.9 MB, free: 12.97 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008525/0.3715, allocations: 499.2 kB / 333.4 MB, free: 12.52 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003815/0.3719, allocations: 140.5 kB / 333.5 MB, free: 12.44 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001304/0.372, allocations: 52.28 kB / 333.6 MB, free: 12.41 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.634e-05/0.3721, allocations: 6.047 kB / 333.6 MB, free: 12.4 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003026/0.3724, allocations: 104.6 kB / 333.7 MB, free: 12.32 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 3.546e-06/0.3724, allocations: 0 / 333.7 MB, free: 12.32 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006672/0.3731, allocations: 224.2 kB / 333.9 MB, free: 12.2 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.478e-05/0.3732, allocations: 112.8 kB / 334 MB, free: 12.06 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005997/0.3738, allocations: 431.7 kB / 334.4 MB, free: 11.72 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.132e-05/0.3738, allocations: 33.7 kB / 334.5 MB, free: 11.68 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.3739, allocations: 160 kB / 334.6 MB, free: 11.52 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.785e-05/0.374, allocations: 39.44 kB / 334.7 MB, free: 11.48 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.756e-05/0.3741, allocations: 29.7 kB / 334.7 MB, free: 11.45 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.3742, allocations: 338.8 kB / 335 MB, free: 11.11 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.3743, allocations: 47.97 kB / 335.1 MB, free: 11.06 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.3745, allocations: 102 kB / 335.2 MB, free: 10.94 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000231/0.3747, allocations: 103 kB / 335.3 MB, free: 10.83 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3747, allocations: 0 / 335.3 MB, free: 10.83 MB / 270.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003467/0.3751, allocations: 185.1 kB / 335.4 MB, free: 10.64 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.512e-05/0.3751, allocations: 11.94 kB / 335.5 MB, free: 10.63 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.3752, allocations: 0 / 335.5 MB, free: 10.63 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.3752, allocations: 3.938 kB / 335.5 MB, free: 10.63 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.3753, allocations: 31.92 kB / 335.5 MB, free: 10.6 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.3753, allocations: 0 / 335.5 MB, free: 10.6 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001311/0.3755, allocations: 19.84 kB / 335.5 MB, free: 10.58 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/0.3755, allocations: 8.062 kB / 335.5 MB, free: 10.57 MB / 270.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.0001819/0.3757, allocations: 171.5 kB / 335.7 MB, free: 10.39 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.749e-05/0.3757, allocations: 31.66 kB / 335.7 MB, free: 10.36 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.83e-05/0.3758, allocations: 34.94 kB / 335.7 MB, free: 10.32 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.3758, allocations: 0 / 335.7 MB, free: 10.32 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.383e-06/0.3758, allocations: 0 / 335.7 MB, free: 10.32 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.3759, allocations: 4 kB / 335.8 MB, free: 10.32 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003232/0.3762, allocations: 293.4 kB / 336 MB, free: 9.984 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3762, allocations: 0 / 336 MB, free: 9.984 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.016e-05/0.3762, allocations: 19.98 kB / 336.1 MB, free: 9.965 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.3763, allocations: 3.938 kB / 336.1 MB, free: 9.961 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.3763, allocations: 4 kB / 336.1 MB, free: 9.957 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.399e-06/0.3763, allocations: 4 kB / 336.1 MB, free: 9.953 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3763, allocations: 0 / 336.1 MB, free: 9.953 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003373/0.3766, allocations: 204.6 kB / 336.3 MB, free: 9.734 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.736e-05/0.3768, allocations: 112.7 kB / 336.4 MB, free: 9.605 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.927e-05/0.3768, allocations: 11.94 kB / 336.4 MB, free: 9.594 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.131e-05/0.3769, allocations: 19.92 kB / 336.4 MB, free: 9.574 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.46e-05/0.377, allocations: 11.98 kB / 336.4 MB, free: 9.562 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.917e-05/0.377, allocations: 4 kB / 336.4 MB, free: 9.559 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0003378/0.3774, allocations: 319 kB / 336.7 MB, free: 9.25 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3774, allocations: 0 / 336.7 MB, free: 9.25 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003159/0.3777, allocations: 48 kB / 336.8 MB, free: 9.203 MB / 270.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.001031/0.3787, allocations: 421.9 kB / 337.2 MB, free: 8.789 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003203/0.3791, allocations: 127.8 kB / 337.3 MB, free: 8.664 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3791, allocations: 0 / 337.3 MB, free: 8.664 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001298/0.3792, allocations: 63.91 kB / 337.4 MB, free: 8.602 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004604/0.3797, allocations: 69.36 kB / 337.5 MB, free: 8.527 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009315/0.3806, allocations: 0.5504 MB / 338 MB, free: 7.949 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004075/0.381, allocations: 0.7794 MB / 338.8 MB, free: 7.145 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001374/0.3812, allocations: 42.25 kB / 338.8 MB, free: 7.105 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.526e-05/0.3813, allocations: 31.44 kB / 338.9 MB, free: 7.078 MB / 270.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3813, allocations: 0 / 338.9 MB, free: 7.078 MB / 270.1 MB Notification: Performance of Templates: time 0.008638/0.3899, allocations: 3.606 MB / 342.5 MB, free: 3.469 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1)