Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.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_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 100.9 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.001029/0.001029, 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.43/1.43, allocations: 223.2 MB / 239.9 MB, free: 5.355 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.526/2.526, allocations: 390.2 MB / 0.6653 GB, free: 3.008 MB / 0.5138 GB Notification: Performance of FrontEnd - loaded program: time 0.0003639/0.000364, allocations: 8 kB / 0.8145 GB, free: 14.32 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8418/0.8421, allocations: 142.3 MB / 0.9535 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.03461/0.8768, allocations: 33.04 MB / 0.9858 GB, free: 15.08 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.02017/0.897, allocations: 10.7 MB / 0.9962 GB, free: 4.355 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004807/0.9018, allocations: 127.2 kB / 0.9964 GB, free: 4.23 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.003326/0.9052, allocations: 0.7608 MB / 0.9971 GB, free: 3.465 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.006624/0.9118, allocations: 1.713 MB / 0.9988 GB, free: 1.746 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.0043/0.9162, allocations: 1.297 MB / 1 GB, free: 464 kB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.008/0.9242, allocations: 4.447 MB / 1.004 GB, free: 12 MB / 0.7638 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01998/0.9442, allocations: 12.66 MB / 1.017 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005004/0.9492, allocations: 2.495 MB / 1.019 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004906/0.9542, allocations: 2.655 MB / 1.022 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.001309/0.9555, allocations: 344 kB / 1.022 GB, free: 9.758 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002096/0.9576, allocations: 0.5855 MB / 1.023 GB, free: 9.172 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.002563/0.9602, allocations: 2.307 MB / 1.025 GB, free: 6.859 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.002034/0.9622, allocations: 1.194 MB / 1.026 GB, free: 5.656 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.009795/0.972, allocations: 10.03 MB / 1.036 GB, free: 11.6 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.9721, allocations: 0 / 1.036 GB, free: 11.6 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.713e-06/0.9721, allocations: 0 / 1.036 GB, free: 11.6 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0003372/0.9724, allocations: 4 kB / 1.036 GB, free: 11.59 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01175/0.9842, allocations: 5.098 MB / 1.041 GB, free: 6.426 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.9842, allocations: 8.031 kB / 1.041 GB, free: 6.418 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005225/0.9894, allocations: 1.015 MB / 1.042 GB, free: 5.395 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007349/0.9968, allocations: 3.345 MB / 1.045 GB, free: 1.996 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003264/0.9972, allocations: 423.4 kB / 1.046 GB, free: 1.582 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001393/0.9986, allocations: 0.5429 MB / 1.046 GB, free: 1.039 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01643/1.015, allocations: 9.287 MB / 1.055 GB, free: 7.418 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001216/1.015, allocations: 23.72 kB / 1.055 GB, free: 7.395 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000633/1.016, allocations: 251.9 kB / 1.055 GB, free: 7.148 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005598/1.016, allocations: 418.9 kB / 1.056 GB, free: 6.738 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01267/1.029, allocations: 7.081 MB / 1.063 GB, free: 15.64 MB / 0.8263 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04385/1.073, allocations: 41.34 MB / 1.103 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004479/1.077, allocations: 3.1 MB / 1.106 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001457/1.078, allocations: 22 kB / 1.106 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.85e-05/1.078, allocations: 64.5 kB / 1.106 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=209): time 3.807e-06/1.078, allocations: 0 / 1.106 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of matching and sorting (n=212): time 0.02335/1.101, allocations: 10.46 MB / 1.116 GB, free: 4.812 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.468e-05/1.101, allocations: 77.34 kB / 1.116 GB, free: 4.723 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002603/1.104, allocations: 1.986 MB / 1.118 GB, free: 2.719 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0002934/1.104, allocations: 61.7 kB / 1.118 GB, free: 2.652 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.001416/1.105, allocations: 2.4 MB / 1.121 GB, free: 224 kB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007637/1.106, allocations: 0.724 MB / 1.122 GB, free: 15.48 MB / 0.8888 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/1.106, allocations: 59.94 kB / 1.122 GB, free: 15.43 MB / 0.8888 GB Notification: Performance of setup shared object (initialization): time 0.0002093/1.107, allocations: 419.3 kB / 1.122 GB, free: 15.01 MB / 0.8888 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001986/1.109, allocations: 1.36 MB / 1.123 GB, free: 13.65 MB / 0.8888 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002307/1.111, allocations: 2.084 MB / 1.125 GB, free: 11.25 MB / 0.8888 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00231/1.113, allocations: 1.716 MB / 1.127 GB, free: 9.527 MB / 0.8888 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.214e-05/1.113, allocations: 8 kB / 1.127 GB, free: 9.52 MB / 0.8888 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008246/1.122, allocations: 5.039 MB / 1.132 GB, free: 4.457 MB / 0.8888 GB Notification: Performance of prepare postOptimizeDAE: time 3.643e-05/1.122, allocations: 16 kB / 1.132 GB, free: 4.441 MB / 0.8888 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.959e-05/1.122, allocations: 24 kB / 1.132 GB, free: 4.418 MB / 0.8888 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003586/1.125, allocations: 1.567 MB / 1.134 GB, free: 2.844 MB / 0.8888 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00194/1.127, allocations: 455.2 kB / 1.134 GB, free: 2.398 MB / 0.8888 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02284/1.15, allocations: 17.71 MB / 1.151 GB, free: 156 kB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003183/1.153, allocations: 143.9 kB / 1.151 GB, free: 12 kB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003881/1.154, allocations: 104 kB / 1.152 GB, free: 15.91 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (231): * Single equations (assignments): 227 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,69.4%) 32,(6,66.7%) 24,(4,100.0%) 18,(4,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004799/1.158, allocations: 1.949 MB / 1.153 GB, free: 13.95 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000816/1.159, allocations: 288.7 kB / 1.154 GB, free: 13.66 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007234/1.167, allocations: 4.431 MB / 1.158 GB, free: 9.203 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.382e-05/1.167, allocations: 24.08 kB / 1.158 GB, free: 9.18 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.326e-05/1.167, allocations: 16 kB / 1.158 GB, free: 9.164 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.18e-05/1.167, allocations: 7.969 kB / 1.158 GB, free: 9.156 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01679/1.183, allocations: 9.657 MB / 1.167 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/1.184, allocations: 12 kB / 1.167 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001044/1.185, allocations: 231.6 kB / 1.168 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00342/1.188, allocations: 1.423 MB / 1.169 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001817/1.188, allocations: 44 kB / 1.169 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02267/1.211, allocations: 17.73 MB / 1.186 GB, free: 11.38 MB / 0.9513 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.804e-06/1.211, allocations: 7.938 kB / 1.186 GB, free: 11.37 MB / 0.9513 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007654/1.219, allocations: 4.871 MB / 1.191 GB, free: 6.301 MB / 0.9513 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00178/1.22, allocations: 0.6342 MB / 1.192 GB, free: 5.645 MB / 0.9513 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004554/1.221, allocations: 47.94 kB / 1.192 GB, free: 5.598 MB / 0.9513 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001302/1.222, allocations: 115.9 kB / 1.192 GB, free: 5.484 MB / 0.9513 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004856/1.223, allocations: 181.6 kB / 1.192 GB, free: 5.305 MB / 0.9513 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001305/1.223, allocations: 56 kB / 1.192 GB, free: 5.25 MB / 0.9513 GB Notification: Performance of sorting global known variables: time 0.001886/1.225, allocations: 1.295 MB / 1.193 GB, free: 3.945 MB / 0.9513 GB Notification: Performance of sort global known variables: time 1.41e-07/1.225, allocations: 0 / 1.193 GB, free: 3.945 MB / 0.9513 GB Notification: Performance of remove unused functions: time 0.003785/1.228, allocations: 1.141 MB / 1.195 GB, free: 2.805 MB / 0.9513 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (107): * Single equations (assignments): 103 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,100.0%) 18,(6,66.7%) 24,(4,100.0%) 18,(6,66.7%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003342/1.229, allocations: 160 kB / 1.195 GB, free: 2.637 MB / 0.9513 GB Notification: Performance of simCode: created initialization part: time 0.007972/1.237, allocations: 4.677 MB / 1.199 GB, free: 13.91 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.746e-05/1.237, allocations: 0 / 1.199 GB, free: 13.91 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.005873/1.243, allocations: 2.921 MB / 1.202 GB, free: 10.93 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004532/1.247, allocations: 0.8022 MB / 1.203 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01931/1.267, allocations: 11.22 MB / 1.214 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004059/1.271, allocations: 3.788 MB / 1.218 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.002708/1.274, allocations: 0.5518 MB / 1.218 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004803/1.274, allocations: 155.4 kB / 1.218 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of SimCode: time 5.24e-06/1.274, allocations: 0 / 1.218 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of Templates: time 0.6644/1.938, allocations: 48.78 MB / 1.266 GB, free: 270.1 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches