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.00133/0.001338, allocations: 113.8 kB / 17.06 MB, free: 5.969 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.001602/0.001602, allocations: 198.9 kB / 18 MB, free: 5.055 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.672/1.672, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.001269/0.001269, allocations: 47.92 kB / 327.8 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1112, allocations: 46.62 MB / 374.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00321/0.1145, allocations: 1.988 MB / 376.5 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001702/0.1162, allocations: 1.057 MB / 377.5 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.1163, allocations: 0 / 377.5 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008115/0.1172, allocations: 307.1 kB / 377.8 MB, free: 1.207 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.0004495/0.1176, allocations: 207.2 kB / 378 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006269/0.1183, allocations: 251.5 kB / 378.3 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000375/0.1187, allocations: 347.2 kB / 378.6 MB, free: 428 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001622/0.1188, allocations: 60.34 kB / 378.7 MB, free: 368 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001713/0.119, allocations: 143.5 kB / 378.8 MB, free: 224 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000179/0.1192, allocations: 147.4 kB / 378.9 MB, free: 76 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.683e-05/0.1193, allocations: 20 kB / 379 MB, free: 56 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2042/0.3234, allocations: 79 kB / 379 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000233/0.3237, allocations: 86.38 kB / 379.1 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002093/0.3239, allocations: 129 kB / 379.3 MB, free: 10.14 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005945/0.3245, allocations: 350.3 kB / 379.6 MB, free: 10.11 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3246, allocations: 0 / 379.6 MB, free: 10.11 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3246, allocations: 0 / 379.6 MB, free: 10.11 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.3246, allocations: 1.344 kB / 379.6 MB, free: 10.11 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.0009907/0.3256, allocations: 0.6565 MB / 380.3 MB, free: 9.574 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.3256, allocations: 8.188 kB / 380.3 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.564e-05/0.3257, allocations: 33.33 kB / 380.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000422/0.3262, allocations: 331.8 kB / 380.6 MB, free: 9.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.3262, allocations: 8.656 kB / 380.6 MB, free: 9.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.782e-05/0.3262, allocations: 15.42 kB / 380.6 MB, free: 9.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002839/0.3265, allocations: 151 kB / 380.8 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.3265, allocations: 0 / 380.8 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.738e-05/0.3266, allocations: 5.266 kB / 380.8 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.3266, allocations: 2.75 kB / 380.8 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001616/0.3267, allocations: 68.73 kB / 380.9 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006721/0.3274, allocations: 0.494 MB / 381.4 MB, free: 8.973 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002924/0.3277, allocations: 131.9 kB / 381.5 MB, free: 8.949 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.922e-05/0.3278, allocations: 49.64 kB / 381.5 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.3279, allocations: 4.984 kB / 381.5 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002089/0.3281, allocations: 113.1 kB / 381.6 MB, free: 8.891 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.3281, allocations: 0 / 381.6 MB, free: 8.891 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004968/0.3286, allocations: 220.8 kB / 381.9 MB, free: 8.836 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/0.3286, allocations: 106 kB / 382 MB, free: 8.711 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005448/0.3292, allocations: 432.5 kB / 382.4 MB, free: 8.594 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.001e-05/0.3292, allocations: 33.23 kB / 382.4 MB, free: 8.562 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.3293, allocations: 164.2 kB / 382.6 MB, free: 8.473 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.995e-05/0.3294, allocations: 47.78 kB / 382.6 MB, free: 8.449 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.608e-05/0.3294, allocations: 44.44 kB / 382.7 MB, free: 8.434 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.146e-05/0.3295, allocations: 339.3 kB / 383 MB, free: 8.121 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000102/0.3296, allocations: 44.77 kB / 383 MB, free: 8.121 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000132/0.3298, allocations: 105.1 kB / 383.2 MB, free: 8.066 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002058/0.33, allocations: 109.7 kB / 383.3 MB, free: 8.039 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.33, allocations: 0 / 383.3 MB, free: 8.039 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002977/0.3303, allocations: 174.5 kB / 383.4 MB, free: 7.988 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.3303, allocations: 5.469 kB / 383.4 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.3303, allocations: 1.312 kB / 383.4 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.3304, allocations: 5.156 kB / 383.4 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.3305, allocations: 29.19 kB / 383.5 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.3305, allocations: 1.062 kB / 383.5 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.904e-05/0.3306, allocations: 13.3 kB / 383.5 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.3306, allocations: 14.42 kB / 383.5 MB, free: 7.977 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.0001368/0.3308, allocations: 166.2 kB / 383.7 MB, free: 7.859 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.404e-05/0.3308, allocations: 28.83 kB / 383.7 MB, free: 7.844 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.857e-05/0.3309, allocations: 39.17 kB / 383.7 MB, free: 7.832 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3309, allocations: 1.953 kB / 383.7 MB, free: 7.832 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.3309, allocations: 1.156 kB / 383.7 MB, free: 7.832 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.3309, allocations: 0.7031 kB / 383.7 MB, free: 7.832 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002667/0.3312, allocations: 302 kB / 384 MB, free: 7.641 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.3312, allocations: 7.594 kB / 384 MB, free: 7.637 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.959e-05/0.3313, allocations: 7.141 kB / 384 MB, free: 7.637 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.3313, allocations: 8.969 kB / 384 MB, free: 7.633 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.3313, allocations: 10.02 kB / 384.1 MB, free: 7.629 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.3313, allocations: 2 kB / 384.1 MB, free: 7.629 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3313, allocations: 1.078 kB / 384.1 MB, free: 7.629 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003236/0.3316, allocations: 201.5 kB / 384.3 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.646e-05/0.3317, allocations: 105.8 kB / 384.4 MB, free: 7.434 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.023e-05/0.3317, allocations: 11.5 kB / 384.4 MB, free: 7.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.139e-05/0.3318, allocations: 7.734 kB / 384.4 MB, free: 7.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.451e-05/0.3319, allocations: 13.59 kB / 384.4 MB, free: 7.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.088e-05/0.3319, allocations: 7.359 kB / 384.4 MB, free: 7.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003013/0.3322, allocations: 312.3 kB / 384.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3322, allocations: 3.781 kB / 384.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002877/0.3325, allocations: 57.02 kB / 384.8 MB, free: 7.34 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.0008889/0.3334, allocations: 418 kB / 385.2 MB, free: 7.043 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002919/0.3337, allocations: 118.8 kB / 385.3 MB, free: 7.039 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.3337, allocations: 1.219 kB / 385.3 MB, free: 7.039 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001269/0.3339, allocations: 67.03 kB / 385.4 MB, free: 7.035 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004268/0.3343, allocations: 89.19 kB / 385.4 MB, free: 7.016 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006936/0.335, allocations: 483.2 kB / 385.9 MB, free: 6.789 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000206/0.3352, allocations: 0.7693 MB / 386.7 MB, free: 6.094 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001219/0.3354, allocations: 48.11 kB / 386.7 MB, free: 6.082 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.455e-05/0.3354, allocations: 32.36 kB / 386.8 MB, free: 6.074 MB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3354, allocations: 0 / 386.8 MB, free: 6.074 MB / 318.1 MB Notification: Performance of Templates: time 0.008231/0.3437, allocations: 3.947 MB / 390.7 MB, free: 5.676 MB / 318.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)