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.ACLine_RL_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.ACLine_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.371/1.371, allocations: 251.9 MB / 266.9 MB, free: 11.02 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.001173/0.001173, allocations: 186.7 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.014/2.014, allocations: 205.4 MB / 0.5775 GB, free: 20.29 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.0009078/0.000908, allocations: 84.38 kB / 0.6821 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003557/0.0003557, allocations: 11.12 kB / 0.7963 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2569, allocations: 106.3 MB / 0.9001 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8654/1.122, allocations: 190.1 MB / 1.086 GB, free: 52.78 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003573/1.123, allocations: 99.44 kB / 1.086 GB, free: 52.78 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.2466/1.369, allocations: 113.7 MB / 1.197 GB, free: 6.332 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.066e-06/1.369, allocations: 0 / 1.197 GB, free: 6.332 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0002853/1.37, allocations: 75.67 kB / 1.197 GB, free: 6.262 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: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.009747/1.38, allocations: 2.895 MB / 1.2 GB, free: 3.523 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/1.38, allocations: 8.031 kB / 1.2 GB, free: 3.516 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004918/1.385, allocations: 0.6711 MB / 1.2 GB, free: 2.848 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005326/1.39, allocations: 2.061 MB / 1.202 GB, free: 1.238 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001648/1.39, allocations: 220.9 kB / 1.203 GB, free: 1.113 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007961/1.391, allocations: 302.2 kB / 1.203 GB, free: 0.918 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009486/1.4, allocations: 4.61 MB / 1.207 GB, free: 12.66 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.313e-05/1.4, allocations: 15.84 kB / 1.207 GB, free: 12.65 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000363/1.401, allocations: 131.7 kB / 1.208 GB, free: 12.52 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002325/1.401, allocations: 169.7 kB / 1.208 GB, free: 12.36 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005885/1.407, allocations: 3.399 MB / 1.211 GB, free: 8.945 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02524/1.432, allocations: 21.61 MB / 1.232 GB, free: 1.438 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001706/1.434, allocations: 1.284 MB / 1.233 GB, free: 152 kB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 5.585e-05/1.434, allocations: 13 kB / 1.233 GB, free: 140 kB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/1.434, allocations: 43.56 kB / 1.233 GB, free: 88 kB / 0.7292 GB Notification: Performance of pre-optimization done (n=107): time 4.228e-06/1.434, allocations: 0 / 1.233 GB, free: 88 kB / 0.7292 GB Notification: Performance of matching and sorting (n=138): time 0.02403/1.458, allocations: 8.586 MB / 1.242 GB, free: 7.449 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.46e-05/1.458, allocations: 68.72 kB / 1.242 GB, free: 7.367 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001521/1.46, allocations: 0.9597 MB / 1.243 GB, free: 6.402 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0001054/1.46, allocations: 49.7 kB / 1.243 GB, free: 6.348 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009326/1.461, allocations: 1.311 MB / 1.244 GB, free: 5.023 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004555/1.461, allocations: 475.1 kB / 1.245 GB, free: 4.566 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.501e-05/1.461, allocations: 32 kB / 1.245 GB, free: 4.535 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001725/1.462, allocations: 381.8 kB / 1.245 GB, free: 4.156 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001159/1.463, allocations: 0.8784 MB / 1.246 GB, free: 3.277 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/1.464, allocations: 1.335 MB / 1.247 GB, free: 1.742 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001489/1.466, allocations: 1.111 MB / 1.248 GB, free: 0.6289 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-06/1.466, allocations: 4 kB / 1.248 GB, free: 0.625 MB / 0.7448 GB Notification: Performance of matching and sorting (n=205) (initialization): time 0.005846/1.472, allocations: 3.407 MB / 1.252 GB, free: 13.2 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 3.649e-05/1.472, allocations: 14.19 kB / 1.252 GB, free: 13.19 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.221e-05/1.472, allocations: 12 kB / 1.252 GB, free: 13.18 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002962/1.475, allocations: 1.149 MB / 1.253 GB, free: 12.02 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009514/1.476, allocations: 263.6 kB / 1.253 GB, free: 11.76 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.016/1.492, allocations: 12.96 MB / 1.266 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001656/1.493, allocations: 91.97 kB / 1.266 GB, free: 14.32 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001575/1.494, allocations: 64 kB / 1.266 GB, free: 14.26 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (134): * Single equations (assignments): 131 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,84.0%) 17,(5,84.0%) 17,(5,88.0%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00258/1.496, allocations: 1.126 MB / 1.267 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004678/1.497, allocations: 158.1 kB / 1.267 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005831/1.502, allocations: 3.122 MB / 1.27 GB, free: 9.812 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-05/1.502, allocations: 19.95 kB / 1.27 GB, free: 9.793 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.081e-05/1.502, allocations: 12 kB / 1.27 GB, free: 9.781 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/1.503, allocations: 3.984 kB / 1.27 GB, free: 9.777 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01144/1.514, allocations: 6.114 MB / 1.276 GB, free: 3.555 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/1.514, allocations: 4 kB / 1.276 GB, free: 3.551 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006084/1.515, allocations: 151.8 kB / 1.276 GB, free: 3.402 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002653/1.517, allocations: 1.024 MB / 1.277 GB, free: 2.371 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001068/1.517, allocations: 28.38 kB / 1.277 GB, free: 2.344 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0161/1.534, allocations: 12.66 MB / 1.29 GB, free: 5.297 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/1.534, allocations: 4 kB / 1.29 GB, free: 5.293 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005745/1.539, allocations: 3.338 MB / 1.293 GB, free: 1.727 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001247/1.541, allocations: 415.1 kB / 1.293 GB, free: 1.301 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001849/1.541, allocations: 27.98 kB / 1.293 GB, free: 1.273 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007379/1.542, allocations: 79.91 kB / 1.293 GB, free: 1.195 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003942/1.542, allocations: 124.7 kB / 1.294 GB, free: 1.074 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.345e-05/1.542, allocations: 36.38 kB / 1.294 GB, free: 1.039 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.001137/1.543, allocations: 0.7476 MB / 1.294 GB, free: 296 kB / 0.7917 GB Notification: Performance of sort global known variables: time 1.21e-07/1.543, allocations: 0 / 1.294 GB, free: 296 kB / 0.7917 GB Notification: Performance of remove unused functions: time 0.002481/1.546, allocations: 0.6645 MB / 1.295 GB, free: 15.62 MB / 0.8073 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 (70): * Single equations (assignments): 67 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,84.0%) 17,(5,88.0%) 25,(5,84.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002858/1.546, allocations: 151.5 kB / 1.295 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.004946/1.551, allocations: 3.073 MB / 1.298 GB, free: 12.35 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/1.551, allocations: 0 / 1.298 GB, free: 12.35 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.003094/1.554, allocations: 1.944 MB / 1.3 GB, free: 10.37 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002328/1.556, allocations: 426.8 kB / 1.3 GB, free: 9.961 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01074/1.567, allocations: 6.395 MB / 1.307 GB, free: 3.484 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00276/1.57, allocations: 2.391 MB / 1.309 GB, free: 1.062 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.001353/1.571, allocations: 346 kB / 1.309 GB, free: 0.7188 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002237/1.572, allocations: 87.44 kB / 1.309 GB, free: 0.6328 MB / 0.8073 GB Notification: Performance of SimCode: time 4.018e-06/1.572, allocations: 4 kB / 1.309 GB, free: 0.6289 MB / 0.8073 GB Notification: Performance of Templates: time 0.05585/1.628, allocations: 29.15 MB / 1.338 GB, free: 3.824 MB / 0.8386 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches