Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.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.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") translateModel(BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007605/0.0007607, allocations: 90.98 kB / 15.36 MB, free: 0.7383 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.004917/0.004917, allocations: 170.9 kB / 16.26 MB, free: 6.613 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.301/1.301, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0017/0.0017, allocations: 274.5 kB / 291.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9401/0.9401, allocations: 169.5 MB / 0.5004 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004/0.0004, allocations: 13.69 kB / 0.5987 GB, free: 27.99 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1486/0.149, allocations: 88.55 MB / 0.6851 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.003079/0.1522, allocations: 2.7 MB / 0.6878 GB, free: 12.37 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00238/0.1545, allocations: 1.721 MB / 0.6895 GB, free: 10.65 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.595e-05/0.1547, allocations: 4 kB / 0.6895 GB, free: 10.64 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000152/0.1548, allocations: 35.7 kB / 0.6895 GB, free: 10.61 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004181/0.1552, allocations: 188.3 kB / 0.6897 GB, free: 10.43 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004911/0.1557, allocations: 234.1 kB / 0.6899 GB, free: 10.2 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004391/0.1562, allocations: 494.6 kB / 0.6904 GB, free: 9.715 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007052/0.1569, allocations: 421.4 kB / 0.6908 GB, free: 9.297 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001812/0.1571, allocations: 127.5 kB / 0.6909 GB, free: 9.172 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002613/0.1574, allocations: 168 kB / 0.6911 GB, free: 9.008 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.169e-05/0.1574, allocations: 16 kB / 0.6911 GB, free: 8.992 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004183/0.1578, allocations: 315.4 kB / 0.6914 GB, free: 8.684 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.668e-05/0.1579, allocations: 75.73 kB / 0.6914 GB, free: 8.609 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001374/0.1581, allocations: 153 kB / 0.6916 GB, free: 8.453 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004511/0.1585, allocations: 470.4 kB / 0.692 GB, free: 7.992 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1586, allocations: 0 / 0.692 GB, free: 7.992 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1586, allocations: 0 / 0.692 GB, free: 7.992 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.1586, allocations: 0 / 0.692 GB, free: 7.992 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001007/0.1596, allocations: 0.602 MB / 0.6926 GB, free: 7.336 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.015e-05/0.1596, allocations: 8.031 kB / 0.6926 GB, free: 7.328 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006737/0.1603, allocations: 96.56 kB / 0.6927 GB, free: 7.234 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002895/0.1606, allocations: 279.5 kB / 0.693 GB, free: 6.922 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.236e-05/0.1606, allocations: 24.8 kB / 0.693 GB, free: 6.898 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.071e-05/0.1607, allocations: 20.38 kB / 0.693 GB, free: 6.879 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007505/0.1614, allocations: 434.9 kB / 0.6934 GB, free: 6.422 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.1615, allocations: 0 / 0.6934 GB, free: 6.422 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.481e-05/0.1615, allocations: 8 kB / 0.6935 GB, free: 6.414 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-05/0.1616, allocations: 28.3 kB / 0.6935 GB, free: 6.383 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008862/0.1625, allocations: 416.8 kB / 0.6939 GB, free: 5.977 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001621/0.1641, allocations: 1.611 MB / 0.6955 GB, free: 4.238 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.1652, allocations: 489 kB / 0.6959 GB, free: 3.742 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004334/0.1657, allocations: 205.6 kB / 0.6961 GB, free: 3.535 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000134/0.1658, allocations: 89.09 kB / 0.6962 GB, free: 3.43 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005421/0.1664, allocations: 276.2 kB / 0.6965 GB, free: 3.141 MB / 494.1 MB Notification: Performance of pre-optimization done (n=27): time 1.563e-06/0.1664, allocations: 0 / 0.6965 GB, free: 3.141 MB / 494.1 MB Notification: Performance of matching and sorting (n=28): time 0.00182/0.1682, allocations: 0.7888 MB / 0.6972 GB, free: 2.324 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.04e-05/0.1683, allocations: 85.05 kB / 0.6973 GB, free: 2.223 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001906/0.1685, allocations: 224.9 kB / 0.6975 GB, free: 1.996 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.457e-05/0.1685, allocations: 33.7 kB / 0.6976 GB, free: 1.957 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.21e-05/0.1686, allocations: 164.3 kB / 0.6977 GB, free: 1.789 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.039e-05/0.1687, allocations: 94.64 kB / 0.6978 GB, free: 1.695 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.91e-05/0.1688, allocations: 37.7 kB / 0.6978 GB, free: 1.652 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.637e-05/0.1689, allocations: 334.8 kB / 0.6982 GB, free: 1.316 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004067/0.1693, allocations: 180.2 kB / 0.6983 GB, free: 1.141 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004742/0.1698, allocations: 266.2 kB / 0.6986 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000869/0.1706, allocations: 484.2 kB / 0.699 GB, free: 352 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1706, allocations: 0 / 0.699 GB, free: 352 kB / 494.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00114/0.1718, allocations: 0.5719 MB / 0.6996 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.638e-05/0.1719, allocations: 175.1 kB / 0.6998 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.555e-06/0.1719, allocations: 4 kB / 0.6998 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002017/0.1721, allocations: 44.81 kB / 0.6998 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003866/0.1725, allocations: 95.86 kB / 0.6999 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001241/0.1738, allocations: 1.497 MB / 0.7014 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003262/0.1741, allocations: 51.8 kB / 0.7014 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.352e-05/0.1742, allocations: 19.98 kB / 0.7014 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.208e-06/0.1742, allocations: 0 / 0.7014 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001042/0.1752, allocations: 0.5022 MB / 0.7019 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.1752, allocations: 3.984 kB / 0.7019 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001188/0.1754, allocations: 36.83 kB / 0.702 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003493/0.1757, allocations: 95.97 kB / 0.7021 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001075/0.1768, allocations: 1.485 MB / 0.7035 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002943/0.1771, allocations: 51.8 kB / 0.7036 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.272e-05/0.1772, allocations: 12 kB / 0.7036 GB, free: 11.37 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 (load.count,$PRE.load.count,load.T_start,$PRE.load.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002474/0.1774, allocations: 253 kB / 0.7038 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.889e-05/0.1775, allocations: 27.66 kB / 0.7038 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001142/0.1786, allocations: 488.1 kB / 0.7043 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.1786, allocations: 8 kB / 0.7043 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1786, allocations: 0 / 0.7043 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.1786, allocations: 0 / 0.7043 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006714/0.1793, allocations: 0.5739 MB / 0.7049 GB, free: 9.953 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.1793, allocations: 0 / 0.7049 GB, free: 9.953 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003911/0.1797, allocations: 84.02 kB / 0.705 GB, free: 9.871 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001137/0.1799, allocations: 44.89 kB / 0.705 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.958e-05/0.1799, allocations: 12 kB / 0.705 GB, free: 9.812 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001198/0.1811, allocations: 1.416 MB / 0.7064 GB, free: 8.266 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.1811, allocations: 7.969 kB / 0.7064 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001069/0.1822, allocations: 0.5576 MB / 0.7069 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001412/0.1823, allocations: 136.7 kB / 0.7071 GB, free: 7.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.986e-05/0.1824, allocations: 4 kB / 0.7071 GB, free: 7.516 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003158/0.1827, allocations: 43.94 kB / 0.7071 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.286e-05/0.1828, allocations: 31.97 kB / 0.7072 GB, free: 7.441 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.212e-05/0.1828, allocations: 4 kB / 0.7072 GB, free: 7.438 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001612/0.183, allocations: 180.5 kB / 0.7073 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.183, allocations: 0 / 0.7073 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005633/0.1836, allocations: 131.9 kB / 0.7075 GB, free: 7.137 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001563/0.1838, allocations: 107.2 kB / 0.7076 GB, free: 7.02 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001741/0.1855, allocations: 1.016 MB / 0.7085 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/0.1855, allocations: 0 / 0.7085 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005926/0.1861, allocations: 342.8 kB / 0.7089 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004466/0.1866, allocations: 46.38 kB / 0.7089 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00107/0.1877, allocations: 0.7372 MB / 0.7096 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.188, allocations: 0.7878 MB / 0.7104 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002813/0.1883, allocations: 94.33 kB / 0.7105 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.543e-05/0.1884, allocations: 27.42 kB / 0.7105 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of SimCode: time 4.11e-07/0.1884, allocations: 3.938 kB / 0.7105 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of Templates: time 0.007512/0.1959, allocations: 4.138 MB / 0.7146 GB, free: 15.74 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)