Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.366/2.366, allocations: 393.5 MB / 408.4 MB, free: 11.1 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 182.8 kB / 0.4902 GB, free: 2.297 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.759/1.759, allocations: 223.1 MB / 0.7992 GB, free: 14.67 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009585/0.0009584, allocations: 116 kB / 0.9397 GB, free: 1.848 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004001/0.0003999, allocations: 7.5 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3519, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9369/1.289, allocations: 205.2 MB / 1.43 GB, free: 192.4 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003359/1.289, allocations: 104.5 kB / 1.43 GB, free: 192.4 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 0.1821/1.471, allocations: 77.28 MB / 1.505 GB, free: 141.6 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.354e-06/1.471, allocations: 0 / 1.505 GB, free: 141.6 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0001554/1.472, allocations: 39.98 kB / 1.505 GB, free: 141.5 MB / 0.9167 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.005964/1.478, allocations: 1.788 MB / 1.507 GB, free: 139.7 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.896e-05/1.478, allocations: 12.56 kB / 1.507 GB, free: 139.7 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003748/1.481, allocations: 0.6689 MB / 1.508 GB, free: 139 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003677/1.485, allocations: 1.242 MB / 1.509 GB, free: 137.7 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/1.485, allocations: 123.2 kB / 1.509 GB, free: 137.6 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007857/1.486, allocations: 163.9 kB / 1.509 GB, free: 137.4 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006339/1.492, allocations: 2.648 MB / 1.512 GB, free: 134.7 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.136e-05/1.493, allocations: 3.938 kB / 1.512 GB, free: 134.7 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003068/1.493, allocations: 67.98 kB / 1.512 GB, free: 134.7 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001052/1.493, allocations: 91.22 kB / 1.512 GB, free: 134.6 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004284/1.497, allocations: 2.222 MB / 1.514 GB, free: 132.4 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0144/1.512, allocations: 10.91 MB / 1.525 GB, free: 120.6 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/1.513, allocations: 0.7571 MB / 1.525 GB, free: 119.8 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001137/1.513, allocations: 89.48 kB / 1.525 GB, free: 119.7 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/1.513, allocations: 34.94 kB / 1.525 GB, free: 119.6 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=46): time 3.857e-06/1.513, allocations: 0 / 1.525 GB, free: 119.6 MB / 0.9167 GB Notification: Performance of matching and sorting (n=70): time 0.02296/1.536, allocations: 8.404 MB / 1.534 GB, free: 111.2 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.346e-05/1.536, allocations: 89.59 kB / 1.534 GB, free: 111.1 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00135/1.537, allocations: 0.8587 MB / 1.535 GB, free: 110.2 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001322/1.538, allocations: 41.7 kB / 1.535 GB, free: 110.1 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004106/1.538, allocations: 0.7736 MB / 1.535 GB, free: 109.4 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.000197/1.538, allocations: 244.6 kB / 1.536 GB, free: 109.1 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.985e-05/1.538, allocations: 20 kB / 1.536 GB, free: 109.1 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001406/1.538, allocations: 402.7 kB / 1.536 GB, free: 108.7 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001032/1.539, allocations: 0.8027 MB / 1.537 GB, free: 107.9 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001191/1.541, allocations: 1.164 MB / 1.538 GB, free: 106.6 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001406/1.542, allocations: 0.9946 MB / 1.539 GB, free: 105.6 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.244e-05/1.542, allocations: 4 kB / 1.539 GB, free: 105.6 MB / 0.9167 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.007737/1.55, allocations: 3.511 MB / 1.542 GB, free: 102 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001058/1.551, allocations: 4.276 MB / 1.547 GB, free: 97.43 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.49e-05/1.551, allocations: 12 kB / 1.547 GB, free: 97.41 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006538/1.558, allocations: 1.861 MB / 1.548 GB, free: 95.55 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/1.559, allocations: 219.6 kB / 1.549 GB, free: 95.33 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008313/1.567, allocations: 7.042 MB / 1.555 GB, free: 88.13 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001478/1.568, allocations: 187.6 kB / 1.556 GB, free: 87.95 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001847/1.569, allocations: 47.98 kB / 1.556 GB, free: 87.9 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/1.569, allocations: 4 kB / 1.556 GB, free: 87.89 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005854/1.575, allocations: 2.865 MB / 1.559 GB, free: 85.02 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.361e-05/1.575, allocations: 12 kB / 1.559 GB, free: 85.01 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003989/1.579, allocations: 1.148 MB / 1.56 GB, free: 83.86 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001014/1.58, allocations: 299.5 kB / 1.56 GB, free: 83.57 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006857/1.587, allocations: 5.851 MB / 1.566 GB, free: 77.59 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001269/1.588, allocations: 159.7 kB / 1.566 GB, free: 77.43 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001359/1.588, allocations: 44 kB / 1.566 GB, free: 77.39 MB / 0.9167 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.001614/1.59, allocations: 0.8975 MB / 1.567 GB, free: 76.48 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002516/1.59, allocations: 94.95 kB / 1.567 GB, free: 76.39 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007016/1.597, allocations: 3.109 MB / 1.57 GB, free: 73.25 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/1.597, allocations: 4 kB / 1.57 GB, free: 73.25 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.288e-06/1.597, allocations: 7.953 kB / 1.57 GB, free: 73.24 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/1.597, allocations: 3.984 kB / 1.57 GB, free: 73.24 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/1.607, allocations: 5.169 MB / 1.575 GB, free: 67.98 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.286e-06/1.607, allocations: 4 kB / 1.575 GB, free: 67.97 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004152/1.608, allocations: 112.1 kB / 1.575 GB, free: 67.86 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005957/1.614, allocations: 1.781 MB / 1.577 GB, free: 66.07 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.253e-05/1.614, allocations: 12 kB / 1.577 GB, free: 66.06 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01183/1.626, allocations: 10.02 MB / 1.587 GB, free: 55.77 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/1.626, allocations: 0 / 1.587 GB, free: 55.77 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006669/1.632, allocations: 3.102 MB / 1.59 GB, free: 52.57 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008829/1.633, allocations: 332 kB / 1.59 GB, free: 52.23 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002928/1.634, allocations: 16 kB / 1.59 GB, free: 52.21 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009609/1.635, allocations: 151.8 kB / 1.59 GB, free: 52.07 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002746/1.635, allocations: 60.44 kB / 1.59 GB, free: 52.01 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.065e-05/1.635, allocations: 16 kB / 1.59 GB, free: 51.99 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.001041/1.636, allocations: 0.6746 MB / 1.591 GB, free: 51.32 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.71e-07/1.636, allocations: 4 kB / 1.591 GB, free: 51.32 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.002905/1.639, allocations: 0.7226 MB / 1.591 GB, free: 50.6 MB / 0.9167 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.0003916/1.639, allocations: 175.1 kB / 1.592 GB, free: 50.42 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.005764/1.645, allocations: 3.61 MB / 1.595 GB, free: 46.79 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/1.645, allocations: 4 kB / 1.595 GB, free: 46.78 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.001857/1.647, allocations: 1.348 MB / 1.596 GB, free: 45.41 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/1.648, allocations: 242.5 kB / 1.597 GB, free: 45.17 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006115/1.654, allocations: 4.064 MB / 1.601 GB, free: 41.06 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001615/1.656, allocations: 1.753 MB / 1.602 GB, free: 39.27 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.001306/1.657, allocations: 0.5186 MB / 1.603 GB, free: 38.75 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001862/1.657, allocations: 59.38 kB / 1.603 GB, free: 38.69 MB / 0.9167 GB Notification: Performance of SimCode: time 9.92e-07/1.657, allocations: 0 / 1.603 GB, free: 38.69 MB / 0.9167 GB Notification: Performance of Templates: time 0.04227/1.7, allocations: 28.02 MB / 1.63 GB, free: 10.83 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches