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.0007776/0.0007776, allocations: 91.84 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.006014/0.006014, allocations: 170.1 kB / 16.26 MB, free: 6.676 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.332/1.332, allocations: 205.4 MB / 222.5 MB, free: 5.555 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.0004462/0.0004463, allocations: 15.98 kB / 279.4 MB, free: 12.53 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2221/0.2226, allocations: 47.58 MB / 327 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.001985/0.2246, allocations: 1.69 MB / 328.7 MB, free: 68 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001604/0.2262, allocations: 1.023 MB / 329.7 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001044/0.2263, allocations: 2.156 kB / 329.7 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007882/0.2271, allocations: 295 kB / 330 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003699/0.2275, allocations: 183.7 kB / 330.2 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000578/0.2281, allocations: 241.7 kB / 330.4 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003888/0.2285, allocations: 333.5 kB / 330.8 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001457/0.2287, allocations: 65.14 kB / 330.8 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001521/0.2288, allocations: 116.3 kB / 330.9 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001681/0.229, allocations: 132.7 kB / 331.1 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.588e-05/0.229, allocations: 5.312 kB / 331.1 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001444/0.2292, allocations: 59.25 kB / 331.1 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.723e-05/0.2293, allocations: 78.14 kB / 331.2 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.2294, allocations: 138.6 kB / 331.3 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003397/0.2298, allocations: 327.7 kB / 331.7 MB, free: 14.07 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2298, allocations: 0 / 331.7 MB, free: 14.07 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2298, allocations: 0 / 331.7 MB, free: 14.07 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.2298, allocations: 0 / 331.7 MB, free: 14.07 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.0008291/0.2306, allocations: 0.6116 MB / 332.3 MB, free: 13.47 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.2307, allocations: 12.97 kB / 332.3 MB, free: 13.47 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.51e-05/0.2307, allocations: 35.66 kB / 332.3 MB, free: 13.45 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003781/0.2311, allocations: 325.9 kB / 332.6 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.265e-05/0.2311, allocations: 9.062 kB / 332.6 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.526e-05/0.2312, allocations: 12.22 kB / 332.7 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002767/0.2315, allocations: 145.9 kB / 332.8 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.2315, allocations: 0.9688 kB / 332.8 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.81e-05/0.2315, allocations: 5.281 kB / 332.8 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.2315, allocations: 6.031 kB / 332.8 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001543/0.2317, allocations: 72.22 kB / 332.9 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006531/0.2323, allocations: 0.4917 MB / 333.4 MB, free: 12.53 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003093/0.2327, allocations: 136.1 kB / 333.5 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.2328, allocations: 52.67 kB / 333.6 MB, free: 12.42 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.518e-05/0.2328, allocations: 1.969 kB / 333.6 MB, free: 12.42 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002162/0.233, allocations: 113 kB / 333.7 MB, free: 12.33 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 2.916e-06/0.233, allocations: 0 / 333.7 MB, free: 12.33 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004703/0.2335, allocations: 224.5 kB / 333.9 MB, free: 12.2 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.145e-05/0.2336, allocations: 104.1 kB / 334 MB, free: 12.08 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004728/0.2341, allocations: 432.6 kB / 334.4 MB, free: 11.74 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.2341, allocations: 29.7 kB / 334.4 MB, free: 11.7 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.2342, allocations: 168 kB / 334.6 MB, free: 11.54 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.961e-05/0.2343, allocations: 43.45 kB / 334.7 MB, free: 11.49 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.532e-05/0.2343, allocations: 25.7 kB / 334.7 MB, free: 11.46 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.2345, allocations: 346.8 kB / 335 MB, free: 11.11 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/0.2346, allocations: 39.98 kB / 335.1 MB, free: 11.07 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001479/0.2347, allocations: 97.98 kB / 335.1 MB, free: 10.96 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000189/0.2349, allocations: 110.6 kB / 335.3 MB, free: 10.84 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2349, allocations: 0 / 335.3 MB, free: 10.84 MB / 270.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002991/0.2353, allocations: 177.2 kB / 335.4 MB, free: 10.66 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.2353, allocations: 11.94 kB / 335.4 MB, free: 10.65 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.2353, allocations: 0 / 335.4 MB, free: 10.65 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.2353, allocations: 4.062 kB / 335.4 MB, free: 10.64 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.2354, allocations: 31.92 kB / 335.5 MB, free: 10.61 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.2354, allocations: 3.984 kB / 335.5 MB, free: 10.61 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.817e-05/0.2355, allocations: 15.84 kB / 335.5 MB, free: 10.59 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.284e-05/0.2356, allocations: 12 kB / 335.5 MB, free: 10.58 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.0001629/0.2357, allocations: 167.6 kB / 335.7 MB, free: 10.41 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.987e-05/0.2358, allocations: 31.66 kB / 335.7 MB, free: 10.38 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.786e-05/0.2359, allocations: 38.94 kB / 335.7 MB, free: 10.34 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.2359, allocations: 0 / 335.7 MB, free: 10.34 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.2359, allocations: 0 / 335.7 MB, free: 10.34 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.2359, allocations: 3.984 kB / 335.7 MB, free: 10.33 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003061/0.2362, allocations: 305.3 kB / 336 MB, free: 9.984 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.2362, allocations: 0 / 336 MB, free: 9.984 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.935e-05/0.2363, allocations: 11.98 kB / 336.1 MB, free: 9.973 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.2363, allocations: 3.938 kB / 336.1 MB, free: 9.969 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.2363, allocations: 4 kB / 336.1 MB, free: 9.965 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2363, allocations: 0 / 336.1 MB, free: 9.965 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2363, allocations: 0 / 336.1 MB, free: 9.965 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003342/0.2366, allocations: 204.6 kB / 336.3 MB, free: 9.746 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.167e-05/0.2367, allocations: 112.7 kB / 336.4 MB, free: 9.617 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.442e-05/0.2368, allocations: 11.94 kB / 336.4 MB, free: 9.605 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.85e-05/0.2369, allocations: 15.92 kB / 336.4 MB, free: 9.59 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.67e-05/0.237, allocations: 15.92 kB / 336.4 MB, free: 9.574 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.776e-05/0.237, allocations: 7.984 kB / 336.4 MB, free: 9.566 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0003179/0.2373, allocations: 319 kB / 336.7 MB, free: 9.258 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2373, allocations: 0 / 336.7 MB, free: 9.258 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002866/0.2376, allocations: 51.98 kB / 336.8 MB, free: 9.207 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.0009451/0.2386, allocations: 425.6 kB / 337.2 MB, free: 8.789 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0002756/0.2388, allocations: 119.8 kB / 337.3 MB, free: 8.672 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2389, allocations: 128 / 337.3 MB, free: 8.672 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.239, allocations: 59.92 kB / 337.4 MB, free: 8.613 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004049/0.2394, allocations: 73.36 kB / 337.4 MB, free: 8.535 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000797/0.2402, allocations: 0.5541 MB / 338 MB, free: 7.953 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003511/0.2406, allocations: 0.7755 MB / 338.8 MB, free: 7.152 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001147/0.2407, allocations: 42.27 kB / 338.8 MB, free: 7.113 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.077e-05/0.2408, allocations: 27.44 kB / 338.8 MB, free: 7.09 MB / 270.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2408, allocations: 0 / 338.8 MB, free: 7.09 MB / 270.1 MB Notification: Performance of Templates: time 0.007239/0.248, allocations: 3.61 MB / 342.5 MB, free: 3.477 MB / 270.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)