Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.load1.i.1.|R1.load1.i.2.|R2.load1.i.1.|R2.load1.i.2.|R3.load1.i.1.|R3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.load1.i.1.|R1.load1.i.2.|R2.load1.i.1.|R2.load1.i.2.|R3.load1.i.1.|R3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001411/0.001411, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 223.2 MB / 239.9 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.758/2.758, allocations: 436.5 MB / 0.7104 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003377/0.0003376, allocations: 16 kB / 0.8708 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8575/0.8579, allocations: 153.7 MB / 1.021 GB, free: 1.086 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine): time 0.02726/0.8852, allocations: 26.68 MB / 1.047 GB, free: 6.332 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.02077/0.906, allocations: 12.58 MB / 1.059 GB, free: 9.723 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004396/0.9104, allocations: 119.2 kB / 1.059 GB, free: 9.605 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.003465/0.9139, allocations: 0.6366 MB / 1.06 GB, free: 8.965 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.009625/0.9236, allocations: 2.103 MB / 1.062 GB, free: 6.855 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.005656/0.9292, allocations: 1.222 MB / 1.063 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.009592/0.9389, allocations: 4.013 MB / 1.067 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01776/0.9567, allocations: 8.525 MB / 1.075 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006438/0.9631, allocations: 2.301 MB / 1.078 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004339/0.9675, allocations: 2.036 MB / 1.08 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.001483/0.969, allocations: 244 kB / 1.08 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003016/0.9721, allocations: 0.597 MB / 1.08 GB, free: 3.828 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.003947/0.9761, allocations: 1.758 MB / 1.082 GB, free: 2.066 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.00333/0.9794, allocations: 0.9719 MB / 1.083 GB, free: 1.086 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.01202/0.9915, allocations: 7.615 MB / 1.091 GB, free: 9.453 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.9915, allocations: 0 / 1.091 GB, free: 9.453 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.926e-06/0.9916, allocations: 3.938 kB / 1.091 GB, free: 9.449 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0004845/0.992, allocations: 0 / 1.091 GB, free: 9.449 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1133 * Number of variables: 1133 Notification: Performance of Generate backend data structure: time 0.01591/1.008, allocations: 4.173 MB / 1.095 GB, free: 5.199 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 7.528e-05/1.008, allocations: 16.03 kB / 1.095 GB, free: 5.184 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007445/1.016, allocations: 0.9699 MB / 1.096 GB, free: 4.207 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008762/1.024, allocations: 2.807 MB / 1.098 GB, free: 1.32 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000412/1.025, allocations: 324.5 kB / 1.099 GB, free: 1 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002006/1.027, allocations: 415.9 kB / 1.099 GB, free: 0.5938 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02227/1.049, allocations: 6.721 MB / 1.106 GB, free: 9.582 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003613/1.05, allocations: 27.77 kB / 1.106 GB, free: 9.555 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001879/1.051, allocations: 184 kB / 1.106 GB, free: 9.375 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001176/1.053, allocations: 372 kB / 1.106 GB, free: 9.008 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01439/1.067, allocations: 5.083 MB / 1.111 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04797/1.115, allocations: 30.78 MB / 1.141 GB, free: 2.367 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002768/1.118, allocations: 1.383 MB / 1.143 GB, free: 0.9766 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002003/1.118, allocations: 13.31 kB / 1.143 GB, free: 0.9648 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.29e-05/1.118, allocations: 51.88 kB / 1.143 GB, free: 0.9062 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=130): time 4.509e-06/1.118, allocations: 4 kB / 1.143 GB, free: 0.9023 MB / 0.8887 GB Notification: Performance of matching and sorting (n=199): time 0.09008/1.208, allocations: 22.78 MB / 1.165 GB, free: 9.996 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.376e-05/1.208, allocations: 73.39 kB / 1.165 GB, free: 9.91 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003885/1.212, allocations: 2.043 MB / 1.167 GB, free: 7.852 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0003803/1.213, allocations: 61.7 kB / 1.167 GB, free: 7.785 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001838/1.215, allocations: 2.006 MB / 1.169 GB, free: 5.754 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.000903/1.215, allocations: 0.6817 MB / 1.17 GB, free: 5.062 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002382/1.216, allocations: 44 kB / 1.17 GB, free: 5.02 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000231/1.216, allocations: 398.5 kB / 1.17 GB, free: 4.625 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002435/1.218, allocations: 1.422 MB / 1.171 GB, free: 3.199 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002984/1.221, allocations: 2.006 MB / 1.173 GB, free: 0.9492 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002933/1.224, allocations: 1.724 MB / 1.175 GB, free: 15.22 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.481e-05/1.224, allocations: 8 kB / 1.175 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01244/1.237, allocations: 5.63 MB / 1.181 GB, free: 9.516 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.298e-05/1.237, allocations: 16.22 kB / 1.181 GB, free: 9.5 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.546e-05/1.237, allocations: 16 kB / 1.181 GB, free: 9.484 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007067/1.244, allocations: 2.075 MB / 1.183 GB, free: 7.355 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001719/1.246, allocations: 379.4 kB / 1.183 GB, free: 6.984 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04107/1.287, allocations: 36.26 MB / 1.218 GB, free: 316 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002702/1.29, allocations: 135.9 kB / 1.219 GB, free: 180 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004109/1.29, allocations: 92 kB / 1.219 GB, free: 88 kB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (204): * Single equations (assignments): 186 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 18 {(3,100.0%) 5,(3,100.0%) 5,(3,100.0%) 5,(3,100.0%) 5,(3,100.0%) 5,(3,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003261/1.293, allocations: 1.504 MB / 1.22 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008495/1.294, allocations: 276.7 kB / 1.22 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0108/1.305, allocations: 5.2 MB / 1.225 GB, free: 9.016 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.513e-05/1.305, allocations: 20 kB / 1.225 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.879e-05/1.305, allocations: 19.94 kB / 1.225 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.318e-05/1.305, allocations: 15.95 kB / 1.225 GB, free: 8.961 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02141/1.327, allocations: 9.657 MB / 1.235 GB, free: 15.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.055e-05/1.327, allocations: 8 kB / 1.235 GB, free: 15.09 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009796/1.328, allocations: 215.7 kB / 1.235 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006293/1.334, allocations: 1.847 MB / 1.237 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002839/1.334, allocations: 36 kB / 1.237 GB, free: 12.95 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.7332/2.068, allocations: 35.27 MB / 1.271 GB, free: 188.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.745e-05/2.068, allocations: 14.88 kB / 1.271 GB, free: 188.3 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01109/2.079, allocations: 5.423 MB / 1.277 GB, free: 185.5 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001663/2.08, allocations: 0.6231 MB / 1.277 GB, free: 185.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004403/2.081, allocations: 40.28 kB / 1.277 GB, free: 185.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001445/2.082, allocations: 130.4 kB / 1.277 GB, free: 185.2 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007161/2.083, allocations: 194.1 kB / 1.278 GB, free: 185.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001349/2.083, allocations: 58.56 kB / 1.278 GB, free: 185.2 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002008/2.085, allocations: 1.358 MB / 1.279 GB, free: 184.6 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.71e-07/2.085, allocations: 0 / 1.279 GB, free: 184.6 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004086/2.089, allocations: 1.045 MB / 1.28 GB, free: 184.6 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (112): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 18 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 4,(3,100.0%) 5,(3,100.0%) 5,(3,100.0%) 5,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 4,(3,100.0%) 5,(3,100.0%) 5,(3,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003898/2.09, allocations: 165.3 kB / 1.28 GB, free: 184.4 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.009696/2.099, allocations: 6.263 MB / 1.286 GB, free: 180.8 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/2.099, allocations: 1.25 kB / 1.286 GB, free: 180.8 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.006256/2.106, allocations: 4.402 MB / 1.291 GB, free: 177.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004502/2.11, allocations: 0.8796 MB / 1.291 GB, free: 177.7 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0158/2.126, allocations: 9.591 MB / 1.301 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004868/2.131, allocations: 3.199 MB / 1.304 GB, free: 171.2 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002402/2.133, allocations: 0.523 MB / 1.304 GB, free: 171.1 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000504/2.134, allocations: 143.1 kB / 1.305 GB, free: 171.1 MB / 0.9981 GB Notification: Performance of SimCode: time 8.51e-07/2.134, allocations: 0 / 1.305 GB, free: 171.1 MB / 0.9981 GB Notification: Performance of Templates: time 0.08416/2.218, allocations: 55.58 MB / 1.359 GB, free: 122.7 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches