Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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_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_latest_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_latest_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.001324/0.001324, allocations: 108.3 kB / 16.27 MB, free: 6.355 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.00134/0.00134, allocations: 188.6 kB / 17.2 MB, free: 5.953 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.33/1.33, allocations: 222.9 MB / 240.9 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.6/2.6, allocations: 469.4 MB / 0.7427 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001288, allocations: 64.28 kB / 0.9088 GB, free: 14.11 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3291, allocations: 159.1 MB / 1.064 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.6024/0.9315, allocations: 37.95 MB / 1.101 GB, free: 4.449 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02245/0.954, allocations: 11 MB / 1.112 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005883/0.96, allocations: 160.6 kB / 1.112 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.01273/0.9728, allocations: 4.342 MB / 1.116 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.009176/0.982, allocations: 2.222 MB / 1.119 GB, free: 8.836 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.007491/0.9896, allocations: 2.165 MB / 1.121 GB, free: 7.605 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01488/1.004, allocations: 9.297 MB / 1.13 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02028/1.025, allocations: 11.35 MB / 1.141 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009621/1.034, allocations: 3.975 MB / 1.145 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01054/1.045, allocations: 4.519 MB / 1.149 GB, free: 10.98 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.004678/1.05, allocations: 0.8217 MB / 1.15 GB, free: 10.98 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007616/1.057, allocations: 1.586 MB / 1.152 GB, free: 10.69 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.008067/1.066, allocations: 3.141 MB / 1.155 GB, free: 9.375 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.01201/1.078, allocations: 3.658 MB / 1.158 GB, free: 6.855 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.02109/1.099, allocations: 12.23 MB / 1.17 GB, free: 13.92 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 8.827e-06/1.099, allocations: 4 kB / 1.17 GB, free: 13.92 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.944e-06/1.099, allocations: 0 / 1.17 GB, free: 13.92 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.000488/1.099, allocations: 0 / 1.17 GB, free: 13.92 MB / 0.8887 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.02404/1.123, allocations: 6.325 MB / 1.176 GB, free: 8.082 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/1.123, allocations: 8.625 kB / 1.176 GB, free: 8.074 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007741/1.131, allocations: 1.075 MB / 1.177 GB, free: 6.992 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008677/1.14, allocations: 3.415 MB / 1.181 GB, free: 3.523 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004706/1.14, allocations: 427.7 kB / 1.181 GB, free: 3.105 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002649/1.143, allocations: 0.5394 MB / 1.182 GB, free: 2.566 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02445/1.168, allocations: 9.377 MB / 1.191 GB, free: 8.855 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002864/1.168, allocations: 23.72 kB / 1.191 GB, free: 8.832 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002282/1.17, allocations: 252 kB / 1.191 GB, free: 8.586 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007163/1.171, allocations: 418.9 kB / 1.191 GB, free: 8.176 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01676/1.188, allocations: 7.131 MB / 1.198 GB, free: 1.031 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.053/1.241, allocations: 41.3 MB / 1.239 GB, free: 3.992 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004588/1.245, allocations: 3.119 MB / 1.242 GB, free: 0.8633 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002828/1.248, allocations: 2.133 MB / 1.244 GB, free: 14.73 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001037/1.248, allocations: 29.91 kB / 1.244 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.169e-05/1.248, allocations: 56.56 kB / 1.244 GB, free: 14.64 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=209): time 3.787e-06/1.248, allocations: 0 / 1.244 GB, free: 14.64 MB / 0.9669 GB Notification: Performance of matching and sorting (n=212): time 0.02418/1.273, allocations: 10.56 MB / 1.254 GB, free: 3.984 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.711e-05/1.273, allocations: 77.34 kB / 1.254 GB, free: 3.898 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002763/1.275, allocations: 2.002 MB / 1.256 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0003508/1.276, allocations: 61.7 kB / 1.256 GB, free: 1.812 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001605/1.277, allocations: 2.408 MB / 1.259 GB, free: 15.37 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008081/1.278, allocations: 0.7279 MB / 1.259 GB, free: 14.63 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007404/1.279, allocations: 477.2 kB / 1.26 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001015/1.279, allocations: 309.1 kB / 1.26 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001918/1.281, allocations: 1.372 MB / 1.261 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002407/1.283, allocations: 2.104 MB / 1.264 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004694/1.288, allocations: 3.77 MB / 1.267 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.29e-05/1.288, allocations: 4 kB / 1.267 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008194/1.296, allocations: 5.069 MB / 1.272 GB, free: 0.8789 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.187e-05/1.296, allocations: 16 kB / 1.272 GB, free: 0.8633 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.969e-05/1.296, allocations: 20 kB / 1.272 GB, free: 0.8438 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003474/1.3, allocations: 1.602 MB / 1.274 GB, free: 15.23 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001756/1.302, allocations: 455.2 kB / 1.274 GB, free: 14.79 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02281/1.325, allocations: 18.58 MB / 1.292 GB, free: 11.63 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002643/1.327, allocations: 151.9 kB / 1.293 GB, free: 11.48 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003633/1.328, allocations: 108 kB / 1.293 GB, free: 11.38 MB / 1.014 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.003915/1.332, allocations: 1.937 MB / 1.294 GB, free: 9.43 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000727/1.332, allocations: 288.7 kB / 1.295 GB, free: 9.145 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007295/1.34, allocations: 4.455 MB / 1.299 GB, free: 4.656 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-05/1.34, allocations: 24.12 kB / 1.299 GB, free: 4.633 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-05/1.34, allocations: 20 kB / 1.299 GB, free: 4.613 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.386e-05/1.34, allocations: 7.969 kB / 1.299 GB, free: 4.605 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01769/1.357, allocations: 9.664 MB / 1.309 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.571e-05/1.358, allocations: 4.062 kB / 1.309 GB, free: 10.79 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/1.359, allocations: 239.6 kB / 1.309 GB, free: 10.56 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003456/1.362, allocations: 1.446 MB / 1.31 GB, free: 9.105 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003253/1.362, allocations: 40 kB / 1.31 GB, free: 9.066 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02363/1.386, allocations: 18.57 MB / 1.328 GB, free: 5.941 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.035e-06/1.386, allocations: 7.938 kB / 1.328 GB, free: 5.934 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007833/1.394, allocations: 4.544 MB / 1.333 GB, free: 1.301 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001817/1.396, allocations: 0.6303 MB / 1.333 GB, free: 0.6484 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006329/1.396, allocations: 47.94 kB / 1.334 GB, free: 0.6016 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001579/1.398, allocations: 111.9 kB / 1.334 GB, free: 0.4922 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006098/1.399, allocations: 189.6 kB / 1.334 GB, free: 312 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001535/1.399, allocations: 56 kB / 1.334 GB, free: 256 kB / 1.045 GB Notification: Performance of sorting global known variables: time 0.002085/1.401, allocations: 1.315 MB / 1.335 GB, free: 14.93 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.31e-07/1.401, allocations: 0 / 1.335 GB, free: 14.93 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.004452/1.405, allocations: 1.141 MB / 1.336 GB, free: 13.79 MB / 1.061 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.0004986/1.406, allocations: 169.8 kB / 1.336 GB, free: 13.61 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.01097/1.417, allocations: 5.911 MB / 1.342 GB, free: 7.652 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-05/1.417, allocations: 0 / 1.342 GB, free: 7.652 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.005108/1.422, allocations: 2.93 MB / 1.345 GB, free: 4.668 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005579/1.428, allocations: 0.8887 MB / 1.346 GB, free: 3.793 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0213/1.449, allocations: 10.16 MB / 1.356 GB, free: 9.539 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006664/1.456, allocations: 3.78 MB / 1.36 GB, free: 5.727 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008801/1.457, allocations: 167.4 kB / 1.36 GB, free: 5.562 MB / 1.076 GB Notification: Performance of SimCode: time 9.02e-07/1.457, allocations: 0 / 1.36 GB, free: 5.562 MB / 1.076 GB Notification: Performance of Templates: time 0.2231/1.68, allocations: 171.8 MB / 1.527 GB, free: 9.855 MB / 1.248 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches