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.001329/0.001329, allocations: 110 kB / 17.06 MB, free: 6.02 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.001327/0.001327, allocations: 191 kB / 18 MB, free: 5.109 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.623/1.623, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001117/0.001117, allocations: 47.94 kB / 327.8 MB, free: 3.332 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09066/0.09179, allocations: 46.62 MB / 374.5 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003324/0.09517, allocations: 1.988 MB / 376.5 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001863/0.09706, allocations: 1.057 MB / 377.5 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.09723, allocations: 4 kB / 377.5 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009843/0.09826, allocations: 307.1 kB / 377.8 MB, free: 1.223 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.0005442/0.09882, allocations: 199.3 kB / 378 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007616/0.09959, allocations: 255.4 kB / 378.3 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004428/0.1, allocations: 339.2 kB / 378.6 MB, free: 456 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000197/0.1002, allocations: 68.3 kB / 378.7 MB, free: 388 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.1004, allocations: 139.5 kB / 378.8 MB, free: 248 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001703/0.1006, allocations: 151.4 kB / 378.9 MB, free: 96 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.449e-05/0.1007, allocations: 16 kB / 379 MB, free: 80 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2203/0.321, allocations: 82.11 kB / 379 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003384/0.3214, allocations: 81.55 kB / 379.1 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003476/0.3218, allocations: 126.4 kB / 379.2 MB, free: 10.19 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008731/0.3227, allocations: 346.2 kB / 379.6 MB, free: 10.15 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3227, allocations: 0 / 379.6 MB, free: 10.15 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.3227, allocations: 1.375 kB / 379.6 MB, free: 10.15 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.3227, allocations: 0 / 379.6 MB, free: 10.15 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.001151/0.3239, allocations: 0.6637 MB / 380.2 MB, free: 9.621 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.3239, allocations: 10.47 kB / 380.3 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001023/0.324, allocations: 31.06 kB / 380.3 MB, free: 9.605 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004709/0.3245, allocations: 331.6 kB / 380.6 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.272e-05/0.3246, allocations: 10.19 kB / 380.6 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.643e-05/0.3246, allocations: 14 kB / 380.6 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003311/0.3249, allocations: 151.7 kB / 380.8 MB, free: 9.305 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.325, allocations: 2.625 kB / 380.8 MB, free: 9.305 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.154e-05/0.325, allocations: 5.688 kB / 380.8 MB, free: 9.305 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.325, allocations: 1.75 kB / 380.8 MB, free: 9.305 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001823/0.3252, allocations: 69.23 kB / 380.9 MB, free: 9.305 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008835/0.3261, allocations: 0.489 MB / 381.4 MB, free: 9.023 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000392/0.3265, allocations: 136.2 kB / 381.5 MB, free: 9 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001507/0.3266, allocations: 48.64 kB / 381.5 MB, free: 8.992 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.351e-05/0.3267, allocations: 2.75 kB / 381.5 MB, free: 8.992 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003076/0.327, allocations: 114.8 kB / 381.6 MB, free: 8.938 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 2.895e-06/0.327, allocations: 2.812 kB / 381.6 MB, free: 8.938 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007187/0.3277, allocations: 222.2 kB / 381.9 MB, free: 8.883 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.327e-05/0.3278, allocations: 105.8 kB / 382 MB, free: 8.758 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008834/0.3287, allocations: 433.8 kB / 382.4 MB, free: 8.641 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.12e-05/0.3288, allocations: 32.31 kB / 382.4 MB, free: 8.609 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001672/0.329, allocations: 170 kB / 382.6 MB, free: 8.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.365e-05/0.329, allocations: 43.27 kB / 382.6 MB, free: 8.496 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/0.3292, allocations: 41.48 kB / 382.7 MB, free: 8.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.3293, allocations: 343 kB / 383 MB, free: 8.168 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.3295, allocations: 43.11 kB / 383.1 MB, free: 8.168 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.3297, allocations: 99.92 kB / 383.1 MB, free: 8.113 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002659/0.3299, allocations: 110.1 kB / 383.3 MB, free: 8.086 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.33, allocations: 0 / 383.3 MB, free: 8.086 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003866/0.3303, allocations: 177.7 kB / 383.4 MB, free: 8.035 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.3304, allocations: 6.75 kB / 383.4 MB, free: 8.035 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.423e-06/0.3304, allocations: 1.125 kB / 383.4 MB, free: 8.035 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.539e-05/0.3304, allocations: 6.094 kB / 383.4 MB, free: 8.031 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.3306, allocations: 24.08 kB / 383.5 MB, free: 8.031 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.3306, allocations: 2.953 kB / 383.5 MB, free: 8.031 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001232/0.3307, allocations: 20.83 kB / 383.5 MB, free: 8.023 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.312e-05/0.3308, allocations: 5.125 kB / 383.5 MB, free: 8.023 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.0001453/0.3309, allocations: 170.3 kB / 383.7 MB, free: 7.906 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.638e-05/0.331, allocations: 30.55 kB / 383.7 MB, free: 7.891 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.338e-05/0.331, allocations: 37.2 kB / 383.7 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.197e-06/0.331, allocations: 2.812 kB / 383.7 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.3311, allocations: 0 / 383.7 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.3311, allocations: 0.75 kB / 383.7 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002828/0.3314, allocations: 302.5 kB / 384 MB, free: 7.684 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3314, allocations: 3.75 kB / 384 MB, free: 7.684 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.792e-05/0.3314, allocations: 8.469 kB / 384 MB, free: 7.684 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.3314, allocations: 3.938 kB / 384 MB, free: 7.68 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.3314, allocations: 9.734 kB / 384.1 MB, free: 7.676 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.3314, allocations: 3.562 kB / 384.1 MB, free: 7.676 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.3314, allocations: 0 / 384.1 MB, free: 7.676 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003277/0.3318, allocations: 204.9 kB / 384.3 MB, free: 7.59 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.328e-05/0.3319, allocations: 105.1 kB / 384.4 MB, free: 7.484 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.154e-05/0.3319, allocations: 11.58 kB / 384.4 MB, free: 7.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.275e-05/0.332, allocations: 7.375 kB / 384.4 MB, free: 7.48 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.1e-05/0.3321, allocations: 15.2 kB / 384.4 MB, free: 7.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.141e-05/0.3321, allocations: 5.906 kB / 384.4 MB, free: 7.48 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003406/0.3324, allocations: 313.1 kB / 384.7 MB, free: 7.398 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3324, allocations: 1.344 kB / 384.7 MB, free: 7.398 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003383/0.3328, allocations: 56.5 kB / 384.8 MB, free: 7.391 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.001064/0.3339, allocations: 430 kB / 385.2 MB, free: 7.086 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003897/0.3343, allocations: 121.6 kB / 385.3 MB, free: 7.082 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.3343, allocations: 0 / 385.3 MB, free: 7.082 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001515/0.3344, allocations: 65.89 kB / 385.4 MB, free: 7.078 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005244/0.335, allocations: 74.67 kB / 385.4 MB, free: 7.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008198/0.3358, allocations: 493.1 kB / 385.9 MB, free: 6.836 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002514/0.3361, allocations: 0.7708 MB / 386.7 MB, free: 6.141 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001416/0.3362, allocations: 44.42 kB / 386.7 MB, free: 6.129 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.936e-05/0.3363, allocations: 31.8 kB / 386.8 MB, free: 6.121 MB / 318.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3363, allocations: 0 / 386.8 MB, free: 6.121 MB / 318.1 MB Notification: Performance of Templates: time 0.008849/0.3452, allocations: 3.861 MB / 390.6 MB, free: 5.754 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)