Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_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_9_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.0009704/0.0009702, allocations: 101.5 kB / 15.06 MB, free: 1.094 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.0009177/0.0009177, allocations: 177.3 kB / 15.95 MB, free: 208 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.498/1.498, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.447/2.447, allocations: 390.3 MB / 0.6653 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003432/0.0003432, allocations: 8 kB / 0.8145 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8577/0.858, allocations: 142.3 MB / 0.9535 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine): time 0.03049/0.8885, allocations: 26.66 MB / 0.9796 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.02257/0.9112, allocations: 12.61 MB / 0.9919 GB, free: 8.812 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004596/0.9158, allocations: 119.2 kB / 0.992 GB, free: 8.695 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.003393/0.9192, allocations: 0.6288 MB / 0.9926 GB, free: 8.062 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.0106/0.9298, allocations: 2.107 MB / 0.9947 GB, free: 5.949 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.005815/0.9357, allocations: 1.218 MB / 0.9958 GB, free: 4.734 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.009944/0.9457, allocations: 4.028 MB / 0.9998 GB, free: 0.6953 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01452/0.9602, allocations: 8.508 MB / 1.008 GB, free: 8.113 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005535/0.9658, allocations: 2.305 MB / 1.01 GB, free: 5.801 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005773/0.9716, allocations: 2.043 MB / 1.012 GB, free: 3.75 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001093/0.9727, allocations: 244 kB / 1.013 GB, free: 3.512 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00272/0.9754, allocations: 0.5931 MB / 1.013 GB, free: 2.918 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.002315/0.9778, allocations: 1.758 MB / 1.015 GB, free: 1.156 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.001989/0.9798, allocations: 0.9797 MB / 1.016 GB, free: 172 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.01013/0.9899, allocations: 7.615 MB / 1.023 GB, free: 8.535 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.279e-06/0.99, allocations: 0 / 1.023 GB, free: 8.535 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.757e-06/0.99, allocations: 0 / 1.023 GB, free: 8.535 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0004142/0.9904, allocations: 0 / 1.023 GB, free: 8.535 MB / 0.7794 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.01181/1.002, allocations: 4.173 MB / 1.027 GB, free: 4.285 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.755e-05/1.002, allocations: 8.031 kB / 1.027 GB, free: 4.277 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00723/1.01, allocations: 0.9737 MB / 1.028 GB, free: 3.297 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008158/1.018, allocations: 2.814 MB / 1.031 GB, free: 412 kB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003198/1.018, allocations: 316.5 kB / 1.031 GB, free: 92 kB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001727/1.02, allocations: 419.9 kB / 1.032 GB, free: 15.68 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01508/1.035, allocations: 6.721 MB / 1.038 GB, free: 8.664 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001657/1.035, allocations: 19.78 kB / 1.038 GB, free: 8.645 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007593/1.036, allocations: 188 kB / 1.039 GB, free: 8.461 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001286/1.037, allocations: 372 kB / 1.039 GB, free: 8.094 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01625/1.053, allocations: 5.087 MB / 1.044 GB, free: 2.988 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05651/1.11, allocations: 30.78 MB / 1.074 GB, free: 1.441 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002237/1.112, allocations: 1.375 MB / 1.075 GB, free: 60 kB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.157e-05/1.112, allocations: 13.31 kB / 1.075 GB, free: 48 kB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.438e-05/1.113, allocations: 55.92 kB / 1.075 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=130): time 3.065e-06/1.113, allocations: 0 / 1.075 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of matching and sorting (n=199): time 0.08403/1.197, allocations: 22.78 MB / 1.098 GB, free: 9.078 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.156e-05/1.197, allocations: 73.41 kB / 1.098 GB, free: 8.992 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003352/1.2, allocations: 2.047 MB / 1.1 GB, free: 6.93 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0003908/1.2, allocations: 65.7 kB / 1.1 GB, free: 6.859 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001506/1.202, allocations: 2.01 MB / 1.102 GB, free: 4.824 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007622/1.203, allocations: 0.6777 MB / 1.102 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001443/1.203, allocations: 44 kB / 1.102 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002127/1.203, allocations: 394.6 kB / 1.103 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002111/1.205, allocations: 1.426 MB / 1.104 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002492/1.208, allocations: 1.99 MB / 1.106 GB, free: 32 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002456/1.21, allocations: 1.728 MB / 1.108 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.888e-06/1.21, allocations: 8 kB / 1.108 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01113/1.221, allocations: 5.63 MB / 1.113 GB, free: 8.594 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.961e-05/1.221, allocations: 16 kB / 1.113 GB, free: 8.578 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.592e-05/1.221, allocations: 16 kB / 1.113 GB, free: 8.562 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006549/1.228, allocations: 2.083 MB / 1.115 GB, free: 6.426 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00193/1.23, allocations: 387.2 kB / 1.116 GB, free: 6.047 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03704/1.267, allocations: 36.27 MB / 1.151 GB, free: 15.38 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003097/1.27, allocations: 123.9 kB / 1.151 GB, free: 15.25 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000332/1.271, allocations: 95.98 kB / 1.151 GB, free: 15.16 MB / 0.92 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.002906/1.273, allocations: 1.5 MB / 1.153 GB, free: 13.65 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005868/1.274, allocations: 284.7 kB / 1.153 GB, free: 13.37 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009785/1.284, allocations: 5.184 MB / 1.158 GB, free: 8.105 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.752e-05/1.284, allocations: 20 kB / 1.158 GB, free: 8.086 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.523e-05/1.284, allocations: 27.94 kB / 1.158 GB, free: 8.059 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.992e-05/1.284, allocations: 11.97 kB / 1.158 GB, free: 8.047 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01773/1.302, allocations: 9.657 MB / 1.168 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.57e-05/1.302, allocations: 8 kB / 1.168 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009058/1.303, allocations: 211.6 kB / 1.168 GB, free: 13.97 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005733/1.308, allocations: 1.846 MB / 1.17 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000318/1.309, allocations: 40 kB / 1.17 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03454/1.343, allocations: 35.28 MB / 1.204 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.043e-05/1.343, allocations: 15.92 kB / 1.204 GB, free: 6.324 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009241/1.353, allocations: 5.419 MB / 1.209 GB, free: 0.582 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001729/1.354, allocations: 0.6225 MB / 1.21 GB, free: 15.94 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004389/1.355, allocations: 44 kB / 1.21 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001412/1.356, allocations: 127.8 kB / 1.21 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000639/1.357, allocations: 189.6 kB / 1.21 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001263/1.357, allocations: 59.95 kB / 1.21 GB, free: 15.53 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.002067/1.359, allocations: 1.359 MB / 1.212 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.51e-07/1.359, allocations: 0 / 1.212 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.004233/1.363, allocations: 1.047 MB / 1.213 GB, free: 13.11 MB / 0.9825 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.0003945/1.364, allocations: 174.7 kB / 1.213 GB, free: 12.93 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.009579/1.373, allocations: 6.245 MB / 1.219 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.331e-05/1.373, allocations: 8.875 kB / 1.219 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.006539/1.38, allocations: 4.398 MB / 1.223 GB, free: 1.82 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004082/1.384, allocations: 0.8844 MB / 1.224 GB, free: 0.9414 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01486/1.399, allocations: 9.583 MB / 1.234 GB, free: 7.273 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003879/1.403, allocations: 3.206 MB / 1.237 GB, free: 4.031 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002438/1.405, allocations: 0.5237 MB / 1.237 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000389/1.406, allocations: 143.4 kB / 1.237 GB, free: 3.363 MB / 0.9981 GB Notification: Performance of SimCode: time 1.182e-06/1.406, allocations: 0 / 1.237 GB, free: 3.363 MB / 0.9981 GB Notification: Performance of Templates: time 0.6124/2.018, allocations: 55.55 MB / 1.292 GB, free: 256.1 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches