Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.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_RLC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RLCLine_1.terminal_n.phase.1..i.1.|RLCLine_1.terminal_n.phase.1..i.2.|RLCLine_sc.terminal_n.phase.1..i.1.|RLCLine_sc.terminal_n.phase.1..i.2.|RLCLine_2a.terminal_n.phase.1..i.1.|RLCLine_2a.terminal_n.phase.1..i.2.|RLCLine_3a.terminal_n.phase.1..i.1.|RLCLine_3a.terminal_n.phase.1..i.2.|RLCLine_3b.terminal_n.phase.1..i.1.|RLCLine_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RLCLine_1.terminal_n.phase.1..i.1.|RLCLine_1.terminal_n.phase.1..i.2.|RLCLine_sc.terminal_n.phase.1..i.1.|RLCLine_sc.terminal_n.phase.1..i.2.|RLCLine_2a.terminal_n.phase.1..i.1.|RLCLine_2a.terminal_n.phase.1..i.2.|RLCLine_3a.terminal_n.phase.1..i.1.|RLCLine_3a.terminal_n.phase.1..i.2.|RLCLine_3b.terminal_n.phase.1..i.1.|RLCLine_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 104 kB / 16.41 MB, free: 6.492 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.001222/0.001222, allocations: 193.4 kB / 17.34 MB, free: 5.762 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.406/1.406, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.667/2.667, allocations: 461.9 MB / 0.7355 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 68.11 kB / 1.055 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9008/0.9022, allocations: 157.4 MB / 1.208 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC): time 0.04085/0.9431, allocations: 37.6 MB / 1.245 GB, free: 7.93 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.02323/0.9664, allocations: 13.04 MB / 1.258 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004813/0.9712, allocations: 175.1 kB / 1.258 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.01033/0.9816, allocations: 3.873 MB / 1.262 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.007462/0.9891, allocations: 2.487 MB / 1.264 GB, free: 4.301 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.007455/0.9966, allocations: 2.714 MB / 1.267 GB, free: 1.586 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.01348/1.01, allocations: 9.571 MB / 1.276 GB, free: 7.984 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01855/1.029, allocations: 10.49 MB / 1.286 GB, free: 13.36 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007886/1.037, allocations: 4.074 MB / 1.29 GB, free: 9.277 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008357/1.045, allocations: 4.377 MB / 1.295 GB, free: 4.887 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.002879/1.048, allocations: 0.7695 MB / 1.296 GB, free: 4.117 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005958/1.054, allocations: 1.783 MB / 1.297 GB, free: 2.332 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.005674/1.06, allocations: 3.033 MB / 1.3 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.008468/1.068, allocations: 3.587 MB / 1.304 GB, free: 11.69 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.01778/1.086, allocations: 11.85 MB / 1.315 GB, free: 15.81 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 9.198e-06/1.086, allocations: 3.938 kB / 1.315 GB, free: 15.8 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.074e-06/1.086, allocations: 4 kB / 1.315 GB, free: 15.8 MB / 1.045 GB Notification: Performance of Transformations before backend: time 0.0004383/1.086, allocations: 0 / 1.315 GB, free: 15.8 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1394 * Number of variables: 1394 Notification: Performance of Generate backend data structure: time 0.01993/1.106, allocations: 6.362 MB / 1.321 GB, free: 9.363 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/1.106, allocations: 12.03 kB / 1.322 GB, free: 9.352 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009536/1.116, allocations: 1.297 MB / 1.323 GB, free: 8.047 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01031/1.126, allocations: 3.794 MB / 1.326 GB, free: 4.176 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004028/1.127, allocations: 378.5 kB / 1.327 GB, free: 3.805 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002306/1.129, allocations: 0.4924 MB / 1.327 GB, free: 3.312 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02147/1.151, allocations: 8.886 MB / 1.336 GB, free: 10.07 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002029/1.151, allocations: 31.77 kB / 1.336 GB, free: 10.04 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001303/1.152, allocations: 219.9 kB / 1.336 GB, free: 9.828 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002258/1.154, allocations: 0.6304 MB / 1.337 GB, free: 9.195 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01496/1.169, allocations: 7.014 MB / 1.344 GB, free: 2.168 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0555/1.225, allocations: 40.06 MB / 1.383 GB, free: 6.867 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004621/1.23, allocations: 2.882 MB / 1.386 GB, free: 3.973 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004114/1.234, allocations: 2.671 MB / 1.388 GB, free: 1.293 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002567/1.234, allocations: 30.09 kB / 1.388 GB, free: 1.262 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.507e-05/1.234, allocations: 64.53 kB / 1.388 GB, free: 1.188 MB / 1.107 GB Notification: Performance of pre-optimization done (n=265): time 5.2e-06/1.234, allocations: 8 kB / 1.388 GB, free: 1.18 MB / 1.107 GB Notification: Performance of matching and sorting (n=424): time 0.3107/1.545, allocations: 74.68 MB / 1.461 GB, free: 5.84 MB / 1.186 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.043e-05/1.545, allocations: 94.73 kB / 1.461 GB, free: 5.734 MB / 1.186 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003734/1.549, allocations: 2.363 MB / 1.464 GB, free: 3.359 MB / 1.186 GB Notification: Performance of collectPreVariables (initialization): time 0.0008866/1.55, allocations: 93.7 kB / 1.464 GB, free: 3.262 MB / 1.186 GB Notification: Performance of collectInitialEqns (initialization): time 0.00163/1.551, allocations: 2.349 MB / 1.466 GB, free: 0.8867 MB / 1.186 GB Notification: Performance of collectInitialBindings (initialization): time 0.002078/1.553, allocations: 1.429 MB / 1.467 GB, free: 15.43 MB / 1.201 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002432/1.556, allocations: 0.7254 MB / 1.468 GB, free: 14.7 MB / 1.201 GB Notification: Performance of setup shared object (initialization): time 0.0001007/1.556, allocations: 305.1 kB / 1.468 GB, free: 14.39 MB / 1.201 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004608/1.561, allocations: 2.995 MB / 1.471 GB, free: 11.39 MB / 1.201 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005269/1.566, allocations: 3.851 MB / 1.475 GB, free: 7.207 MB / 1.201 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01059/1.576, allocations: 7.387 MB / 1.482 GB, free: 15.5 MB / 1.217 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.378e-05/1.577, allocations: 8 kB / 1.482 GB, free: 15.49 MB / 1.217 GB Notification: Performance of matching and sorting (n=551) (initialization): time 0.03174/1.608, allocations: 12.55 MB / 1.495 GB, free: 2.836 MB / 1.217 GB Notification: Performance of prepare postOptimizeDAE: time 4.887e-05/1.608, allocations: 16 kB / 1.495 GB, free: 2.82 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-05/1.608, allocations: 20.91 kB / 1.495 GB, free: 2.801 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02331/1.632, allocations: 6.029 MB / 1.501 GB, free: 12.71 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002682/1.634, allocations: 495.2 kB / 1.501 GB, free: 12.22 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.9341/2.569, allocations: 72.98 MB / 1.572 GB, free: 306.2 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004513/2.573, allocations: 217.8 kB / 1.572 GB, free: 306.2 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009217/2.574, allocations: 155 kB / 1.573 GB, free: 306.2 MB / 1.279 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 (269): * Single equations (assignments): 245 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 24 systems {(2,2,100.0%), (1,1,100.0%), (2,2,100.0%), (1,1,100.0%), (2,2,100.0%), (1,1,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (2,8,100.0%), (2,16,100.0%), (3,15,100.0%), (2,8,100.0%), (2,8,100.0%), (2,16,100.0%), (3,15,100.0%), (2,8,100.0%), (2,8,100.0%), (2,16,100.0%), (3,15,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004331/2.579, allocations: 1.999 MB / 1.575 GB, free: 306.1 MB / 1.279 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001084/2.58, allocations: 392.5 kB / 1.575 GB, free: 306.1 MB / 1.279 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02824/2.608, allocations: 12.23 MB / 1.587 GB, free: 301.7 MB / 1.279 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.595e-05/2.608, allocations: 42.38 kB / 1.587 GB, free: 301.7 MB / 1.279 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002138/2.608, allocations: 50.95 kB / 1.587 GB, free: 301.7 MB / 1.279 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.905e-05/2.608, allocations: 22.45 kB / 1.587 GB, free: 301.7 MB / 1.279 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03806/2.646, allocations: 19.15 MB / 1.606 GB, free: 294.1 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-05/2.646, allocations: 7.406 kB / 1.606 GB, free: 294.1 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00165/2.648, allocations: 290.4 kB / 1.606 GB, free: 294.1 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0197/2.668, allocations: 5.571 MB / 1.611 GB, free: 292.7 MB / 1.279 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009064/2.669, allocations: 76.94 kB / 1.612 GB, free: 292.7 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06483/2.734, allocations: 70.61 MB / 1.68 GB, free: 222.6 MB / 1.279 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.211e-06/2.734, allocations: 11.94 kB / 1.68 GB, free: 222.6 MB / 1.279 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02757/2.761, allocations: 15.61 MB / 1.696 GB, free: 206.7 MB / 1.279 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003519/2.765, allocations: 1.047 MB / 1.697 GB, free: 205.7 MB / 1.279 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001357/2.766, allocations: 83.98 kB / 1.697 GB, free: 205.6 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003178/2.769, allocations: 215.7 kB / 1.697 GB, free: 205.4 MB / 1.279 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001616/2.771, allocations: 406.3 kB / 1.697 GB, free: 205 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003213/2.771, allocations: 108 kB / 1.698 GB, free: 204.9 MB / 1.279 GB Notification: Performance of sorting global known variables: time 0.002027/2.773, allocations: 1.556 MB / 1.699 GB, free: 203.3 MB / 1.279 GB Notification: Performance of sort global known variables: time 2.1e-07/2.773, allocations: 0 / 1.699 GB, free: 203.3 MB / 1.279 GB Notification: Performance of remove unused functions: time 0.007154/2.781, allocations: 1.859 MB / 1.701 GB, free: 201.4 MB / 1.279 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 6 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[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 (145): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 24 systems {(2,8,100.0%), (2,8,100.0%), (2,8,100.0%), (3,15,100.0%), (3,15,100.0%), (3,15,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,15,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006662/2.781, allocations: 218.7 kB / 1.701 GB, free: 201.2 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.01856/2.8, allocations: 12.21 MB / 1.713 GB, free: 188.7 MB / 1.279 GB Notification: Performance of simCode: created event and clocks part: time 1.792e-05/2.8, allocations: 3.906 kB / 1.713 GB, free: 188.7 MB / 1.279 GB Notification: Performance of simCode: created simulation system equations: time 0.01413/2.814, allocations: 8.361 MB / 1.721 GB, free: 180.1 MB / 1.279 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00617/2.82, allocations: 1.195 MB / 1.722 GB, free: 178.9 MB / 1.279 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01986/2.84, allocations: 12.91 MB / 1.735 GB, free: 166 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005874/2.846, allocations: 4.166 MB / 1.739 GB, free: 161.8 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001194/2.847, allocations: 195.4 kB / 1.739 GB, free: 161.6 MB / 1.279 GB Notification: Performance of SimCode: time 1.793e-06/2.847, allocations: 0 / 1.739 GB, free: 161.6 MB / 1.279 GB Notification: Performance of Templates: time 1.304/4.152, allocations: 0.7448 GB / 2.484 GB, free: 209.8 MB / 1.514 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches