Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.|load.terminal.phase.4..v.1.|load.terminal.phase.4..v.2.|load.terminal.phase.4..i.1.|load.terminal.phase.4..i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.|load.terminal.phase.4..v.1.|load.terminal.phase.4..v.2.|load.terminal.phase.4..i.1.|load.terminal.phase.4..i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.462/1.462, allocations: 249.5 MB / 257 MB, free: 6.836 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 180 kB / 316.3 MB, free: 3.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.413/1.413, allocations: 205.3 MB / 0.5671 GB, free: 15.92 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008295/0.0008297, allocations: 85.12 kB / 0.6714 GB, free: 5.043 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.728e-05/1.773e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1726/0.1726, allocations: 106.3 MB / 0.8852 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6517/0.8244, allocations: 186.5 MB / 1.067 GB, free: 1.66 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002526/0.8247, allocations: 96.62 kB / 1.067 GB, free: 1.609 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.1501/0.9748, allocations: 66.07 MB / 1.132 GB, free: 8.953 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.443e-06/0.9749, allocations: 0 / 1.132 GB, free: 8.953 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 0.00011/0.975, allocations: 36 kB / 1.132 GB, free: 8.918 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 425 * Number of variables: 425 Notification: Performance of Generate backend data structure: time 0.003173/0.9782, allocations: 1.675 MB / 1.134 GB, free: 7.191 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.9782, allocations: 8.031 kB / 1.134 GB, free: 7.184 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002889/0.9811, allocations: 0.6573 MB / 1.134 GB, free: 6.523 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002173/0.9833, allocations: 1.246 MB / 1.136 GB, free: 5.234 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.767e-05/0.9834, allocations: 52 kB / 1.136 GB, free: 5.184 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002508/0.9836, allocations: 95.91 kB / 1.136 GB, free: 5.09 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003052/0.9867, allocations: 1.935 MB / 1.138 GB, free: 3.152 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003714/0.9904, allocations: 2.376 MB / 1.14 GB, free: 0.7148 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.512e-05/0.9905, allocations: 7.938 kB / 1.14 GB, free: 0.707 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001529/0.9906, allocations: 0 / 1.14 GB, free: 0.707 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000102/0.9908, allocations: 87.22 kB / 1.14 GB, free: 0.6211 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01219/1.003, allocations: 10.51 MB / 1.15 GB, free: 5.227 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009693/1.004, allocations: 0.7181 MB / 1.151 GB, free: 4.5 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006246/1.005, allocations: 0.513 MB / 1.151 GB, free: 3.984 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001067/1.005, allocations: 85.48 kB / 1.152 GB, free: 3.883 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.968e-05/1.005, allocations: 42.89 kB / 1.152 GB, free: 3.832 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=46): time 3.968e-06/1.005, allocations: 0 / 1.152 GB, free: 3.832 MB / 0.7605 GB Notification: Performance of matching and sorting (n=72): time 0.009567/1.014, allocations: 4.365 MB / 1.156 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.012e-05/1.014, allocations: 89.83 kB / 1.156 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009537/1.015, allocations: 0.7571 MB / 1.157 GB, free: 14.58 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 7.275e-05/1.015, allocations: 25.7 kB / 1.157 GB, free: 14.55 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004725/1.016, allocations: 0.7774 MB / 1.157 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002077/1.016, allocations: 244.4 kB / 1.158 GB, free: 13.51 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.843e-05/1.016, allocations: 0 / 1.158 GB, free: 13.51 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001704/1.016, allocations: 390.8 kB / 1.158 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009115/1.017, allocations: 0.7404 MB / 1.159 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001132/1.018, allocations: 1.099 MB / 1.16 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001552/1.02, allocations: 1.082 MB / 1.161 GB, free: 10.04 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.592e-06/1.02, allocations: 4 kB / 1.161 GB, free: 10.04 MB / 0.7761 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.00672/1.027, allocations: 3.24 MB / 1.164 GB, free: 6.781 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.001541/1.028, allocations: 4.262 MB / 1.168 GB, free: 2.184 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/1.028, allocations: 12 kB / 1.168 GB, free: 2.172 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004772/1.033, allocations: 1.405 MB / 1.17 GB, free: 0.7617 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008107/1.034, allocations: 223.6 kB / 1.17 GB, free: 0.543 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009864/1.044, allocations: 7.018 MB / 1.177 GB, free: 9.387 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001438/1.045, allocations: 175.6 kB / 1.177 GB, free: 9.215 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002062/1.046, allocations: 47.98 kB / 1.177 GB, free: 9.168 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/1.046, allocations: 4 kB / 1.177 GB, free: 9.164 MB / 0.7917 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002755/1.048, allocations: 1.67 MB / 1.179 GB, free: 7.492 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.483e-05/1.048, allocations: 15.94 kB / 1.179 GB, free: 7.477 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.356e-05/1.048, allocations: 19.95 kB / 1.179 GB, free: 7.457 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/1.05, allocations: 343.5 kB / 1.179 GB, free: 7.121 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.158e-05/1.05, allocations: 23.92 kB / 1.179 GB, free: 7.098 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009101/1.051, allocations: 127.7 kB / 1.179 GB, free: 6.973 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.922e-05/1.051, allocations: 47.94 kB / 1.179 GB, free: 6.926 MB / 0.7917 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 14} * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003072/1.051, allocations: 136.7 kB / 1.179 GB, free: 6.785 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002304/1.051, allocations: 83.06 kB / 1.179 GB, free: 6.703 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006956/1.058, allocations: 2.999 MB / 1.182 GB, free: 3.676 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/1.058, allocations: 11.98 kB / 1.182 GB, free: 3.664 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/1.058, allocations: 4 kB / 1.182 GB, free: 3.66 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/1.058, allocations: 3.984 kB / 1.182 GB, free: 3.656 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01212/1.07, allocations: 5.269 MB / 1.187 GB, free: 14.28 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.177e-05/1.07, allocations: 4.25 kB / 1.187 GB, free: 14.28 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004611/1.071, allocations: 115.7 kB / 1.188 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005255/1.076, allocations: 1.612 MB / 1.189 GB, free: 12.55 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.01e-05/1.076, allocations: 4 kB / 1.189 GB, free: 12.54 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01317/1.089, allocations: 9.149 MB / 1.198 GB, free: 3.168 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.305e-06/1.09, allocations: 4 kB / 1.198 GB, free: 3.164 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009022/1.099, allocations: 2.978 MB / 1.201 GB, free: 88 kB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/1.1, allocations: 327.9 kB / 1.201 GB, free: 15.75 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003192/1.1, allocations: 7.938 kB / 1.201 GB, free: 15.74 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002004/1.102, allocations: 171.7 kB / 1.201 GB, free: 15.57 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003782/1.102, allocations: 68.41 kB / 1.201 GB, free: 15.5 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001151/1.103, allocations: 20 kB / 1.202 GB, free: 15.48 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.001466/1.104, allocations: 0.581 MB / 1.202 GB, free: 14.91 MB / 0.823 GB Notification: Performance of sort global known variables: time 4.81e-07/1.104, allocations: 0 / 1.202 GB, free: 14.91 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.003929/1.108, allocations: 0.6171 MB / 1.203 GB, free: 14.29 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 42 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 13} * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.000531/1.109, allocations: 171.2 kB / 1.203 GB, free: 14.11 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.008419/1.117, allocations: 2.911 MB / 1.206 GB, free: 11.2 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/1.117, allocations: 0 / 1.206 GB, free: 11.2 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.004353/1.121, allocations: 1.335 MB / 1.207 GB, free: 9.844 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001795/1.123, allocations: 206.4 kB / 1.207 GB, free: 9.645 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008029/1.131, allocations: 2.799 MB / 1.21 GB, free: 6.785 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002502/1.134, allocations: 1.755 MB / 1.212 GB, free: 5 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.002973/1.137, allocations: 0.6314 MB / 1.212 GB, free: 4.363 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00025/1.137, allocations: 51.42 kB / 1.212 GB, free: 4.316 MB / 0.823 GB Notification: Performance of SimCode: time 1.102e-06/1.137, allocations: 0 / 1.212 GB, free: 4.316 MB / 0.823 GB Notification: Performance of Templates: time 0.06372/1.201, allocations: 24.14 MB / 1.236 GB, free: 12.29 MB / 0.8542 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches