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.0008738/0.0008738, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0008833/0.0008833, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.438/1.438, allocations: 205.4 MB / 222.1 MB, free: 5.473 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.0004558/0.0004559, allocations: 12 kB / 278.9 MB, free: 12.71 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.2299, allocations: 47.59 MB / 326.5 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002196/0.2321, allocations: 1.642 MB / 328.1 MB, free: 140 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.00147/0.2336, allocations: 0.9862 MB / 329.1 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.2338, allocations: 2.844 kB / 329.1 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007554/0.2345, allocations: 273.1 kB / 329.4 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003565/0.2349, allocations: 172.8 kB / 329.5 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000557/0.2355, allocations: 229 kB / 329.8 MB, free: 14.97 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000342/0.2358, allocations: 307.1 kB / 330.1 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.2359, allocations: 44.5 kB / 330.1 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001623/0.2361, allocations: 118.7 kB / 330.2 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001914/0.2363, allocations: 131.4 kB / 330.3 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.789e-05/0.2363, allocations: 6.5 kB / 330.3 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001402/0.2365, allocations: 62.27 kB / 330.4 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.2366, allocations: 68.88 kB / 330.5 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.06e-05/0.2367, allocations: 72.17 kB / 330.5 MB, free: 14.51 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003059/0.237, allocations: 260.7 kB / 330.8 MB, free: 14.33 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.237, allocations: 1.094 kB / 330.8 MB, free: 14.33 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.237, allocations: 0 / 330.8 MB, free: 14.33 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.237, allocations: 0 / 330.8 MB, free: 14.33 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.0009403/0.238, allocations: 0.6109 MB / 331.4 MB, free: 13.74 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.238, allocations: 8.75 kB / 331.4 MB, free: 13.74 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.788e-05/0.2381, allocations: 39.3 kB / 331.5 MB, free: 13.71 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004134/0.2385, allocations: 319.6 kB / 331.8 MB, free: 13.42 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.265e-05/0.2386, allocations: 9.312 kB / 331.8 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.214e-05/0.2386, allocations: 11.25 kB / 331.8 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002912/0.2389, allocations: 141.8 kB / 331.9 MB, free: 13.3 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.134e-06/0.2389, allocations: 5.125 kB / 331.9 MB, free: 13.3 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.2389, allocations: 4.938 kB / 331.9 MB, free: 13.29 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.2389, allocations: 2.375 kB / 331.9 MB, free: 13.29 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001685/0.2391, allocations: 75.81 kB / 332 MB, free: 13.25 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007084/0.2398, allocations: 499.4 kB / 332.5 MB, free: 12.81 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002913/0.2401, allocations: 135.4 kB / 332.6 MB, free: 12.73 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.2403, allocations: 47.25 kB / 332.7 MB, free: 12.7 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.008e-05/0.2403, allocations: 10.03 kB / 332.7 MB, free: 12.69 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002261/0.2405, allocations: 112.4 kB / 332.8 MB, free: 12.6 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.683e-06/0.2405, allocations: 1.062 kB / 332.8 MB, free: 12.6 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004944/0.241, allocations: 213.5 kB / 333 MB, free: 12.48 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.809e-05/0.2411, allocations: 108.8 kB / 333.1 MB, free: 12.36 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004926/0.2416, allocations: 427.5 kB / 333.5 MB, free: 12.1 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.2417, allocations: 37.05 kB / 333.6 MB, free: 12.06 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.2418, allocations: 164.2 kB / 333.7 MB, free: 11.91 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.741e-05/0.2418, allocations: 38.09 kB / 333.8 MB, free: 11.88 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.073e-06/0.2418, allocations: 0 / 333.8 MB, free: 11.88 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.242, allocations: 347.6 kB / 334.1 MB, free: 11.54 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.696e-05/0.2421, allocations: 38.67 kB / 334.1 MB, free: 11.53 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001386/0.2422, allocations: 106.9 kB / 334.3 MB, free: 11.41 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001103/0.2423, allocations: 56.45 kB / 334.3 MB, free: 11.35 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2423, allocations: 0 / 334.3 MB, free: 11.35 MB / 270.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002883/0.2426, allocations: 181 kB / 334.5 MB, free: 11.17 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.2427, allocations: 8 kB / 334.5 MB, free: 11.16 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.2427, allocations: 64 / 334.5 MB, free: 11.16 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.2427, allocations: 4 kB / 334.5 MB, free: 11.16 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.2428, allocations: 23.98 kB / 334.5 MB, free: 11.13 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.2428, allocations: 0 / 334.5 MB, free: 11.13 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.776e-05/0.2429, allocations: 23.92 kB / 334.5 MB, free: 11.11 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.2429, allocations: 4 kB / 334.5 MB, free: 11.11 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 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,$PRE.Pre1.u,Pre1.u,Pre1.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001632/0.2431, allocations: 167.5 kB / 334.7 MB, free: 10.93 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.668e-05/0.2432, allocations: 35.58 kB / 334.7 MB, free: 10.89 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.786e-05/0.2432, allocations: 38.94 kB / 334.8 MB, free: 10.86 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.2432, allocations: 0 / 334.8 MB, free: 10.86 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.2433, allocations: 0 / 334.8 MB, free: 10.86 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.2433, allocations: 0 / 334.8 MB, free: 10.86 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002588/0.2435, allocations: 301.4 kB / 335.1 MB, free: 10.51 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.2435, allocations: 0 / 335.1 MB, free: 10.51 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.844e-05/0.2436, allocations: 11.94 kB / 335.1 MB, free: 10.5 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.2436, allocations: 3.953 kB / 335.1 MB, free: 10.5 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.2436, allocations: 7.984 kB / 335.1 MB, free: 10.49 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2436, allocations: 0 / 335.1 MB, free: 10.49 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2436, allocations: 4 kB / 335.1 MB, free: 10.48 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003234/0.244, allocations: 204.6 kB / 335.3 MB, free: 10.27 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.737e-05/0.2441, allocations: 112.7 kB / 335.4 MB, free: 10.14 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.151e-05/0.2441, allocations: 11.95 kB / 335.4 MB, free: 10.12 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.062e-05/0.2442, allocations: 8 kB / 335.4 MB, free: 10.12 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.429e-05/0.2442, allocations: 15.97 kB / 335.4 MB, free: 10.1 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/0.2443, allocations: 12 kB / 335.5 MB, free: 10.09 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0003314/0.2446, allocations: 311 kB / 335.8 MB, free: 9.789 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2446, allocations: 0 / 335.8 MB, free: 9.789 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002911/0.2449, allocations: 51.94 kB / 335.8 MB, free: 9.738 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001024/0.2459, allocations: 434 kB / 336.2 MB, free: 9.312 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0002921/0.2463, allocations: 119.8 kB / 336.4 MB, free: 9.195 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2463, allocations: 8.125 kB / 336.4 MB, free: 9.188 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.2464, allocations: 63.84 kB / 336.4 MB, free: 9.125 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003862/0.2468, allocations: 65.38 kB / 336.5 MB, free: 9.055 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007647/0.2476, allocations: 0.523 MB / 337 MB, free: 8.504 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003406/0.2479, allocations: 0.7718 MB / 337.8 MB, free: 7.707 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001247/0.248, allocations: 42.27 kB / 337.8 MB, free: 7.668 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.11e-05/0.2481, allocations: 23.44 kB / 337.8 MB, free: 7.648 MB / 270.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2481, allocations: 3.938 kB / 337.9 MB, free: 7.645 MB / 270.1 MB Notification: Performance of Templates: time 0.007165/0.2553, allocations: 3.497 MB / 341.3 MB, free: 4.145 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)