Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.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_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005554/0.005554, allocations: 101.9 kB / 15.73 MB, free: 6.438 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.001155/0.001155, allocations: 194.3 kB / 16.67 MB, free: 6.355 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.538/1.538, allocations: 222.9 MB / 240.4 MB, free: 4.297 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.429/2.429, allocations: 390.2 MB / 0.6648 GB, free: 204 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 62.88 kB / 0.9509 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.3257, allocations: 140.4 MB / 1.088 GB, free: 1.492 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L): time 0.0374/0.3631, allocations: 32.6 MB / 1.12 GB, free: 0.7852 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01795/0.3811, allocations: 10.26 MB / 1.13 GB, free: 6.496 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003506/0.3847, allocations: 151.2 kB / 1.13 GB, free: 6.348 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.009825/0.3946, allocations: 3.71 MB / 1.134 GB, free: 2.629 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.006855/0.4014, allocations: 1.858 MB / 1.135 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.006171/0.4076, allocations: 2.137 MB / 1.137 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.009824/0.4175, allocations: 7.329 MB / 1.145 GB, free: 7.273 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01359/0.4311, allocations: 9.412 MB / 1.154 GB, free: 13.75 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006042/0.4372, allocations: 3.178 MB / 1.157 GB, free: 10.56 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007051/0.4443, allocations: 3.481 MB / 1.16 GB, free: 7.066 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.002146/0.4464, allocations: 0.6484 MB / 1.161 GB, free: 6.418 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006756/0.4532, allocations: 1.767 MB / 1.163 GB, free: 4.648 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.007124/0.4604, allocations: 2.542 MB / 1.165 GB, free: 2.102 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.007975/0.4684, allocations: 2.898 MB / 1.168 GB, free: 15.19 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.01672/0.4852, allocations: 10.1 MB / 1.178 GB, free: 5.059 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 9.899e-06/0.4852, allocations: 0 / 1.178 GB, free: 5.059 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.705e-06/0.4852, allocations: 3.938 kB / 1.178 GB, free: 5.055 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 0.0004292/0.4857, allocations: 0 / 1.178 GB, free: 5.055 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.01752/0.5032, allocations: 5.006 MB / 1.183 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/0.5033, allocations: 8.031 kB / 1.183 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006806/0.5101, allocations: 0.9474 MB / 1.184 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008424/0.5185, allocations: 3.046 MB / 1.187 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003836/0.5189, allocations: 349.7 kB / 1.187 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001989/0.521, allocations: 464.2 kB / 1.187 GB, free: 11.11 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01887/0.5398, allocations: 7.663 MB / 1.195 GB, free: 3.102 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002575/0.5401, allocations: 27.7 kB / 1.195 GB, free: 3.074 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001458/0.5416, allocations: 200 kB / 1.195 GB, free: 2.879 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004607/0.5421, allocations: 313 kB / 1.195 GB, free: 2.57 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01232/0.5544, allocations: 5.71 MB / 1.201 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04213/0.5966, allocations: 34.83 MB / 1.235 GB, free: 6.809 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003061/0.5997, allocations: 2.165 MB / 1.237 GB, free: 4.527 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001783/0.6015, allocations: 1.264 MB / 1.238 GB, free: 3.262 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001013/0.6016, allocations: 13.31 kB / 1.238 GB, free: 3.25 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.669e-05/0.6017, allocations: 47.88 kB / 1.238 GB, free: 3.195 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=133): time 4.028e-06/0.6017, allocations: 4 kB / 1.238 GB, free: 3.191 MB / 0.9981 GB Notification: Performance of matching and sorting (n=136): time 0.0147/0.6164, allocations: 7.092 MB / 1.245 GB, free: 11.83 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.2e-05/0.6165, allocations: 64.72 kB / 1.245 GB, free: 11.75 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002909/0.6194, allocations: 1.484 MB / 1.247 GB, free: 10.22 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001436/0.6196, allocations: 53.7 kB / 1.247 GB, free: 10.16 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001419/0.621, allocations: 2.008 MB / 1.249 GB, free: 8.129 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005247/0.6215, allocations: 489 kB / 1.249 GB, free: 7.645 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005886/0.6221, allocations: 343.2 kB / 1.25 GB, free: 7.305 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001064/0.6222, allocations: 305.1 kB / 1.25 GB, free: 7.004 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001328/0.6236, allocations: 0.9174 MB / 1.251 GB, free: 6.086 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001878/0.6255, allocations: 1.581 MB / 1.252 GB, free: 4.188 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003467/0.629, allocations: 2.741 MB / 1.255 GB, free: 1.137 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.126e-05/0.629, allocations: 4 kB / 1.255 GB, free: 1.133 MB / 1.014 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.7675/1.396, allocations: 3.531 MB / 1.259 GB, free: 154.2 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 5.469e-05/1.397, allocations: 14.59 kB / 1.259 GB, free: 154.2 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.995e-05/1.397, allocations: 23.17 kB / 1.259 GB, free: 154.2 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003946/1.401, allocations: 0.9 MB / 1.259 GB, free: 154.1 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001648/1.402, allocations: 352.2 kB / 1.26 GB, free: 154 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0222/1.424, allocations: 23.09 MB / 1.282 GB, free: 134.4 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001935/1.426, allocations: 105.3 kB / 1.282 GB, free: 134.4 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001886/1.427, allocations: 91 kB / 1.283 GB, free: 134.4 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 (185): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(3,5,77.8%), (3,5,77.8%), (3,5,77.8%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,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 prepare postOptimizeDAE: time 0.003253/1.43, allocations: 1.605 MB / 1.284 GB, free: 133.7 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006017/1.431, allocations: 202.3 kB / 1.284 GB, free: 133.7 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00808/1.439, allocations: 2.995 MB / 1.287 GB, free: 132.4 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-05/1.439, allocations: 13.47 kB / 1.287 GB, free: 132.4 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.311e-05/1.439, allocations: 9.531 kB / 1.287 GB, free: 132.4 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.496e-05/1.439, allocations: 14.78 kB / 1.287 GB, free: 132.4 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01703/1.456, allocations: 7.33 MB / 1.294 GB, free: 129.1 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.467e-05/1.456, allocations: 13.31 kB / 1.294 GB, free: 129.1 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000848/1.457, allocations: 173.8 kB / 1.295 GB, free: 129.1 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002515/1.459, allocations: 0.8274 MB / 1.295 GB, free: 128.8 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001101/1.459, allocations: 30.25 kB / 1.295 GB, free: 128.8 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02224/1.482, allocations: 21.94 MB / 1.317 GB, free: 109.8 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.387e-05/1.482, allocations: 9.094 kB / 1.317 GB, free: 109.8 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008504/1.49, allocations: 3.032 MB / 1.32 GB, free: 108.4 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001709/1.492, allocations: 458.6 kB / 1.32 GB, free: 108.1 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003938/1.492, allocations: 34.12 kB / 1.32 GB, free: 108.1 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/1.494, allocations: 71.47 kB / 1.32 GB, free: 108.1 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005548/1.494, allocations: 123.5 kB / 1.32 GB, free: 108.1 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001248/1.494, allocations: 36.47 kB / 1.321 GB, free: 108.1 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.002113/1.496, allocations: 0.9761 MB / 1.321 GB, free: 107.7 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.5e-07/1.496, allocations: 0 / 1.321 GB, free: 107.7 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.004684/1.501, allocations: 0.7881 MB / 1.322 GB, free: 107.6 MB / 1.014 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 (91): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(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%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003129/1.501, allocations: 145.3 kB / 1.322 GB, free: 107.5 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.006869/1.508, allocations: 4.034 MB / 1.326 GB, free: 105.1 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.234e-05/1.508, allocations: 9.312 kB / 1.326 GB, free: 105.1 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.003887/1.512, allocations: 2.728 MB / 1.329 GB, free: 103.2 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003511/1.516, allocations: 0.7329 MB / 1.33 GB, free: 103 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01475/1.531, allocations: 7.101 MB / 1.337 GB, free: 99.78 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003977/1.535, allocations: 3.114 MB / 1.34 GB, free: 97.96 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001627/1.536, allocations: 451.4 kB / 1.34 GB, free: 97.76 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002759/1.537, allocations: 118.9 kB / 1.34 GB, free: 97.75 MB / 1.014 GB Notification: Performance of SimCode: time 1.453e-06/1.537, allocations: 0 / 1.34 GB, free: 97.75 MB / 1.014 GB Notification: Performance of Templates: time 0.05769/1.594, allocations: 36.26 MB / 1.376 GB, free: 64.21 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches