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: "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_8_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_8_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, 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.001141/0.001141, allocations: 192.1 kB / 16.53 MB, free: 6.391 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.23/1.23, allocations: 205.1 MB / 222.4 MB, free: 4.582 MB / 174.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.671/1.671, allocations: 292.3 MB / 0.5489 GB, free: 12.84 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.001391/0.001391, allocations: 65.25 kB / 0.6716 GB, free: 26.31 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1791/0.1805, allocations: 114.6 MB / 0.7835 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003303/0.1839, allocations: 2.3 MB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001112/0.185, allocations: 0.8228 MB / 0.7865 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.311e-05/0.1851, allocations: 4 kB / 0.7865 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000502/0.1856, allocations: 147.4 kB / 0.7867 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001548/0.1858, allocations: 67.59 kB / 0.7867 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000136/0.1859, allocations: 55.88 kB / 0.7868 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001956/0.1861, allocations: 155.5 kB / 0.7869 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002239/0.1864, allocations: 101.3 kB / 0.787 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.1865, allocations: 71.7 kB / 0.7871 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000134/0.1866, allocations: 63.69 kB / 0.7872 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.575e-05/0.1867, allocations: 12 kB / 0.7872 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001131/0.1868, allocations: 55.89 kB / 0.7872 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.44e-05/0.1868, allocations: 47.83 kB / 0.7873 GB, free: 9.484 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.694e-05/0.1869, allocations: 63.67 kB / 0.7873 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002015/0.1871, allocations: 163.5 kB / 0.7875 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.1871, allocations: 0 / 0.7875 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.373e-06/0.1871, allocations: 4 kB / 0.7875 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.212e-06/0.1872, allocations: 0 / 0.7875 GB, free: 9.258 MB / 0.6075 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.0006141/0.1878, allocations: 494.5 kB / 0.788 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.1878, allocations: 8.031 kB / 0.788 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.538e-05/0.1879, allocations: 50.67 kB / 0.788 GB, free: 8.648 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001948/0.1881, allocations: 36.73 kB / 0.788 GB, free: 8.613 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001986/0.1883, allocations: 204.1 kB / 0.7882 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.496e-05/0.1883, allocations: 34.45 kB / 0.7883 GB, free: 8.336 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.892e-05/0.1884, allocations: 15.94 kB / 0.7883 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002585/0.1886, allocations: 153.6 kB / 0.7884 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.1886, allocations: 0 / 0.7884 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/0.1887, allocations: 0 / 0.7884 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.807e-05/0.1887, allocations: 15.97 kB / 0.7884 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001931/0.1889, allocations: 91.89 kB / 0.7885 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007687/0.1897, allocations: 0.6363 MB / 0.7892 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002098/0.1899, allocations: 54.56 kB / 0.7892 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.576e-05/0.19, allocations: 28.91 kB / 0.7892 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.042e-05/0.19, allocations: 0 / 0.7892 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001807/0.1902, allocations: 154.9 kB / 0.7894 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.1902, allocations: 0 / 0.7894 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0003456/0.1905, allocations: 163.3 kB / 0.7895 GB, free: 6.91 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.151e-05/0.1906, allocations: 132.5 kB / 0.7897 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.1908, allocations: 178.9 kB / 0.7898 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.1908, allocations: 29.7 kB / 0.7899 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.366e-05/0.1909, allocations: 139.7 kB / 0.79 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.194e-05/0.1909, allocations: 19.8 kB / 0.79 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.748e-05/0.191, allocations: 41.62 kB / 0.7901 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.807e-05/0.1911, allocations: 326.8 kB / 0.7904 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.349e-05/0.1912, allocations: 43.86 kB / 0.7904 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001246/0.1913, allocations: 115.9 kB / 0.7905 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002362/0.1915, allocations: 222.4 kB / 0.7907 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.1915, allocations: 4 kB / 0.7907 GB, free: 5.535 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003472/0.1919, allocations: 244.8 kB / 0.791 GB, free: 5.277 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.229e-05/0.192, allocations: 67.33 kB / 0.791 GB, free: 5.199 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.192, allocations: 4.078 kB / 0.791 GB, free: 5.195 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.192, allocations: 4 kB / 0.791 GB, free: 5.191 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.1921, allocations: 27.92 kB / 0.7911 GB, free: 5.164 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.1921, allocations: 7.984 kB / 0.7911 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/0.1923, allocations: 31.73 kB / 0.7911 GB, free: 5.125 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.1923, allocations: 8 kB / 0.7911 GB, free: 5.117 MB / 0.6075 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.0001158/0.1924, allocations: 176.6 kB / 0.7913 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.374e-05/0.1924, allocations: 11.84 kB / 0.7913 GB, free: 4.918 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.599e-05/0.1925, allocations: 13.41 kB / 0.7913 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.1925, allocations: 4 kB / 0.7913 GB, free: 4.898 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.1925, allocations: 0 / 0.7913 GB, free: 4.898 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.1925, allocations: 3.984 kB / 0.7913 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001487/0.1927, allocations: 209.6 kB / 0.7915 GB, free: 4.641 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.1927, allocations: 0 / 0.7915 GB, free: 4.641 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.089e-05/0.1927, allocations: 11.98 kB / 0.7915 GB, free: 4.629 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1928, allocations: 7.938 kB / 0.7915 GB, free: 4.621 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.1928, allocations: 8 kB / 0.7915 GB, free: 4.613 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1928, allocations: 0 / 0.7915 GB, free: 4.613 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1928, allocations: 0 / 0.7915 GB, free: 4.613 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000355/0.1932, allocations: 214.5 kB / 0.7917 GB, free: 4.379 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.563e-05/0.1932, allocations: 89.03 kB / 0.7918 GB, free: 4.273 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.28e-05/0.1932, allocations: 15.88 kB / 0.7918 GB, free: 4.258 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.1934, allocations: 12.06 kB / 0.7919 GB, free: 4.246 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.698e-05/0.1934, allocations: 3.984 kB / 0.7919 GB, free: 4.242 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-06/0.1934, allocations: 8 kB / 0.7919 GB, free: 4.234 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.773e-05/0.1935, allocations: 140.3 kB / 0.792 GB, free: 4.098 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1935, allocations: 0 / 0.792 GB, free: 4.098 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002528/0.1938, allocations: 31.91 kB / 0.792 GB, free: 4.066 MB / 0.6075 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.000552/0.1944, allocations: 0.7508 MB / 0.7928 GB, free: 3.281 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002887/0.1947, allocations: 222.6 kB / 0.793 GB, free: 3.039 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1947, allocations: 0 / 0.793 GB, free: 3.039 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000118/0.1948, allocations: 108.1 kB / 0.7931 GB, free: 2.922 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002179/0.195, allocations: 23.92 kB / 0.7931 GB, free: 2.898 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00194/0.197, allocations: 1.949 MB / 0.795 GB, free: 0.8008 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002143/0.1972, allocations: 0.7119 MB / 0.7957 GB, free: 64 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 8.13e-05/0.1973, allocations: 24.62 kB / 0.7957 GB, free: 36 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.75e-05/0.1973, allocations: 35.42 kB / 0.7958 GB, free: 0 / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.1974, allocations: 0 / 0.7958 GB, free: 0 / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2179/0.4152, allocations: 3.081 MB / 0.7988 GB, free: 13.01 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.37/8.786, allocations: 11.38 kB / 0.7988 GB, free: 13 MB / 0.6231 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_8_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)