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.001468/0.001468, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001997/0.001997, allocations: 198.6 kB / 16.54 MB, free: 6.672 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.74/1.74, allocations: 205.1 MB / 222.4 MB, free: 4.613 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.001994/0.001994, allocations: 55.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.2917, allocations: 46.62 MB / 325.3 MB, free: 2.082 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003748/0.2955, allocations: 1.995 MB / 327.3 MB, free: 0.5039 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001707/0.2973, allocations: 1.049 MB / 328.3 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.2974, allocations: 2.312 kB / 328.3 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008945/0.2983, allocations: 303.3 kB / 328.6 MB, free: 15.51 MB / 270.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.0004853/0.2988, allocations: 200.2 kB / 328.8 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006366/0.2995, allocations: 251.8 kB / 329.1 MB, free: 15.21 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004143/0.2999, allocations: 351.8 kB / 329.4 MB, free: 15 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001757/0.3001, allocations: 65.48 kB / 329.5 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001901/0.3003, allocations: 138.4 kB / 329.6 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002183/0.3005, allocations: 142 kB / 329.8 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.579e-05/0.3005, allocations: 17.47 kB / 329.8 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001952/0.3007, allocations: 80.08 kB / 329.9 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.3009, allocations: 85.52 kB / 329.9 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001399/0.301, allocations: 125.5 kB / 330.1 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004368/0.3015, allocations: 350.1 kB / 330.4 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3015, allocations: 0 / 330.4 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3015, allocations: 1.219 kB / 330.4 MB, free: 14.38 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.3015, allocations: 0 / 330.4 MB, free: 14.38 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.001005/0.3025, allocations: 0.6524 MB / 331.1 MB, free: 13.75 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.3025, allocations: 9.562 kB / 331.1 MB, free: 13.75 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.436e-05/0.3026, allocations: 31.91 kB / 331.1 MB, free: 13.74 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004363/0.3031, allocations: 336.8 kB / 331.4 MB, free: 13.42 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.261e-05/0.3031, allocations: 12.81 kB / 331.4 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.464e-05/0.3032, allocations: 16.06 kB / 331.5 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003073/0.3035, allocations: 146.8 kB / 331.6 MB, free: 13.29 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.3035, allocations: 1.5 kB / 331.6 MB, free: 13.29 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.3035, allocations: 1.469 kB / 331.6 MB, free: 13.29 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.3035, allocations: 1.406 kB / 331.6 MB, free: 13.29 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001761/0.3037, allocations: 73.08 kB / 331.7 MB, free: 13.26 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007657/0.3045, allocations: 492.8 kB / 332.2 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003429/0.3048, allocations: 135.7 kB / 332.3 MB, free: 12.73 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.305, allocations: 49.09 kB / 332.3 MB, free: 12.71 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.75e-05/0.305, allocations: 2.156 kB / 332.3 MB, free: 12.71 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002303/0.3052, allocations: 121.1 kB / 332.5 MB, free: 12.61 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.383e-06/0.3053, allocations: 0 / 332.5 MB, free: 12.61 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005056/0.3058, allocations: 224.3 kB / 332.7 MB, free: 12.48 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.119e-05/0.3058, allocations: 108 kB / 332.8 MB, free: 12.36 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004465/0.3063, allocations: 437.8 kB / 333.2 MB, free: 11.91 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.3063, allocations: 29.7 kB / 333.2 MB, free: 11.88 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.3065, allocations: 160 kB / 333.4 MB, free: 11.72 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.434e-05/0.3065, allocations: 43.45 kB / 333.4 MB, free: 11.68 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.948e-05/0.3066, allocations: 41.7 kB / 333.5 MB, free: 11.63 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.3067, allocations: 346.8 kB / 333.8 MB, free: 11.28 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.3068, allocations: 43.98 kB / 333.9 MB, free: 11.24 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001384/0.307, allocations: 97.98 kB / 334 MB, free: 11.12 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002037/0.3072, allocations: 106.5 kB / 334.1 MB, free: 11.01 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.3072, allocations: 3.938 kB / 334.1 MB, free: 11 MB / 270.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003109/0.3075, allocations: 177.2 kB / 334.2 MB, free: 10.82 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.3076, allocations: 11.94 kB / 334.2 MB, free: 10.81 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.3076, allocations: 0 / 334.2 MB, free: 10.81 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.3076, allocations: 0 / 334.2 MB, free: 10.81 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.3077, allocations: 27.98 kB / 334.3 MB, free: 10.79 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.3077, allocations: 3.938 kB / 334.3 MB, free: 10.78 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.639e-05/0.3078, allocations: 19.91 kB / 334.3 MB, free: 10.76 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/0.3078, allocations: 8 kB / 334.3 MB, free: 10.75 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.000159/0.308, allocations: 167.6 kB / 334.5 MB, free: 10.58 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.491e-05/0.3081, allocations: 31.56 kB / 334.5 MB, free: 10.55 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.507e-05/0.3081, allocations: 34.94 kB / 334.5 MB, free: 10.51 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.3081, allocations: 4 kB / 334.5 MB, free: 10.51 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3081, allocations: 48 / 334.5 MB, free: 10.51 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.3082, allocations: 7.969 kB / 334.5 MB, free: 10.5 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000266/0.3084, allocations: 293.5 kB / 334.8 MB, free: 10.16 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.3084, allocations: 0 / 334.8 MB, free: 10.16 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.041e-05/0.3085, allocations: 15.92 kB / 334.8 MB, free: 10.15 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.3085, allocations: 7.938 kB / 334.9 MB, free: 10.14 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.3085, allocations: 0 / 334.9 MB, free: 10.14 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3085, allocations: 0 / 334.9 MB, free: 10.14 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.3085, allocations: 4 kB / 334.9 MB, free: 10.14 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003323/0.3089, allocations: 200.6 kB / 335.1 MB, free: 9.922 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.925e-05/0.3089, allocations: 108.7 kB / 335.2 MB, free: 9.797 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.642e-05/0.309, allocations: 15.92 kB / 335.2 MB, free: 9.781 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.311e-05/0.3091, allocations: 8 kB / 335.2 MB, free: 9.773 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.934e-05/0.3092, allocations: 15.97 kB / 335.2 MB, free: 9.758 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.727e-05/0.3092, allocations: 11.94 kB / 335.2 MB, free: 9.746 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0003083/0.3095, allocations: 307 kB / 335.5 MB, free: 9.449 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3095, allocations: 0 / 335.5 MB, free: 9.449 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002765/0.3098, allocations: 55.98 kB / 335.6 MB, free: 9.395 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.0009687/0.3108, allocations: 431 kB / 336 MB, free: 8.973 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003136/0.3111, allocations: 127.8 kB / 336.1 MB, free: 8.848 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3111, allocations: 0 / 336.1 MB, free: 8.848 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001427/0.3113, allocations: 63.91 kB / 336.2 MB, free: 8.785 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004169/0.3117, allocations: 65.94 kB / 336.2 MB, free: 8.715 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007392/0.3124, allocations: 497.7 kB / 336.7 MB, free: 8.203 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004051/0.3128, allocations: 0.7753 MB / 337.5 MB, free: 7.402 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001301/0.313, allocations: 50.23 kB / 337.6 MB, free: 7.352 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.062e-05/0.313, allocations: 31.44 kB / 337.6 MB, free: 7.324 MB / 270.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3131, allocations: 0 / 337.6 MB, free: 7.324 MB / 270.1 MB Notification: Performance of Templates: time 0.007864/0.3209, allocations: 3.84 MB / 341.4 MB, free: 3.48 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)