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.001258/0.001259, allocations: 110.5 kB / 16.37 MB, free: 5.539 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.001122/0.001122, allocations: 190.8 kB / 17.31 MB, free: 5.184 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.542/1.542, allocations: 205.1 MB / 223.2 MB, free: 12.25 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 1.815/1.815, allocations: 292.3 MB / 0.5496 GB, free: 17.42 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.001403/0.001403, allocations: 64.12 kB / 0.6729 GB, free: 5.895 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.2325, allocations: 114.6 MB / 0.7848 GB, free: 3.227 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004426/0.237, allocations: 2.31 MB / 0.787 GB, free: 0.8984 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001479/0.2385, allocations: 0.819 MB / 0.7878 GB, free: 72 kB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001665/0.2387, allocations: 4 kB / 0.7878 GB, free: 68 kB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.439/0.6777, allocations: 145.8 kB / 0.788 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0003109/0.6781, allocations: 64.28 kB / 0.788 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002323/0.6783, allocations: 54.5 kB / 0.7881 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002262/0.6785, allocations: 160.4 kB / 0.7882 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003137/0.6789, allocations: 102.9 kB / 0.7883 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001242/0.679, allocations: 67.23 kB / 0.7884 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001608/0.6792, allocations: 67.88 kB / 0.7885 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.387e-05/0.6792, allocations: 11.75 kB / 0.7885 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001096/0.6793, allocations: 54.95 kB / 0.7885 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 5.775e-05/0.6794, allocations: 38.91 kB / 0.7886 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 7.525e-05/0.6795, allocations: 67.25 kB / 0.7886 GB, free: 47.22 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002302/0.6797, allocations: 166 kB / 0.7888 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.6797, allocations: 1 kB / 0.7888 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of FrontEnd: time 3.417e-06/0.6797, allocations: 2.578 kB / 0.7888 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.214e-06/0.6797, allocations: 0 / 0.7888 GB, free: 47.2 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.0006262/0.6804, allocations: 0.4937 MB / 0.7893 GB, free: 46.74 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.6804, allocations: 8.656 kB / 0.7893 GB, free: 46.74 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002223/0.6806, allocations: 23.91 kB / 0.7893 GB, free: 46.74 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002002/0.6808, allocations: 210.7 kB / 0.7895 GB, free: 46.53 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.88e-05/0.6809, allocations: 35.7 kB / 0.7895 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.205e-05/0.6809, allocations: 11.75 kB / 0.7896 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002657/0.6812, allocations: 159.5 kB / 0.7897 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.6812, allocations: 1.938 kB / 0.7897 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.038e-05/0.6813, allocations: 5.953 kB / 0.7897 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/0.6813, allocations: 9.625 kB / 0.7897 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.6815, allocations: 89.81 kB / 0.7898 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007055/0.6822, allocations: 0.6339 MB / 0.7904 GB, free: 45.96 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002233/0.6824, allocations: 58.02 kB / 0.7905 GB, free: 45.93 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.11e-05/0.6825, allocations: 29.62 kB / 0.7905 GB, free: 45.93 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.313e-05/0.6825, allocations: 3.812 kB / 0.7905 GB, free: 45.93 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000205/0.6827, allocations: 145.6 kB / 0.7907 GB, free: 45.82 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.6827, allocations: 0 / 0.7907 GB, free: 45.82 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7): time 0.0003403/0.6831, allocations: 163.8 kB / 0.7908 GB, free: 45.74 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.095e-05/0.6832, allocations: 135.6 kB / 0.7909 GB, free: 45.59 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001406/0.6833, allocations: 177.7 kB / 0.7911 GB, free: 45.49 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.6833, allocations: 26.48 kB / 0.7911 GB, free: 45.46 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.785e-05/0.6834, allocations: 150.3 kB / 0.7913 GB, free: 45.34 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.037e-05/0.6834, allocations: 21.59 kB / 0.7913 GB, free: 45.33 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.231e-05/0.6835, allocations: 37.95 kB / 0.7913 GB, free: 45.32 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.416e-05/0.6835, allocations: 323.4 kB / 0.7916 GB, free: 45 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.445e-05/0.6836, allocations: 38.69 kB / 0.7917 GB, free: 45 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001019/0.6837, allocations: 115.1 kB / 0.7918 GB, free: 44.91 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001872/0.6839, allocations: 229.5 kB / 0.792 GB, free: 44.73 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.684, allocations: 0.6562 kB / 0.792 GB, free: 44.73 MB / 0.6544 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002886/0.6842, allocations: 240.4 kB / 0.7922 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.618e-05/0.6843, allocations: 64.41 kB / 0.7923 GB, free: 44.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.6843, allocations: 3.062 kB / 0.7923 GB, free: 44.57 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.6843, allocations: 7.062 kB / 0.7923 GB, free: 44.57 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.6844, allocations: 34.89 kB / 0.7923 GB, free: 44.57 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.6845, allocations: 4.156 kB / 0.7923 GB, free: 44.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001221/0.6846, allocations: 25.23 kB / 0.7924 GB, free: 44.56 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.461e-05/0.6846, allocations: 9.188 kB / 0.7924 GB, free: 44.56 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.901e-05/0.6847, allocations: 161 kB / 0.7925 GB, free: 44.42 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.059e-05/0.6847, allocations: 17.75 kB / 0.7926 GB, free: 44.41 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.1e-05/0.6848, allocations: 24.66 kB / 0.7926 GB, free: 44.41 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.6848, allocations: 0 / 0.7926 GB, free: 44.41 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.6848, allocations: 2.625 kB / 0.7926 GB, free: 44.41 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.6848, allocations: 4.547 kB / 0.7926 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001244/0.6849, allocations: 213.8 kB / 0.7928 GB, free: 44.21 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.6849, allocations: 1 kB / 0.7928 GB, free: 44.21 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.339e-05/0.685, allocations: 10.69 kB / 0.7928 GB, free: 44.21 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.685, allocations: 0 / 0.7928 GB, free: 44.21 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.6851, allocations: 6.562 kB / 0.7928 GB, free: 44.21 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.6851, allocations: 2.938 kB / 0.7928 GB, free: 44.21 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.6851, allocations: 2.625 kB / 0.7928 GB, free: 44.21 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003179/0.6854, allocations: 215.9 kB / 0.793 GB, free: 44.11 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.168e-05/0.6854, allocations: 89.59 kB / 0.7931 GB, free: 44.01 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.659e-05/0.6855, allocations: 10.53 kB / 0.7931 GB, free: 44 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.419e-05/0.6856, allocations: 10.97 kB / 0.7931 GB, free: 44 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.142e-05/0.6856, allocations: 12.28 kB / 0.7931 GB, free: 44 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-06/0.6856, allocations: 2.625 kB / 0.7931 GB, free: 44 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 8.161e-05/0.6857, allocations: 144 kB / 0.7933 GB, free: 43.92 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6857, allocations: 0 / 0.7933 GB, free: 43.92 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002325/0.686, allocations: 25.88 kB / 0.7933 GB, free: 43.92 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 9.517e-05/0.6861, allocations: 110.6 kB / 0.7934 GB, free: 43.84 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002671/0.6863, allocations: 212.5 kB / 0.7936 GB, free: 43.71 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.6864, allocations: 6.875 kB / 0.7936 GB, free: 43.71 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001019/0.6865, allocations: 102.8 kB / 0.7937 GB, free: 43.64 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002392/0.6867, allocations: 20.59 kB / 0.7937 GB, free: 43.64 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005175/0.6872, allocations: 316.9 kB / 0.794 GB, free: 43.45 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001431/0.6874, allocations: 0.7181 MB / 0.7947 GB, free: 42.75 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.452e-05/0.6874, allocations: 13.94 kB / 0.7947 GB, free: 42.74 MB / 0.6544 GB Notification: Performance of SimCode: time 2.21e-07/0.6874, allocations: 0.8438 kB / 0.7947 GB, free: 42.74 MB / 0.6544 GB Notification: Performance of Templates: time 0.003109/0.6906, allocations: 1.698 MB / 0.7964 GB, free: 42.66 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 -lv LOG_STATS > Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)