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.001302/0.001302, allocations: 106.7 kB / 16.41 MB, free: 6.453 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.001306/0.001306, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.367/1.367, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002195/0.002195, allocations: 293.3 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9877/0.9877, allocations: 169.2 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 92.23 kB / 0.6821 GB, free: 6.977 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4513/0.4533, allocations: 86.97 MB / 0.767 GB, free: 3.914 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.005126/0.4584, allocations: 3.071 MB / 0.77 GB, free: 0.832 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.003594/0.462, allocations: 1.902 MB / 0.7719 GB, free: 14.92 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002173/0.4623, allocations: 7.938 kB / 0.7719 GB, free: 14.91 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001001/0.4633, allocations: 282.9 kB / 0.7722 GB, free: 14.63 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005667/0.4639, allocations: 195.1 kB / 0.7723 GB, free: 14.44 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.000728/0.4647, allocations: 251.2 kB / 0.7726 GB, free: 14.2 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0004764/0.4652, allocations: 322.7 kB / 0.7729 GB, free: 13.88 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003897/0.4656, allocations: 181 kB / 0.7731 GB, free: 13.7 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002655/0.4658, allocations: 139.5 kB / 0.7732 GB, free: 13.56 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003572/0.4662, allocations: 143.5 kB / 0.7733 GB, free: 13.42 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.698e-05/0.4662, allocations: 20 kB / 0.7734 GB, free: 13.4 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007075/0.467, allocations: 407.2 kB / 0.7737 GB, free: 13 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001135/0.4671, allocations: 83.73 kB / 0.7738 GB, free: 12.92 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001441/0.4672, allocations: 123.4 kB / 0.7739 GB, free: 12.8 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0007678/0.468, allocations: 485.2 kB / 0.7744 GB, free: 12.32 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.468, allocations: 0 / 0.7744 GB, free: 12.32 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.353e-06/0.468, allocations: 4 kB / 0.7744 GB, free: 12.32 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.335e-05/0.4681, allocations: 0 / 0.7744 GB, free: 12.32 MB / 0.545 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.001065/0.4691, allocations: 0.5614 MB / 0.775 GB, free: 11.71 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.4692, allocations: 8.031 kB / 0.775 GB, free: 11.7 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009165/0.4701, allocations: 116.5 kB / 0.7751 GB, free: 11.59 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004232/0.4705, allocations: 274.6 kB / 0.7753 GB, free: 11.29 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.338e-05/0.4706, allocations: 12.81 kB / 0.7753 GB, free: 11.27 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.519e-05/0.4706, allocations: 20.36 kB / 0.7754 GB, free: 11.25 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006626/0.4713, allocations: 353.4 kB / 0.7757 GB, free: 10.89 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.4713, allocations: 0 / 0.7757 GB, free: 10.89 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.573e-05/0.4714, allocations: 16 kB / 0.7757 GB, free: 10.88 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.811e-05/0.4714, allocations: 20.42 kB / 0.7757 GB, free: 10.85 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005171/0.4719, allocations: 297.5 kB / 0.776 GB, free: 10.56 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002353/0.4743, allocations: 1.729 MB / 0.7777 GB, free: 8.664 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005333/0.4749, allocations: 330.1 kB / 0.778 GB, free: 8.305 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001713/0.475, allocations: 105 kB / 0.7781 GB, free: 8.199 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001278/0.4752, allocations: 89.03 kB / 0.7782 GB, free: 8.094 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.4752, allocations: 38.56 kB / 0.7782 GB, free: 8.047 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.603e-06/0.4752, allocations: 0 / 0.7782 GB, free: 8.047 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.002651/0.4779, allocations: 0.9665 MB / 0.7792 GB, free: 7.043 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.406e-05/0.478, allocations: 89.05 kB / 0.7793 GB, free: 6.938 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002502/0.4782, allocations: 203.9 kB / 0.7795 GB, free: 6.727 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.236e-05/0.4783, allocations: 33.7 kB / 0.7795 GB, free: 6.688 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.4784, allocations: 168.1 kB / 0.7797 GB, free: 6.52 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 7.772e-05/0.4785, allocations: 78.84 kB / 0.7797 GB, free: 6.441 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001207/0.4786, allocations: 69.59 kB / 0.7798 GB, free: 6.367 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001935/0.4788, allocations: 326.8 kB / 0.7801 GB, free: 6.039 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002211/0.479, allocations: 131.9 kB / 0.7802 GB, free: 5.91 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002799/0.4793, allocations: 213.3 kB / 0.7804 GB, free: 5.668 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005431/0.4799, allocations: 357.2 kB / 0.7808 GB, free: 5.285 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4799, allocations: 0 / 0.7808 GB, free: 5.285 MB / 0.545 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009886/0.4809, allocations: 0.519 MB / 0.7813 GB, free: 4.75 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.4809, allocations: 8 kB / 0.7813 GB, free: 4.742 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.4809, allocations: 4 kB / 0.7813 GB, free: 4.738 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006024/0.4815, allocations: 147.6 kB / 0.7814 GB, free: 4.582 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002717/0.4818, allocations: 59.91 kB / 0.7815 GB, free: 4.523 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003823/0.4857, allocations: 4.19 MB / 0.7856 GB, free: 0 / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002361/0.4859, allocations: 20.02 kB / 0.7856 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.129e-05/0.4859, allocations: 15.98 kB / 0.7856 GB, free: 15.96 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.0002293/0.4862, allocations: 166.5 kB / 0.7858 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.116e-05/0.4863, allocations: 19.81 kB / 0.7858 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009182/0.4872, allocations: 478.4 kB / 0.7863 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.4872, allocations: 4 kB / 0.7863 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.4872, allocations: 4 kB / 0.7863 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.4872, allocations: 0 / 0.7863 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001616/0.4889, allocations: 1.01 MB / 0.7873 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.718e-06/0.4889, allocations: 0 / 0.7873 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001295/0.489, allocations: 31.98 kB / 0.7873 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000405/0.4894, allocations: 147.5 kB / 0.7874 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.377e-05/0.4895, allocations: 12.09 kB / 0.7874 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003104/0.4926, allocations: 4.159 MB / 0.7915 GB, free: 9.484 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/0.4926, allocations: 7.938 kB / 0.7915 GB, free: 9.477 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008154/0.4934, allocations: 0.6129 MB / 0.7921 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001369/0.4936, allocations: 128.8 kB / 0.7922 GB, free: 8.668 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.01e-05/0.4936, allocations: 7.938 kB / 0.7922 GB, free: 8.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002397/0.4939, allocations: 19.98 kB / 0.7923 GB, free: 8.641 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.002e-05/0.4939, allocations: 27.91 kB / 0.7923 GB, free: 8.613 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.94e-05/0.4939, allocations: 12 kB / 0.7923 GB, free: 8.602 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001499/0.4941, allocations: 158.1 kB / 0.7924 GB, free: 8.449 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4941, allocations: 0 / 0.7924 GB, free: 8.449 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0005303/0.4946, allocations: 92 kB / 0.7925 GB, free: 8.359 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.0002268/0.4949, allocations: 143 kB / 0.7927 GB, free: 8.207 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009964/0.4959, allocations: 0.5832 MB / 0.7932 GB, free: 7.598 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.4959, allocations: 0 / 0.7932 GB, free: 7.598 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005321/0.4964, allocations: 405.1 kB / 0.7936 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005211/0.497, allocations: 48.77 kB / 0.7937 GB, free: 7.129 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.4981, allocations: 0.6668 MB / 0.7943 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004149/0.4985, allocations: 0.787 MB / 0.7951 GB, free: 5.602 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.859e-05/0.4986, allocations: 23.44 kB / 0.7951 GB, free: 5.578 MB / 0.5606 GB Notification: Performance of SimCode: time 3.6e-07/0.4986, allocations: 0 / 0.7951 GB, free: 5.578 MB / 0.5606 GB Notification: Performance of Templates: time 0.01008/0.5087, allocations: 7.632 MB / 0.8026 GB, free: 13.95 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)