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.006695/0.006695, allocations: 101.3 kB / 15.73 MB, free: 6.047 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.001421/0.001421, allocations: 198.8 kB / 16.67 MB, free: 5.977 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.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002196/0.002196, allocations: 274.5 kB / 290.8 MB, free: 1.789 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9423/0.9423, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001699/0.001699, allocations: 91.84 kB / 0.6814 GB, free: 15.49 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1637/0.1655, allocations: 86.97 MB / 0.7664 GB, free: 8.441 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource): time 0.004399/0.1699, allocations: 3.2 MB / 0.7695 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002062/0.172, allocations: 1.371 MB / 0.7708 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.1721, allocations: 4 kB / 0.7708 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001011/0.1732, allocations: 342.6 kB / 0.7712 GB, free: 3.508 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003391/0.1735, allocations: 139.2 kB / 0.7713 GB, free: 3.371 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003767/0.1739, allocations: 147.6 kB / 0.7714 GB, free: 3.227 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003411/0.1742, allocations: 346.6 kB / 0.7718 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004247/0.1747, allocations: 247.7 kB / 0.772 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001978/0.1749, allocations: 143.5 kB / 0.7721 GB, free: 2.5 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003092/0.1752, allocations: 151.5 kB / 0.7723 GB, free: 2.352 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.247e-05/0.1752, allocations: 20 kB / 0.7723 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002832/0.1755, allocations: 167.6 kB / 0.7725 GB, free: 2.168 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.887e-05/0.1756, allocations: 87.73 kB / 0.7725 GB, free: 2.082 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.1758, allocations: 115.5 kB / 0.7727 GB, free: 1.969 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00041/0.1762, allocations: 358.8 kB / 0.773 GB, free: 1.617 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1762, allocations: 0 / 0.773 GB, free: 1.617 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.784e-06/0.1762, allocations: 0 / 0.773 GB, free: 1.617 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.032e-05/0.1762, allocations: 3.938 kB / 0.773 GB, free: 1.613 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008432/0.1771, allocations: 0.5458 MB / 0.7735 GB, free: 1.02 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.1771, allocations: 12.03 kB / 0.7735 GB, free: 1.008 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005724/0.1777, allocations: 76.58 kB / 0.7736 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003033/0.178, allocations: 259.2 kB / 0.7739 GB, free: 0.6445 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.178, allocations: 20.81 kB / 0.7739 GB, free: 0.625 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.088e-05/0.1781, allocations: 16.38 kB / 0.7739 GB, free: 0.6094 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004914/0.1786, allocations: 312.6 kB / 0.7742 GB, free: 288 kB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.1786, allocations: 0 / 0.7742 GB, free: 288 kB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.209e-05/0.1786, allocations: 15.98 kB / 0.7742 GB, free: 272 kB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.319e-05/0.1787, allocations: 16.42 kB / 0.7742 GB, free: 256 kB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003575/0.179, allocations: 217.5 kB / 0.7744 GB, free: 36 kB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.33/0.5091, allocations: 1.481 MB / 0.7759 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004162/0.5095, allocations: 202.8 kB / 0.7761 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.437e-05/0.5096, allocations: 42.3 kB / 0.7761 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.317e-05/0.5096, allocations: 6.969 kB / 0.7761 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.78e-05/0.5097, allocations: 38.08 kB / 0.7762 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 3.086e-06/0.5097, allocations: 1.172 kB / 0.7762 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.0005734/0.5102, allocations: 261.6 kB / 0.7764 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.884e-05/0.5103, allocations: 54.92 kB / 0.7765 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000179/0.5105, allocations: 207.8 kB / 0.7767 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.148e-05/0.5105, allocations: 30.17 kB / 0.7767 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.065e-05/0.5106, allocations: 174.5 kB / 0.7769 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.029e-05/0.5106, allocations: 30.14 kB / 0.7769 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.117e-05/0.5107, allocations: 41.42 kB / 0.7769 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.258e-05/0.5107, allocations: 327.8 kB / 0.7772 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001008/0.5108, allocations: 42.78 kB / 0.7773 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001229/0.511, allocations: 112 kB / 0.7774 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002087/0.5112, allocations: 173 kB / 0.7776 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.5112, allocations: 0.875 kB / 0.7776 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003484/0.5116, allocations: 208 kB / 0.7778 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.5116, allocations: 6.672 kB / 0.7778 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.5116, allocations: 3.156 kB / 0.7778 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001586/0.5118, allocations: 28 kB / 0.7778 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.5119, allocations: 36.44 kB / 0.7778 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007896/0.5127, allocations: 1.432 MB / 0.7792 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001319/0.5129, allocations: 15.69 kB / 0.7792 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.5129, allocations: 13.41 kB / 0.7792 GB, free: 11.45 MB / 0.5606 GB 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.000102/0.513, allocations: 147.7 kB / 0.7794 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.954e-05/0.513, allocations: 19.94 kB / 0.7794 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.284e-05/0.5131, allocations: 27.53 kB / 0.7794 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.5131, allocations: 1.953 kB / 0.7794 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.5131, allocations: 0 / 0.7794 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/0.5131, allocations: 1.922 kB / 0.7794 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005379/0.5136, allocations: 491.8 kB / 0.7799 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.5136, allocations: 1.766 kB / 0.7799 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.805e-05/0.5137, allocations: 16.2 kB / 0.7799 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.468e-05/0.5138, allocations: 28.98 kB / 0.78 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.407e-06/0.5138, allocations: 0.7812 kB / 0.78 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006676/0.5145, allocations: 1.422 MB / 0.7813 GB, free: 9.516 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.5145, allocations: 0.7812 kB / 0.7813 GB, free: 9.516 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002472/0.5148, allocations: 235.9 kB / 0.7816 GB, free: 9.34 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.245e-05/0.5148, allocations: 98.06 kB / 0.7817 GB, free: 9.238 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.234e-05/0.5148, allocations: 5.844 kB / 0.7817 GB, free: 9.234 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000124/0.515, allocations: 5.797 kB / 0.7817 GB, free: 9.234 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.534e-05/0.515, allocations: 7.094 kB / 0.7817 GB, free: 9.234 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.614e-06/0.515, allocations: 2.5 kB / 0.7817 GB, free: 9.234 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001067/0.5151, allocations: 155.1 kB / 0.7818 GB, free: 9.133 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5151, allocations: 0 / 0.7818 GB, free: 9.133 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003199/0.5155, allocations: 59.16 kB / 0.7819 GB, free: 9.117 MB / 0.5606 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 7.37e-05/0.5156, allocations: 103.4 kB / 0.782 GB, free: 9.027 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003836/0.5159, allocations: 231.3 kB / 0.7822 GB, free: 8.883 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.516, allocations: 2.312 kB / 0.7822 GB, free: 8.883 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001817/0.5161, allocations: 162.5 kB / 0.7824 GB, free: 8.758 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003648/0.5165, allocations: 46.84 kB / 0.7824 GB, free: 8.746 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005618/0.5171, allocations: 395.2 kB / 0.7828 GB, free: 8.512 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001733/0.5173, allocations: 0.7576 MB / 0.7835 GB, free: 7.805 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.582e-05/0.5174, allocations: 24.88 kB / 0.7835 GB, free: 7.805 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.318e-05/0.5174, allocations: 18.86 kB / 0.7836 GB, free: 7.793 MB / 0.5606 GB Notification: Performance of SimCode: time 2.6e-07/0.5174, allocations: 1.156 kB / 0.7836 GB, free: 7.793 MB / 0.5606 GB Notification: Performance of Templates: time 0.004565/0.522, allocations: 1.954 MB / 0.7855 GB, free: 7.668 MB / 0.5606 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)