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.421/1.421, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001218/0.001218, allocations: 184.8 kB / 326.5 MB, free: 2.25 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.067/2.067, allocations: 205.4 MB / 0.5775 GB, free: 20.27 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.0009224/0.0009223, allocations: 91.53 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003364/0.0003364, allocations: 10.97 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2475/0.2478, allocations: 106.3 MB / 0.9001 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8034/1.051, allocations: 186.3 MB / 1.082 GB, free: 52.67 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003074/1.052, allocations: 101.3 kB / 1.082 GB, free: 52.67 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.1541/1.206, allocations: 66.68 MB / 1.147 GB, free: 33.3 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.775e-06/1.206, allocations: 0 / 1.147 GB, free: 33.3 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0002217/1.206, allocations: 38.78 kB / 1.147 GB, free: 33.3 MB / 0.698 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.006864/1.213, allocations: 1.79 MB / 1.149 GB, free: 32.18 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/1.213, allocations: 7.594 kB / 1.149 GB, free: 32.18 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003895/1.217, allocations: 0.661 MB / 1.15 GB, free: 31.89 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002938/1.22, allocations: 1.25 MB / 1.151 GB, free: 31.38 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.337e-05/1.22, allocations: 118.6 kB / 1.151 GB, free: 31.38 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003702/1.22, allocations: 157.8 kB / 1.151 GB, free: 31.38 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004248/1.225, allocations: 2.643 MB / 1.154 GB, free: 30.66 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.305e-05/1.225, allocations: 5.188 kB / 1.154 GB, free: 30.66 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001846/1.225, allocations: 72.89 kB / 1.154 GB, free: 30.65 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.654e-05/1.225, allocations: 96.14 kB / 1.154 GB, free: 30.63 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003124/1.228, allocations: 2.213 MB / 1.156 GB, free: 30.28 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01133/1.239, allocations: 10.89 MB / 1.167 GB, free: 23.03 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009733/1.24, allocations: 0.7605 MB / 1.167 GB, free: 22.86 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000104/1.24, allocations: 97.05 kB / 1.168 GB, free: 22.76 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/1.241, allocations: 46.06 kB / 1.168 GB, free: 22.71 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 2.996e-06/1.241, allocations: 0 / 1.168 GB, free: 22.71 MB / 0.698 GB Notification: Performance of matching and sorting (n=70): time 0.02141/1.262, allocations: 8.392 MB / 1.176 GB, free: 19.54 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.371e-05/1.262, allocations: 87.27 kB / 1.176 GB, free: 19.44 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001158/1.263, allocations: 0.8556 MB / 1.177 GB, free: 19.17 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 9.871e-05/1.263, allocations: 44.08 kB / 1.177 GB, free: 19.13 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003525/1.264, allocations: 0.7706 MB / 1.178 GB, free: 18.6 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001694/1.264, allocations: 246.1 kB / 1.178 GB, free: 18.43 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.488e-05/1.264, allocations: 20.03 kB / 1.178 GB, free: 18.43 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001143/1.264, allocations: 398.8 kB / 1.178 GB, free: 18.09 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000937/1.265, allocations: 0.8046 MB / 1.179 GB, free: 17.94 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001087/1.266, allocations: 1.163 MB / 1.18 GB, free: 17.34 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001116/1.267, allocations: 0.9973 MB / 1.181 GB, free: 17.17 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.461e-06/1.267, allocations: 3.188 kB / 1.181 GB, free: 17.17 MB / 0.698 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.006727/1.274, allocations: 3.505 MB / 1.184 GB, free: 16.06 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007235/1.275, allocations: 4.272 MB / 1.189 GB, free: 11.53 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.989e-05/1.275, allocations: 16 kB / 1.189 GB, free: 11.52 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006125/1.281, allocations: 1.871 MB / 1.191 GB, free: 9.863 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009296/1.282, allocations: 219.1 kB / 1.191 GB, free: 9.652 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008198/1.29, allocations: 7.038 MB / 1.198 GB, free: 3.98 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001536/1.292, allocations: 191.6 kB / 1.198 GB, free: 3.793 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/1.292, allocations: 47.98 kB / 1.198 GB, free: 3.746 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/1.292, allocations: 4 kB / 1.198 GB, free: 3.742 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005538/1.297, allocations: 2.865 MB / 1.201 GB, free: 0.8711 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.158e-05/1.297, allocations: 8 kB / 1.201 GB, free: 0.8633 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003936/1.301, allocations: 1.154 MB / 1.202 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001162/1.302, allocations: 295.5 kB / 1.202 GB, free: 15.42 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008675/1.311, allocations: 5.842 MB / 1.208 GB, free: 9.441 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001417/1.313, allocations: 155.8 kB / 1.208 GB, free: 9.289 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.983e-05/1.313, allocations: 47.98 kB / 1.208 GB, free: 9.242 MB / 0.7136 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 95 * 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%) 12} * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.001882/1.315, allocations: 0.8985 MB / 1.209 GB, free: 8.332 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002331/1.315, allocations: 90.97 kB / 1.209 GB, free: 8.242 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007859/1.323, allocations: 3.109 MB / 1.212 GB, free: 5.117 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/1.323, allocations: 8 kB / 1.212 GB, free: 5.109 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/1.323, allocations: 0 / 1.212 GB, free: 5.109 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/1.323, allocations: 3.984 kB / 1.212 GB, free: 5.105 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01162/1.334, allocations: 5.175 MB / 1.217 GB, free: 15.85 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.725e-06/1.334, allocations: 4 kB / 1.217 GB, free: 15.84 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004699/1.335, allocations: 108.1 kB / 1.217 GB, free: 15.74 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006479/1.341, allocations: 1.784 MB / 1.219 GB, free: 13.95 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001326/1.342, allocations: 15.94 kB / 1.219 GB, free: 13.93 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01425/1.356, allocations: 9.99 MB / 1.229 GB, free: 3.68 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/1.356, allocations: 7.953 kB / 1.229 GB, free: 3.672 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007531/1.363, allocations: 3.106 MB / 1.232 GB, free: 476 kB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009447/1.364, allocations: 335.9 kB / 1.232 GB, free: 120 kB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001285/1.365, allocations: 12 kB / 1.232 GB, free: 108 kB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008482/1.365, allocations: 147.8 kB / 1.232 GB, free: 15.96 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002741/1.366, allocations: 60.47 kB / 1.232 GB, free: 15.9 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.885e-05/1.366, allocations: 20 kB / 1.232 GB, free: 15.88 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.001056/1.367, allocations: 0.6746 MB / 1.233 GB, free: 15.21 MB / 0.7448 GB Notification: Performance of sort global known variables: time 3.31e-07/1.367, allocations: 4 kB / 1.233 GB, free: 15.21 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.002606/1.369, allocations: 0.6953 MB / 1.234 GB, free: 14.52 MB / 0.7448 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 40 * 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%) 12} * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004228/1.37, allocations: 182.6 kB / 1.234 GB, free: 14.34 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.006754/1.377, allocations: 3.598 MB / 1.237 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/1.377, allocations: 4.062 kB / 1.237 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.002446/1.379, allocations: 1.344 MB / 1.239 GB, free: 9.344 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0014/1.381, allocations: 226.1 kB / 1.239 GB, free: 9.125 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006761/1.387, allocations: 4.074 MB / 1.243 GB, free: 5 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001739/1.389, allocations: 1.75 MB / 1.244 GB, free: 3.215 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.001662/1.391, allocations: 0.5147 MB / 1.245 GB, free: 2.695 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001828/1.391, allocations: 59.42 kB / 1.245 GB, free: 2.637 MB / 0.7448 GB Notification: Performance of SimCode: time 1.623e-06/1.391, allocations: 0 / 1.245 GB, free: 2.637 MB / 0.7448 GB Notification: Performance of Templates: time 0.04559/1.437, allocations: 27.82 MB / 1.272 GB, free: 7.023 MB / 0.7761 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