Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.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.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource") translateModel(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00162/0.00162, 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.00146/0.00146, 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 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002027/0.002027, allocations: 302.6 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9083/0.9083, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 97.27 kB / 0.5952 GB, free: 27.9 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1517/0.1536, allocations: 86.98 MB / 0.6802 GB, free: 0.6992 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource): time 0.004569/0.1582, allocations: 3.193 MB / 0.6833 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002076/0.1603, allocations: 1.38 MB / 0.6846 GB, free: 12.12 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001294/0.1604, allocations: 8.469 kB / 0.6846 GB, free: 12.11 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009255/0.1614, allocations: 333.1 kB / 0.685 GB, free: 11.79 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003113/0.1617, allocations: 154.1 kB / 0.6851 GB, free: 11.64 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003124/0.162, allocations: 143.6 kB / 0.6853 GB, free: 11.5 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004092/0.1624, allocations: 330.9 kB / 0.6856 GB, free: 11.18 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003788/0.1628, allocations: 256.6 kB / 0.6858 GB, free: 10.93 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001546/0.163, allocations: 135.5 kB / 0.6859 GB, free: 10.8 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002379/0.1632, allocations: 151.4 kB / 0.6861 GB, free: 10.65 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.485e-05/0.1633, allocations: 20 kB / 0.6861 GB, free: 10.63 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002477/0.1635, allocations: 159.7 kB / 0.6863 GB, free: 10.47 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.032e-05/0.1636, allocations: 91.72 kB / 0.6863 GB, free: 10.38 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.1637, allocations: 115.4 kB / 0.6865 GB, free: 10.27 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003504/0.1641, allocations: 354.9 kB / 0.6868 GB, free: 9.922 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1641, allocations: 4 kB / 0.6868 GB, free: 9.918 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1641, allocations: 0 / 0.6868 GB, free: 9.918 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.686e-06/0.1641, allocations: 0 / 0.6868 GB, free: 9.918 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007319/0.1649, allocations: 0.5437 MB / 0.6873 GB, free: 9.328 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.05e-05/0.1649, allocations: 8.031 kB / 0.6873 GB, free: 9.32 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005367/0.1654, allocations: 80.58 kB / 0.6874 GB, free: 9.242 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/0.1657, allocations: 257.7 kB / 0.6877 GB, free: 8.953 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.1657, allocations: 16.81 kB / 0.6877 GB, free: 8.938 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.084e-05/0.1658, allocations: 20.36 kB / 0.6877 GB, free: 8.918 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004149/0.1662, allocations: 316.6 kB / 0.688 GB, free: 8.586 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-06/0.1662, allocations: 4 kB / 0.688 GB, free: 8.582 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.1662, allocations: 8 kB / 0.688 GB, free: 8.574 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.982e-05/0.1663, allocations: 20.42 kB / 0.688 GB, free: 8.555 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003288/0.1666, allocations: 209.6 kB / 0.6882 GB, free: 8.352 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001346/0.168, allocations: 1.49 MB / 0.6897 GB, free: 6.695 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003811/0.1684, allocations: 211.6 kB / 0.6899 GB, free: 6.461 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.629e-05/0.1685, allocations: 44.83 kB / 0.6899 GB, free: 6.414 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.055e-05/0.1685, allocations: 0 / 0.6899 GB, free: 6.414 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.1685, allocations: 34.56 kB / 0.69 GB, free: 6.371 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 8.81e-07/0.1685, allocations: 0 / 0.69 GB, free: 6.371 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005329/0.169, allocations: 271.3 kB / 0.6902 GB, free: 6.078 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.929e-05/0.1691, allocations: 55.34 kB / 0.6903 GB, free: 6.012 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001814/0.1693, allocations: 208.4 kB / 0.6905 GB, free: 5.801 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.1693, allocations: 29.7 kB / 0.6905 GB, free: 5.766 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.652e-05/0.1694, allocations: 171.7 kB / 0.6907 GB, free: 5.594 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.984e-05/0.1694, allocations: 31.55 kB / 0.6907 GB, free: 5.562 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.719e-05/0.1695, allocations: 37.7 kB / 0.6907 GB, free: 5.52 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1696, allocations: 330.8 kB / 0.691 GB, free: 5.188 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.6e-05/0.1697, allocations: 43.97 kB / 0.6911 GB, free: 5.145 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000124/0.1698, allocations: 112.5 kB / 0.6912 GB, free: 5.004 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002275/0.1701, allocations: 172.4 kB / 0.6914 GB, free: 4.805 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1701, allocations: 0 / 0.6914 GB, free: 4.805 MB / 494.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003502/0.1704, allocations: 210 kB / 0.6916 GB, free: 4.59 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.1705, allocations: 4 kB / 0.6916 GB, free: 4.586 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.1705, allocations: 12.2 kB / 0.6916 GB, free: 4.574 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001614/0.1707, allocations: 28.84 kB / 0.6916 GB, free: 4.543 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.1708, allocations: 35.86 kB / 0.6916 GB, free: 4.508 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001022/0.1718, allocations: 1.425 MB / 0.693 GB, free: 2.941 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001363/0.172, allocations: 19.88 kB / 0.693 GB, free: 2.922 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.259e-05/0.172, allocations: 8 kB / 0.6931 GB, free: 2.914 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001362/0.1721, allocations: 149.9 kB / 0.6932 GB, free: 2.758 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.091e-05/0.1722, allocations: 15.81 kB / 0.6932 GB, free: 2.742 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.121e-05/0.1722, allocations: 21.45 kB / 0.6932 GB, free: 2.727 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1722, allocations: 4 kB / 0.6932 GB, free: 2.723 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1722, allocations: 0 / 0.6932 GB, free: 2.723 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1723, allocations: 3.938 kB / 0.6932 GB, free: 2.719 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005577/0.1728, allocations: 487.7 kB / 0.6937 GB, free: 2.184 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.1728, allocations: 11.92 kB / 0.6937 GB, free: 2.172 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.155e-05/0.1729, allocations: 11.94 kB / 0.6937 GB, free: 2.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.369e-05/0.173, allocations: 24.84 kB / 0.6937 GB, free: 2.133 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.627e-06/0.173, allocations: 0 / 0.6937 GB, free: 2.133 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009265/0.1739, allocations: 1.426 MB / 0.6951 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.174, allocations: 3.984 kB / 0.6951 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002572/0.1742, allocations: 236.3 kB / 0.6954 GB, free: 320 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.624e-05/0.1743, allocations: 100.9 kB / 0.6955 GB, free: 200 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.954e-05/0.1743, allocations: 0 / 0.6955 GB, free: 200 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001175/0.1744, allocations: 7.984 kB / 0.6955 GB, free: 192 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.13e-05/0.1745, allocations: 11.98 kB / 0.6955 GB, free: 180 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.615e-06/0.1745, allocations: 4 kB / 0.6955 GB, free: 176 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001071/0.1746, allocations: 153.5 kB / 0.6956 GB, free: 24 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.253e-06/0.1746, allocations: 0 / 0.6956 GB, free: 24 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003436/0.175, allocations: 63.77 kB / 0.6957 GB, free: 15.96 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001101/0.1751, allocations: 100.9 kB / 0.6958 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004923/0.1756, allocations: 239 kB / 0.696 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1756, allocations: 4.062 kB / 0.696 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001941/0.1758, allocations: 150.7 kB / 0.6962 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003425/0.1762, allocations: 38.72 kB / 0.6962 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006368/0.1768, allocations: 399.5 kB / 0.6966 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003192/0.1771, allocations: 0.7593 MB / 0.6973 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.24e-05/0.1772, allocations: 29.47 kB / 0.6974 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.516e-05/0.1773, allocations: 15.44 kB / 0.6974 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1773, allocations: 4 kB / 0.6974 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of Templates: time 0.00534/0.1826, allocations: 1.922 MB / 0.6993 GB, free: 12.25 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1)