Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.006255/0.006255, allocations: 101.7 kB / 15.73 MB, free: 5.969 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.001257/0.001257, allocations: 193.2 kB / 16.67 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.284/1.284, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001966/0.001967, allocations: 286.5 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9451/0.9451, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0017/0.0017, allocations: 99.83 kB / 0.6814 GB, free: 15.52 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1738/0.1755, allocations: 86.97 MB / 0.7663 GB, free: 8.473 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004239/0.1798, allocations: 2.31 MB / 0.7686 GB, free: 6.152 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001241/0.1811, allocations: 0.7753 MB / 0.7694 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.807e-05/0.1812, allocations: 4 kB / 0.7694 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006239/0.1818, allocations: 147.4 kB / 0.7695 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001956/0.182, allocations: 67.59 kB / 0.7696 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001763/0.1822, allocations: 55.88 kB / 0.7696 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002479/0.1825, allocations: 159.5 kB / 0.7698 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000266/0.1828, allocations: 101 kB / 0.7699 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001334/0.1829, allocations: 63.77 kB / 0.7699 GB, free: 4.785 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001832/0.1831, allocations: 75.61 kB / 0.77 GB, free: 4.711 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.423e-05/0.1831, allocations: 12 kB / 0.77 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001248/0.1833, allocations: 51.91 kB / 0.7701 GB, free: 4.648 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.844e-05/0.1833, allocations: 35.91 kB / 0.7701 GB, free: 4.613 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 9.675e-05/0.1834, allocations: 67.66 kB / 0.7702 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002321/0.1837, allocations: 163.5 kB / 0.7703 GB, free: 4.387 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.1837, allocations: 3.938 kB / 0.7703 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.363e-06/0.1837, allocations: 4 kB / 0.7703 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.1837, allocations: 4 kB / 0.7703 GB, free: 4.375 MB / 0.5606 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.0007296/0.1844, allocations: 494.5 kB / 0.7708 GB, free: 3.832 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.1845, allocations: 11.97 kB / 0.7708 GB, free: 3.82 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002079/0.1847, allocations: 28.73 kB / 0.7708 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002434/0.1849, allocations: 212.1 kB / 0.771 GB, free: 3.547 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.138e-05/0.185, allocations: 34.45 kB / 0.7711 GB, free: 3.508 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.516e-05/0.185, allocations: 16.12 kB / 0.7711 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002788/0.1853, allocations: 150.2 kB / 0.7712 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.1853, allocations: 0 / 0.7712 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.807e-05/0.1854, allocations: 4 kB / 0.7712 GB, free: 3.328 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.816e-05/0.1854, allocations: 11.92 kB / 0.7712 GB, free: 3.316 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001941/0.1856, allocations: 87.89 kB / 0.7713 GB, free: 3.23 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008106/0.1864, allocations: 0.6402 MB / 0.772 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002204/0.1866, allocations: 50.56 kB / 0.772 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.229e-05/0.1867, allocations: 28.91 kB / 0.772 GB, free: 2.438 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.314e-05/0.1868, allocations: 4 kB / 0.772 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001964/0.187, allocations: 150.7 kB / 0.7722 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.187, allocations: 0 / 0.7722 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7): time 0.0003713/0.1873, allocations: 155.4 kB / 0.7723 GB, free: 2.098 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.629e-05/0.1874, allocations: 136.5 kB / 0.7725 GB, free: 1.934 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001621/0.1876, allocations: 183.1 kB / 0.7726 GB, free: 1.742 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.694e-05/0.1876, allocations: 29.7 kB / 0.7727 GB, free: 1.707 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.581e-05/0.1877, allocations: 147.8 kB / 0.7728 GB, free: 1.555 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.563e-05/0.1878, allocations: 23.73 kB / 0.7728 GB, free: 1.531 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.6e-05/0.1878, allocations: 33.62 kB / 0.7729 GB, free: 1.492 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.1879, allocations: 326.8 kB / 0.7732 GB, free: 1.164 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.181e-05/0.188, allocations: 39.97 kB / 0.7732 GB, free: 1.125 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.1882, allocations: 115.8 kB / 0.7733 GB, free: 0.9805 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002312/0.1884, allocations: 218.4 kB / 0.7735 GB, free: 0.7148 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.1884, allocations: 4 kB / 0.7735 GB, free: 0.7109 MB / 0.5606 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003337/0.1888, allocations: 252.5 kB / 0.7738 GB, free: 456 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.67e-05/0.1888, allocations: 63.39 kB / 0.7738 GB, free: 380 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.1888, allocations: 7.938 kB / 0.7738 GB, free: 372 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.1889, allocations: 4 kB / 0.7738 GB, free: 368 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.189, allocations: 31.92 kB / 0.7739 GB, free: 336 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.189, allocations: 4.312 kB / 0.7739 GB, free: 332 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/0.1891, allocations: 27.83 kB / 0.7739 GB, free: 304 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.456e-05/0.1892, allocations: 8 kB / 0.7739 GB, free: 296 kB / 0.5606 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.0001259/0.1893, allocations: 169.2 kB / 0.7741 GB, free: 112 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.033e-05/0.1893, allocations: 7.906 kB / 0.7741 GB, free: 104 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.991e-05/0.1894, allocations: 17.34 kB / 0.7741 GB, free: 84 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.1894, allocations: 4 kB / 0.7741 GB, free: 80 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1894, allocations: 0 / 0.7741 GB, free: 80 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1894, allocations: 11.92 kB / 0.7741 GB, free: 68 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3389/0.5283, allocations: 209.9 kB / 0.7743 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.5283, allocations: 0.5625 kB / 0.7743 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001132/0.5284, allocations: 10.39 kB / 0.7743 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.5285, allocations: 1.109 kB / 0.7743 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.5285, allocations: 6.25 kB / 0.7743 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.087e-06/0.5285, allocations: 1.219 kB / 0.7743 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5285, allocations: 0.6094 kB / 0.7743 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000425/0.5289, allocations: 221.1 kB / 0.7745 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.434e-05/0.529, allocations: 86.12 kB / 0.7746 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.029e-05/0.529, allocations: 7.422 kB / 0.7746 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.598e-05/0.5291, allocations: 11.62 kB / 0.7746 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.171e-05/0.5292, allocations: 12.12 kB / 0.7747 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.072e-05/0.5292, allocations: 3.5 kB / 0.7747 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001/0.5293, allocations: 131.3 kB / 0.7748 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8.32e-07/0.5293, allocations: 0.7812 kB / 0.7748 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000316/0.5296, allocations: 39.44 kB / 0.7748 GB, free: 14.75 MB / 0.5606 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.0001035/0.5297, allocations: 98.78 kB / 0.7749 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003057/0.5301, allocations: 214 kB / 0.7751 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.5301, allocations: 4.438 kB / 0.7751 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001177/0.5302, allocations: 103.1 kB / 0.7752 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002297/0.5304, allocations: 25.38 kB / 0.7752 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005305/0.531, allocations: 288.4 kB / 0.7755 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001321/0.5311, allocations: 0.7144 MB / 0.7762 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.84e-05/0.5312, allocations: 21.25 kB / 0.7762 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.927e-05/0.5312, allocations: 13.67 kB / 0.7763 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of SimCode: time 2.3e-07/0.5312, allocations: 0 / 0.7763 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of Templates: time 0.004051/0.5353, allocations: 1.431 MB / 0.7777 GB, free: 13.57 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)