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.00157/0.00157, allocations: 101.9 kB / 16.27 MB, free: 6.414 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.001645/0.001646, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.564/1.564, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.785/1.785, allocations: 292.3 MB / 0.5495 GB, free: 17.55 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.002513/0.002513, allocations: 68.38 kB / 0.6721 GB, free: 6.535 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2851, allocations: 114.6 MB / 0.784 GB, free: 3.855 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004266/0.2895, allocations: 2.287 MB / 0.7863 GB, free: 1.547 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001335/0.2908, allocations: 0.8268 MB / 0.7871 GB, free: 0.7109 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.701e-05/0.2909, allocations: 4 kB / 0.7871 GB, free: 0.707 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0005852/0.2915, allocations: 147.4 kB / 0.7872 GB, free: 0.5625 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001992/0.2917, allocations: 59.61 kB / 0.7873 GB, free: 0.5039 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001513/0.2919, allocations: 55.88 kB / 0.7873 GB, free: 460 kB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002251/0.2921, allocations: 163.4 kB / 0.7875 GB, free: 296 kB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002609/0.2924, allocations: 104.8 kB / 0.7876 GB, free: 188 kB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001241/0.2925, allocations: 63.77 kB / 0.7876 GB, free: 124 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001466/0.2927, allocations: 71.62 kB / 0.7877 GB, free: 52 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.605e-05/0.2927, allocations: 12 kB / 0.7877 GB, free: 40 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4807/0.7734, allocations: 55.62 kB / 0.7878 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001432/0.7736, allocations: 40.72 kB / 0.7878 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001791/0.7738, allocations: 64.52 kB / 0.7879 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004256/0.7742, allocations: 170.4 kB / 0.788 GB, free: 46.12 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.7742, allocations: 0 / 0.788 GB, free: 46.12 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.114e-06/0.7743, allocations: 0 / 0.788 GB, free: 46.12 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.337e-05/0.7743, allocations: 0 / 0.788 GB, free: 46.12 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.0008632/0.7751, allocations: 490.3 kB / 0.7885 GB, free: 45.69 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.7752, allocations: 7.875 kB / 0.7885 GB, free: 45.69 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003007/0.7755, allocations: 25.59 kB / 0.7885 GB, free: 45.69 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002543/0.7758, allocations: 216.7 kB / 0.7887 GB, free: 45.48 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.965e-05/0.7758, allocations: 41.2 kB / 0.7888 GB, free: 45.44 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.223e-05/0.7759, allocations: 16.19 kB / 0.7888 GB, free: 45.44 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003392/0.7762, allocations: 147.4 kB / 0.7889 GB, free: 45.38 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.7763, allocations: 3.562 kB / 0.7889 GB, free: 45.38 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.038e-05/0.7763, allocations: 5 kB / 0.7889 GB, free: 45.38 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.371e-05/0.7763, allocations: 8.656 kB / 0.7889 GB, free: 45.38 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002318/0.7766, allocations: 84.78 kB / 0.789 GB, free: 45.38 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008689/0.7774, allocations: 0.6403 MB / 0.7897 GB, free: 44.9 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002777/0.7777, allocations: 54.94 kB / 0.7897 GB, free: 44.88 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.207e-05/0.7778, allocations: 34.19 kB / 0.7897 GB, free: 44.87 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.293e-05/0.7779, allocations: 0 / 0.7897 GB, free: 44.87 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002046/0.7781, allocations: 147.6 kB / 0.7899 GB, free: 44.76 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 1.743e-06/0.7781, allocations: 2.031 kB / 0.7899 GB, free: 44.76 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7): time 0.0004334/0.7785, allocations: 163.1 kB / 0.79 GB, free: 44.69 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.7786, allocations: 132.5 kB / 0.7902 GB, free: 44.53 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001748/0.7788, allocations: 182.3 kB / 0.7903 GB, free: 44.43 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.7788, allocations: 31.98 kB / 0.7904 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 7.32e-05/0.7789, allocations: 141.9 kB / 0.7905 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.579e-05/0.7789, allocations: 20.91 kB / 0.7905 GB, free: 44.28 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.507e-05/0.779, allocations: 36.44 kB / 0.7906 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.963e-05/0.7791, allocations: 327.3 kB / 0.7909 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.7792, allocations: 40.27 kB / 0.7909 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/0.7793, allocations: 113.4 kB / 0.791 GB, free: 43.86 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002535/0.7796, allocations: 231.3 kB / 0.7912 GB, free: 43.68 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-05/0.7796, allocations: 0 / 0.7912 GB, free: 43.68 MB / 0.6544 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004192/0.7801, allocations: 236.1 kB / 0.7915 GB, free: 43.58 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.521e-05/0.7801, allocations: 64.03 kB / 0.7915 GB, free: 43.52 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.7801, allocations: 2.75 kB / 0.7915 GB, free: 43.52 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.563e-05/0.7802, allocations: 11.89 kB / 0.7915 GB, free: 43.52 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001555/0.7803, allocations: 30.09 kB / 0.7916 GB, free: 43.52 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.7803, allocations: 4.125 kB / 0.7916 GB, free: 43.52 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001775/0.7805, allocations: 32.41 kB / 0.7916 GB, free: 43.51 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/0.7806, allocations: 10.12 kB / 0.7916 GB, free: 43.51 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 0.0001238/0.7807, allocations: 165.4 kB / 0.7918 GB, free: 43.36 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.888e-05/0.7807, allocations: 15.69 kB / 0.7918 GB, free: 43.35 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.804e-05/0.7808, allocations: 17.86 kB / 0.7918 GB, free: 43.35 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.7808, allocations: 2.625 kB / 0.7918 GB, free: 43.35 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.7808, allocations: 0 / 0.7918 GB, free: 43.35 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.7808, allocations: 3.844 kB / 0.7918 GB, free: 43.35 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001597/0.781, allocations: 212.5 kB / 0.792 GB, free: 43.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.781, allocations: 3.75 kB / 0.792 GB, free: 43.16 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.407e-05/0.7811, allocations: 16.36 kB / 0.792 GB, free: 43.16 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.7811, allocations: 2.031 kB / 0.792 GB, free: 43.16 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.7811, allocations: 7.062 kB / 0.792 GB, free: 43.16 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.7811, allocations: 1.375 kB / 0.792 GB, free: 43.16 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.7812, allocations: 0 / 0.792 GB, free: 43.16 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004169/0.7816, allocations: 214 kB / 0.7922 GB, free: 43.05 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.871e-05/0.7816, allocations: 84.44 kB / 0.7923 GB, free: 42.96 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.779e-05/0.7817, allocations: 10.5 kB / 0.7923 GB, free: 42.95 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.7818, allocations: 11.72 kB / 0.7923 GB, free: 42.95 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.136e-05/0.7819, allocations: 8.625 kB / 0.7924 GB, free: 42.95 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.769e-06/0.7819, allocations: 3.938 kB / 0.7924 GB, free: 42.95 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001016/0.782, allocations: 138.8 kB / 0.7925 GB, free: 42.88 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.4e-07/0.782, allocations: 2.156 kB / 0.7925 GB, free: 42.88 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003766/0.7824, allocations: 31.06 kB / 0.7925 GB, free: 42.87 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.0001127/0.7825, allocations: 108.7 kB / 0.7926 GB, free: 42.79 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003564/0.7829, allocations: 219.3 kB / 0.7928 GB, free: 42.66 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.7829, allocations: 0 / 0.7928 GB, free: 42.66 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001267/0.783, allocations: 102.3 kB / 0.7929 GB, free: 42.6 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003167/0.7834, allocations: 26.55 kB / 0.793 GB, free: 42.59 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006743/0.7841, allocations: 322.6 kB / 0.7933 GB, free: 42.4 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001792/0.7842, allocations: 0.7176 MB / 0.794 GB, free: 41.7 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.287e-05/0.7843, allocations: 15.56 kB / 0.794 GB, free: 41.7 MB / 0.6544 GB Notification: Performance of SimCode: time 7.11e-07/0.7843, allocations: 0 / 0.794 GB, free: 41.7 MB / 0.6544 GB Notification: Performance of Templates: time 0.004083/0.7884, allocations: 1.702 MB / 0.7956 GB, free: 41.62 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)