Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009063/0.0009062, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.006462/0.006463, allocations: 171.1 kB / 16.26 MB, free: 6.676 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.501/1.501, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.617/2.617, allocations: 390.9 MB / 0.6663 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003775/0.0003777, allocations: 16 kB / 0.816 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8006/0.801, allocations: 142.4 MB / 0.9551 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04005/0.8411, allocations: 36.74 MB / 0.9909 GB, free: 10.55 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.02005/0.8612, allocations: 10.86 MB / 1.002 GB, free: 15.66 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005472/0.8668, allocations: 131.2 kB / 1.002 GB, free: 15.54 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.003764/0.8705, allocations: 0.7908 MB / 1.002 GB, free: 14.74 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.007355/0.8779, allocations: 2.084 MB / 1.004 GB, free: 12.64 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.006647/0.8846, allocations: 1.786 MB / 1.006 GB, free: 10.86 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01631/0.9009, allocations: 13.18 MB / 1.019 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02696/0.9279, allocations: 14.47 MB / 1.033 GB, free: 15.07 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005953/0.9339, allocations: 2.836 MB / 1.036 GB, free: 12.22 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007992/0.9419, allocations: 3.873 MB / 1.04 GB, free: 8.336 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.002311/0.9443, allocations: 347.9 kB / 1.04 GB, free: 7.996 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003935/0.9482, allocations: 1.33 MB / 1.041 GB, free: 6.664 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.003546/0.9518, allocations: 2.521 MB / 1.044 GB, free: 4.137 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.004556/0.9564, allocations: 2.968 MB / 1.047 GB, free: 1.148 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.01277/0.9692, allocations: 11.67 MB / 1.058 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.9692, allocations: 0 / 1.058 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.256e-06/0.9692, allocations: 0 / 1.058 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.000432/0.9697, allocations: 4 kB / 1.058 GB, free: 5.434 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01414/0.9838, allocations: 5.09 MB / 1.063 GB, free: 280 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.878e-05/0.9839, allocations: 12.02 kB / 1.063 GB, free: 268 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006615/0.9905, allocations: 1.071 MB / 1.064 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007352/0.9979, allocations: 3.419 MB / 1.068 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004349/0.9984, allocations: 423.7 kB / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00213/1.001, allocations: 0.5433 MB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0191/1.02, allocations: 9.385 MB / 1.078 GB, free: 1.031 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000131/1.02, allocations: 23.72 kB / 1.078 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006442/1.02, allocations: 244 kB / 1.078 GB, free: 0.7695 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000583/1.021, allocations: 418.9 kB / 1.078 GB, free: 368 kB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01437/1.035, allocations: 7.123 MB / 1.085 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04995/1.085, allocations: 41.38 MB / 1.126 GB, free: 12.11 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004997/1.09, allocations: 3.1 MB / 1.129 GB, free: 8.988 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003029/1.094, allocations: 2.122 MB / 1.131 GB, free: 6.867 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 9.821e-05/1.094, allocations: 22 kB / 1.131 GB, free: 6.848 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.886e-05/1.094, allocations: 60.56 kB / 1.131 GB, free: 6.777 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=209): time 4.188e-06/1.094, allocations: 0 / 1.131 GB, free: 6.777 MB / 0.8887 GB Notification: Performance of matching and sorting (n=212): time 0.02485/1.119, allocations: 10.62 MB / 1.141 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.345e-05/1.119, allocations: 81.34 kB / 1.141 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0029/1.122, allocations: 2.002 MB / 1.143 GB, free: 9.953 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0002483/1.122, allocations: 65.7 kB / 1.143 GB, free: 9.883 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.001583/1.123, allocations: 2.408 MB / 1.146 GB, free: 7.441 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006606/1.124, allocations: 0.7279 MB / 1.146 GB, free: 6.703 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003056/1.124, allocations: 211.1 kB / 1.147 GB, free: 6.492 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001199/1.125, allocations: 301.1 kB / 1.147 GB, free: 6.195 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002047/1.127, allocations: 1.376 MB / 1.148 GB, free: 4.816 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002615/1.129, allocations: 2.104 MB / 1.15 GB, free: 2.391 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004855/1.134, allocations: 3.766 MB / 1.154 GB, free: 14.31 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.329e-05/1.134, allocations: 11.94 kB / 1.154 GB, free: 14.3 MB / 0.92 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008287/1.142, allocations: 5.076 MB / 1.159 GB, free: 9.199 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.208e-05/1.142, allocations: 12 kB / 1.159 GB, free: 9.188 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.745e-05/1.142, allocations: 24 kB / 1.159 GB, free: 9.164 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003523/1.146, allocations: 1.575 MB / 1.16 GB, free: 7.578 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001665/1.148, allocations: 451.2 kB / 1.161 GB, free: 7.137 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02112/1.169, allocations: 17.1 MB / 1.178 GB, free: 5.492 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003005/1.172, allocations: 147.9 kB / 1.178 GB, free: 5.348 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003977/1.172, allocations: 104 kB / 1.178 GB, free: 5.246 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (231): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004004/1.176, allocations: 1.947 MB / 1.18 GB, free: 3.289 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005945/1.177, allocations: 288.9 kB / 1.18 GB, free: 3.004 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00734/1.184, allocations: 4.455 MB / 1.184 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.842e-05/1.184, allocations: 23.98 kB / 1.184 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-05/1.184, allocations: 20 kB / 1.184 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.776e-05/1.184, allocations: 11.95 kB / 1.184 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01577/1.2, allocations: 9.656 MB / 1.194 GB, free: 4.66 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/1.2, allocations: 4 kB / 1.194 GB, free: 4.656 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00102/1.201, allocations: 235.6 kB / 1.194 GB, free: 4.426 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003587/1.205, allocations: 1.433 MB / 1.195 GB, free: 2.984 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002096/1.205, allocations: 44 kB / 1.196 GB, free: 2.941 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02386/1.229, allocations: 17.11 MB / 1.212 GB, free: 1.297 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.176e-06/1.229, allocations: 4 kB / 1.212 GB, free: 1.293 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007916/1.237, allocations: 4.544 MB / 1.217 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001486/1.238, allocations: 0.6382 MB / 1.217 GB, free: 12 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003157/1.239, allocations: 40 kB / 1.217 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00125/1.24, allocations: 119.9 kB / 1.217 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005232/1.241, allocations: 177.6 kB / 1.218 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001254/1.241, allocations: 59.94 kB / 1.218 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001817/1.242, allocations: 1.319 MB / 1.219 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.5e-07/1.242, allocations: 4 kB / 1.219 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.003317/1.246, allocations: 1.145 MB / 1.22 GB, free: 9.137 MB / 0.9825 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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003211/1.246, allocations: 155 kB / 1.22 GB, free: 8.973 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.00775/1.254, allocations: 4.704 MB / 1.225 GB, free: 4.223 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.341e-05/1.254, allocations: 8 kB / 1.225 GB, free: 4.215 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.004983/1.259, allocations: 2.918 MB / 1.228 GB, free: 1.242 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005764/1.265, allocations: 0.827 MB / 1.228 GB, free: 428 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02209/1.287, allocations: 11.77 MB / 1.24 GB, free: 4.566 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004623/1.292, allocations: 3.686 MB / 1.244 GB, free: 0.8477 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002365/1.294, allocations: 0.5556 MB / 1.244 GB, free: 292 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004224/1.294, allocations: 155.4 kB / 1.244 GB, free: 136 kB / 0.9981 GB Notification: Performance of SimCode: time 1.092e-06/1.294, allocations: 0 / 1.244 GB, free: 136 kB / 0.9981 GB Notification: Performance of Templates: time 0.7773/2.072, allocations: 50.16 MB / 1.293 GB, free: 260.7 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches