Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) 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(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001567/0.001567, allocations: 100.8 kB / 16.29 MB, free: 6.016 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.001584/0.001584, allocations: 181.8 kB / 17.22 MB, free: 5.625 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.584/1.584, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 2.001/2.001, allocations: 292.3 MB / 0.5495 GB, free: 17.51 MB / 462.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.00155/0.00155, allocations: 67.89 kB / 0.6722 GB, free: 6.492 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.2845, allocations: 114.6 MB / 0.7841 GB, free: 3.816 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003918/0.2885, allocations: 2.286 MB / 0.7863 GB, free: 1.512 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001221/0.2897, allocations: 0.8346 MB / 0.7871 GB, free: 0.668 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.053e-05/0.2898, allocations: 0 / 0.7871 GB, free: 0.668 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0004696/0.2903, allocations: 147.4 kB / 0.7873 GB, free: 0.5234 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001763/0.2905, allocations: 63.61 kB / 0.7873 GB, free: 472 kB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001441/0.2906, allocations: 51.88 kB / 0.7874 GB, free: 420 kB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002022/0.2908, allocations: 163.4 kB / 0.7875 GB, free: 256 kB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002304/0.2911, allocations: 104.8 kB / 0.7876 GB, free: 148 kB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.2912, allocations: 63.77 kB / 0.7877 GB, free: 84 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.2913, allocations: 79.56 kB / 0.7878 GB, free: 4 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.4361/0.7274, allocations: 11.08 kB / 0.7878 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002737/0.7277, allocations: 48.34 kB / 0.7878 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 6.902e-05/0.7278, allocations: 38.27 kB / 0.7879 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 9.571e-05/0.7279, allocations: 68.09 kB / 0.7879 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002739/0.7282, allocations: 172.3 kB / 0.7881 GB, free: 46.15 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.7282, allocations: 3.438 kB / 0.7881 GB, free: 46.15 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.653e-06/0.7282, allocations: 3.938 kB / 0.7881 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.252e-06/0.7282, allocations: 0 / 0.7881 GB, free: 46.14 MB / 0.6544 GB 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.0006674/0.7289, allocations: 488.5 kB / 0.7886 GB, free: 45.71 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.7289, allocations: 8.219 kB / 0.7886 GB, free: 45.71 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002077/0.7292, allocations: 26.72 kB / 0.7886 GB, free: 45.7 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001798/0.7293, allocations: 215.3 kB / 0.7888 GB, free: 45.49 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.87e-05/0.7294, allocations: 39.14 kB / 0.7888 GB, free: 45.46 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.139e-05/0.7294, allocations: 14.09 kB / 0.7888 GB, free: 45.46 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002467/0.7297, allocations: 150.1 kB / 0.789 GB, free: 45.4 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.7297, allocations: 1.125 kB / 0.789 GB, free: 45.4 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.552e-05/0.7297, allocations: 6.125 kB / 0.789 GB, free: 45.4 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.7298, allocations: 6.094 kB / 0.789 GB, free: 45.4 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001684/0.7299, allocations: 85.73 kB / 0.7891 GB, free: 45.4 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000671/0.7306, allocations: 0.6396 MB / 0.7897 GB, free: 44.92 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002179/0.7308, allocations: 56.53 kB / 0.7898 GB, free: 44.9 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.738e-05/0.7309, allocations: 31.25 kB / 0.7898 GB, free: 44.89 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.547e-05/0.7309, allocations: 0.8438 kB / 0.7898 GB, free: 44.89 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001755/0.7311, allocations: 144.8 kB / 0.7899 GB, free: 44.78 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 1.814e-06/0.7311, allocations: 1.219 kB / 0.7899 GB, free: 44.78 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7): time 0.0003274/0.7315, allocations: 166 kB / 0.7901 GB, free: 44.71 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.728e-05/0.7315, allocations: 133.8 kB / 0.7902 GB, free: 44.55 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001477/0.7317, allocations: 184.1 kB / 0.7904 GB, free: 44.45 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.195e-05/0.7317, allocations: 25.7 kB / 0.7904 GB, free: 44.42 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.166e-05/0.7318, allocations: 145.9 kB / 0.7906 GB, free: 44.31 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.82e-05/0.7318, allocations: 16 kB / 0.7906 GB, free: 44.3 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.258e-05/0.7319, allocations: 38.78 kB / 0.7906 GB, free: 44.28 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.47e-05/0.7319, allocations: 328.9 kB / 0.7909 GB, free: 43.97 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.42e-05/0.732, allocations: 38.09 kB / 0.791 GB, free: 43.97 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001093/0.7321, allocations: 114 kB / 0.7911 GB, free: 43.88 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001942/0.7323, allocations: 229.1 kB / 0.7913 GB, free: 43.7 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.7323, allocations: 7.188 kB / 0.7913 GB, free: 43.7 MB / 0.6544 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003103/0.7327, allocations: 239.1 kB / 0.7915 GB, free: 43.6 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.936e-05/0.7327, allocations: 61 kB / 0.7916 GB, free: 43.54 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.7327, allocations: 2.625 kB / 0.7916 GB, free: 43.54 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.7328, allocations: 10.52 kB / 0.7916 GB, free: 43.53 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.7329, allocations: 35.5 kB / 0.7916 GB, free: 43.53 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.7329, allocations: 3.984 kB / 0.7916 GB, free: 43.53 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001224/0.733, allocations: 23.97 kB / 0.7916 GB, free: 43.52 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.733, allocations: 9.812 kB / 0.7917 GB, free: 43.52 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 (voltageControl.ctrl.tSwitch,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.connected,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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 9.492e-05/0.7331, allocations: 168 kB / 0.7918 GB, free: 43.38 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.961e-05/0.7332, allocations: 13.06 kB / 0.7918 GB, free: 43.37 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.803e-05/0.7332, allocations: 21.77 kB / 0.7919 GB, free: 43.37 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.7332, allocations: 0.5312 kB / 0.7919 GB, free: 43.37 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.7332, allocations: 0.6562 kB / 0.7919 GB, free: 43.37 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.7332, allocations: 3.469 kB / 0.7919 GB, free: 43.37 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001176/0.7334, allocations: 212.3 kB / 0.7921 GB, free: 43.18 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.7334, allocations: 0 / 0.7921 GB, free: 43.18 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.45e-05/0.7334, allocations: 12.84 kB / 0.7921 GB, free: 43.18 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.7335, allocations: 0 / 0.7921 GB, free: 43.18 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/0.7335, allocations: 10.62 kB / 0.7921 GB, free: 43.18 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.7335, allocations: 2.969 kB / 0.7921 GB, free: 43.18 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.7335, allocations: 0 / 0.7921 GB, free: 43.18 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003235/0.7338, allocations: 223.6 kB / 0.7923 GB, free: 43.07 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.312e-05/0.7339, allocations: 83.64 kB / 0.7924 GB, free: 42.98 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.909e-05/0.7339, allocations: 10.5 kB / 0.7924 GB, free: 42.97 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.63e-05/0.734, allocations: 14.02 kB / 0.7924 GB, free: 42.97 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.626e-05/0.7341, allocations: 8.266 kB / 0.7924 GB, free: 42.97 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.217e-06/0.7341, allocations: 5.906 kB / 0.7924 GB, free: 42.97 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 8.752e-05/0.7342, allocations: 132.8 kB / 0.7925 GB, free: 42.89 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7342, allocations: 1.688 kB / 0.7925 GB, free: 42.89 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002471/0.7344, allocations: 35.16 kB / 0.7926 GB, free: 42.89 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageControl.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch) * Number of discrete states: 4 ($whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0001017/0.7345, allocations: 102.6 kB / 0.7927 GB, free: 42.8 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002991/0.7348, allocations: 221.4 kB / 0.7929 GB, free: 42.68 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.7349, allocations: 0 / 0.7929 GB, free: 42.68 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.735, allocations: 101.4 kB / 0.793 GB, free: 42.62 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002345/0.7352, allocations: 28.11 kB / 0.793 GB, free: 42.61 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005596/0.7358, allocations: 293.9 kB / 0.7933 GB, free: 42.45 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001732/0.736, allocations: 0.71 MB / 0.794 GB, free: 41.75 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 6.583e-05/0.736, allocations: 22.72 kB / 0.794 GB, free: 41.75 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.329e-05/0.7361, allocations: 12.69 kB / 0.794 GB, free: 41.74 MB / 0.6544 GB Notification: Performance of SimCode: time 2.5e-07/0.7361, allocations: 0 / 0.794 GB, free: 41.74 MB / 0.6544 GB Notification: Performance of Templates: time 0.004307/0.7404, allocations: 1.392 MB / 0.7954 GB, free: 41.69 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)