Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_RL,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_3.load1.v.1.|load_sc_3.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.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,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_3.load1.v.1.|load_sc_3.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.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001428/0.001428, allocations: 100.8 kB / 16.35 MB, free: 5.828 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.001469/0.001469, allocations: 197.7 kB / 17.3 MB, free: 5.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.479/2.479, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002164/0.002164, allocations: 67.28 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.3476, allocations: 153 MB / 1.027 GB, free: 2.027 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.03247/0.3802, allocations: 26.67 MB / 1.053 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01513/0.3953, allocations: 8.082 MB / 1.061 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003458/0.3988, allocations: 115.4 kB / 1.061 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.007525/0.4065, allocations: 2.749 MB / 1.063 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.005564/0.4121, allocations: 1.586 MB / 1.065 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.005251/0.4173, allocations: 1.681 MB / 1.067 GB, free: 9.02 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.008675/0.426, allocations: 6.138 MB / 1.073 GB, free: 2.863 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.628/1.054, allocations: 7.301 MB / 1.08 GB, free: 18.93 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005743/1.06, allocations: 2.574 MB / 1.082 GB, free: 18.88 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006708/1.067, allocations: 2.833 MB / 1.085 GB, free: 18.54 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.002383/1.069, allocations: 0.5079 MB / 1.086 GB, free: 18.54 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004963/1.074, allocations: 1.285 MB / 1.087 GB, free: 18.54 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.004189/1.078, allocations: 2.054 MB / 1.089 GB, free: 18.38 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.006641/1.085, allocations: 2.381 MB / 1.091 GB, free: 17.8 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01462/1.1, allocations: 8.05 MB / 1.099 GB, free: 17.09 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/1.1, allocations: 0 / 1.099 GB, free: 17.09 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.134e-06/1.1, allocations: 1.375 kB / 1.099 GB, free: 17.09 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0003225/1.1, allocations: 0.7031 kB / 1.099 GB, free: 17.09 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.01838/1.118, allocations: 4.228 MB / 1.103 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/1.118, allocations: 9.656 kB / 1.103 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007177/1.126, allocations: 0.8 MB / 1.104 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008122/1.134, allocations: 2.581 MB / 1.106 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002799/1.134, allocations: 276 kB / 1.107 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001842/1.136, allocations: 372.3 kB / 1.107 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0144/1.15, allocations: 5.993 MB / 1.113 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001308/1.15, allocations: 19.03 kB / 1.113 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000503/1.151, allocations: 156.8 kB / 1.113 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006252/1.152, allocations: 282 kB / 1.113 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009927/1.162, allocations: 4.523 MB / 1.118 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03669/1.198, allocations: 27.46 MB / 1.145 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002124/1.2, allocations: 1.12 MB / 1.146 GB, free: 2.512 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002212/1.203, allocations: 1.021 MB / 1.147 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000132/1.203, allocations: 19.34 kB / 1.147 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.332e-05/1.203, allocations: 48.34 kB / 1.147 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=110): time 3.377e-06/1.203, allocations: 4 kB / 1.147 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of matching and sorting (n=131): time 0.02328/1.226, allocations: 9.656 MB / 1.156 GB, free: 12.31 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.011e-05/1.226, allocations: 65.16 kB / 1.156 GB, free: 12.25 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002502/1.229, allocations: 1.495 MB / 1.158 GB, free: 11.45 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.000147/1.229, allocations: 51.34 kB / 1.158 GB, free: 11.4 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.001501/1.23, allocations: 1.668 MB / 1.159 GB, free: 9.934 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005618/1.231, allocations: 473.1 kB / 1.16 GB, free: 9.535 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005845/1.232, allocations: 327.2 kB / 1.16 GB, free: 9.352 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001389/1.232, allocations: 305.1 kB / 1.16 GB, free: 9.051 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001358/1.233, allocations: 0.9127 MB / 1.161 GB, free: 8.578 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00164/1.235, allocations: 1.468 MB / 1.163 GB, free: 7.383 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003007/1.238, allocations: 2.554 MB / 1.165 GB, free: 5.645 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/1.238, allocations: 3.531 kB / 1.165 GB, free: 5.645 MB / 0.8731 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005639/1.243, allocations: 3.282 MB / 1.168 GB, free: 3.98 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.353e-05/1.244, allocations: 14.28 kB / 1.168 GB, free: 3.977 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-05/1.244, allocations: 16.59 kB / 1.168 GB, free: 3.977 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002417/1.246, allocations: 0.7428 MB / 1.169 GB, free: 3.566 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001575/1.248, allocations: 384.5 kB / 1.17 GB, free: 3.492 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01718/1.265, allocations: 17.04 MB / 1.186 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002274/1.267, allocations: 104 kB / 1.186 GB, free: 1.438 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002076/1.267, allocations: 76 kB / 1.186 GB, free: 1.363 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (193): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002847/1.27, allocations: 1.313 MB / 1.188 GB, free: 64 kB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006004/1.271, allocations: 203.2 kB / 1.188 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005207/1.276, allocations: 2.781 MB / 1.191 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.496e-05/1.276, allocations: 16 kB / 1.191 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/1.276, allocations: 6.625 kB / 1.191 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.383e-05/1.276, allocations: 8.109 kB / 1.191 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01157/1.288, allocations: 6.22 MB / 1.197 GB, free: 6.738 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.366e-05/1.288, allocations: 7.984 kB / 1.197 GB, free: 6.73 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001188/1.289, allocations: 238.7 kB / 1.197 GB, free: 6.508 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001996/1.291, allocations: 0.6686 MB / 1.198 GB, free: 5.816 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/1.291, allocations: 32 kB / 1.198 GB, free: 5.785 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01618/1.307, allocations: 16.77 MB / 1.214 GB, free: 3.816 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.076e-05/1.307, allocations: 10.62 kB / 1.214 GB, free: 3.809 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006829/1.314, allocations: 4.002 MB / 1.218 GB, free: 15.72 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001431/1.316, allocations: 454.5 kB / 1.218 GB, free: 15.26 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003758/1.316, allocations: 43.98 kB / 1.218 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009711/1.317, allocations: 83.83 kB / 1.218 GB, free: 15.13 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003463/1.317, allocations: 112.7 kB / 1.219 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.719e-05/1.317, allocations: 48 kB / 1.219 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001478/1.319, allocations: 0.9903 MB / 1.22 GB, free: 14 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/1.319, allocations: 0 / 1.22 GB, free: 14 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002584/1.321, allocations: 0.6836 MB / 1.22 GB, free: 13.32 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.i_p[2]) * 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 (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002827/1.322, allocations: 153.8 kB / 1.22 GB, free: 13.17 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.005356/1.327, allocations: 3.522 MB / 1.224 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/1.327, allocations: 4.062 kB / 1.224 GB, free: 9.598 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.003343/1.33, allocations: 2.297 MB / 1.226 GB, free: 7.211 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003262/1.334, allocations: 0.6717 MB / 1.227 GB, free: 6.566 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01225/1.346, allocations: 6.431 MB / 1.233 GB, free: 80 kB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003064/1.349, allocations: 2.668 MB / 1.236 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001906/1.351, allocations: 489.4 kB / 1.236 GB, free: 12.9 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003673/1.351, allocations: 115.4 kB / 1.236 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of SimCode: time 1.213e-06/1.351, allocations: 4 kB / 1.236 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of Templates: time 0.06162/1.413, allocations: 33.65 MB / 1.269 GB, free: 11.73 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches