Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.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.Examples.GridDCLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad") translateModel(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005635/0.005635, allocations: 100.2 kB / 15.73 MB, free: 6.027 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.001244/0.001244, allocations: 186.9 kB / 16.67 MB, free: 5.965 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.288/1.288, allocations: 222.9 MB / 240.4 MB, free: 4.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.00205/0.00205, allocations: 291 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9446/0.9446, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001705/0.001705, allocations: 91.86 kB / 0.6814 GB, free: 15.53 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1646/0.1663, allocations: 86.98 MB / 0.7664 GB, free: 8.469 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004281/0.1706, allocations: 3.075 MB / 0.7694 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002651/0.1733, allocations: 1.902 MB / 0.7712 GB, free: 3.469 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.1734, allocations: 7.938 kB / 0.7712 GB, free: 3.461 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0008503/0.1743, allocations: 270.9 kB / 0.7715 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003934/0.1747, allocations: 199.1 kB / 0.7717 GB, free: 3 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004862/0.1752, allocations: 243.2 kB / 0.7719 GB, free: 2.762 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003233/0.1755, allocations: 326.7 kB / 0.7722 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003036/0.1758, allocations: 189 kB / 0.7724 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000156/0.176, allocations: 135.5 kB / 0.7725 GB, free: 2.117 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002495/0.1762, allocations: 151.4 kB / 0.7727 GB, free: 1.969 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.067e-05/0.1763, allocations: 20 kB / 0.7727 GB, free: 1.949 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005123/0.1768, allocations: 399.2 kB / 0.7731 GB, free: 1.559 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.021e-05/0.1769, allocations: 95.72 kB / 0.7732 GB, free: 1.465 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.177, allocations: 123.4 kB / 0.7733 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0005201/0.1775, allocations: 486.7 kB / 0.7737 GB, free: 0.8672 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1776, allocations: 0 / 0.7737 GB, free: 0.8672 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.153e-06/0.1776, allocations: 0 / 0.7737 GB, free: 0.8672 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.1776, allocations: 0 / 0.7737 GB, free: 0.8672 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007627/0.1783, allocations: 0.5614 MB / 0.7743 GB, free: 264 kB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.095e-05/0.1784, allocations: 8.031 kB / 0.7743 GB, free: 256 kB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007797/0.1792, allocations: 112.4 kB / 0.7744 GB, free: 144 kB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3383/0.5175, allocations: 261.6 kB / 0.7747 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.04e-05/0.5176, allocations: 12.91 kB / 0.7747 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.602e-05/0.5176, allocations: 23.31 kB / 0.7747 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006122/0.5182, allocations: 353 kB / 0.775 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.5182, allocations: 0.5938 kB / 0.775 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.335e-05/0.5183, allocations: 8.125 kB / 0.775 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-05/0.5183, allocations: 26.22 kB / 0.7751 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004933/0.5188, allocations: 301.4 kB / 0.7754 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001817/0.5207, allocations: 1.726 MB / 0.777 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004238/0.5211, allocations: 327.7 kB / 0.7773 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001416/0.5213, allocations: 105.5 kB / 0.7774 GB, free: 13.78 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.678e-05/0.5214, allocations: 86.44 kB / 0.7775 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.745e-05/0.5214, allocations: 38.22 kB / 0.7776 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=16): time 2.254e-06/0.5214, allocations: 0 / 0.7776 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of matching and sorting (n=23): time 0.002402/0.5238, allocations: 0.9721 MB / 0.7785 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.669e-05/0.5238, allocations: 80.92 kB / 0.7786 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001947/0.524, allocations: 216 kB / 0.7788 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2e-05/0.5241, allocations: 34.16 kB / 0.7788 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.655e-05/0.5241, allocations: 167.8 kB / 0.779 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.055e-05/0.5242, allocations: 79.61 kB / 0.7791 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.643e-05/0.5243, allocations: 60.69 kB / 0.7791 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.625e-05/0.5244, allocations: 334.8 kB / 0.7794 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001875/0.5246, allocations: 131.5 kB / 0.7796 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002226/0.5248, allocations: 214.7 kB / 0.7798 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004279/0.5252, allocations: 366 kB / 0.7801 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.5252, allocations: 0.7188 kB / 0.7801 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008165/0.5261, allocations: 0.5121 MB / 0.7806 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.5261, allocations: 9.453 kB / 0.7806 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.5261, allocations: 2.156 kB / 0.7806 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004799/0.5266, allocations: 151.2 kB / 0.7808 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002487/0.5268, allocations: 60.14 kB / 0.7808 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002108/0.529, allocations: 4.188 MB / 0.7849 GB, free: 7.676 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001785/0.5292, allocations: 23.98 kB / 0.785 GB, free: 7.668 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.316e-05/0.5292, allocations: 13.88 kB / 0.785 GB, free: 7.664 MB / 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001311/0.5293, allocations: 167.4 kB / 0.7851 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.655e-05/0.5294, allocations: 22.31 kB / 0.7851 GB, free: 7.512 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007452/0.5301, allocations: 471.6 kB / 0.7856 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.5302, allocations: 4.672 kB / 0.7856 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.5302, allocations: 4.906 kB / 0.7856 GB, free: 7.285 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.5302, allocations: 3.922 kB / 0.7856 GB, free: 7.285 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001305/0.5315, allocations: 1.003 MB / 0.7866 GB, free: 6.652 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.5315, allocations: 2.703 kB / 0.7866 GB, free: 6.652 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001281/0.5316, allocations: 32.36 kB / 0.7866 GB, free: 6.648 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003634/0.532, allocations: 142.3 kB / 0.7868 GB, free: 6.59 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.064e-05/0.532, allocations: 13.06 kB / 0.7868 GB, free: 6.582 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001981/0.534, allocations: 4.158 MB / 0.7908 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.534, allocations: 7.312 kB / 0.7908 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006603/0.5347, allocations: 0.6245 MB / 0.7914 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 9.003e-05/0.5348, allocations: 120.9 kB / 0.7916 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.369e-05/0.5349, allocations: 7.562 kB / 0.7916 GB, free: 2.016 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.5351, allocations: 25.92 kB / 0.7916 GB, free: 2.008 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.391e-05/0.5351, allocations: 29.34 kB / 0.7916 GB, free: 1.996 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.722e-05/0.5352, allocations: 8.188 kB / 0.7916 GB, free: 1.996 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001222/0.5353, allocations: 162.2 kB / 0.7918 GB, free: 1.895 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5353, allocations: 3.844 kB / 0.7918 GB, free: 1.895 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004794/0.5358, allocations: 87.34 kB / 0.7919 GB, free: 1.883 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (21): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001868/0.536, allocations: 141.2 kB / 0.792 GB, free: 1.785 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008139/0.5368, allocations: 0.5826 MB / 0.7926 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.5368, allocations: 0.625 kB / 0.7926 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004007/0.5372, allocations: 400.9 kB / 0.793 GB, free: 1.164 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004912/0.5377, allocations: 47.09 kB / 0.793 GB, free: 1.148 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009403/0.5387, allocations: 0.6279 MB / 0.7936 GB, free: 0.7578 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005017/0.5392, allocations: 0.7757 MB / 0.7944 GB, free: 16.05 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001591/0.5393, allocations: 59 kB / 0.7944 GB, free: 16.05 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.146e-05/0.5394, allocations: 25.33 kB / 0.7945 GB, free: 16.04 MB / 0.5762 GB Notification: Performance of SimCode: time 4.6e-07/0.5394, allocations: 3.938 kB / 0.7945 GB, free: 16.04 MB / 0.5762 GB Notification: Performance of Templates: time 0.008986/0.5484, allocations: 4.221 MB / 0.7986 GB, free: 15.77 MB / 0.5762 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1)