Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.ACSimpleGrid_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.|load.terminal.phase.4..v.1.|load.terminal.phase.4..v.2.|load.terminal.phase.4..i.1.|load.terminal.phase.4..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.|load.terminal.phase.4..v.1.|load.terminal.phase.4..v.2.|load.terminal.phase.4..i.1.|load.terminal.phase.4..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 115.5 kB / 16.42 MB, free: 6.504 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.001254/0.001254, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.323/1.323, allocations: 222.9 MB / 241.1 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.644/2.644, allocations: 472.7 MB / 0.746 GB, free: 456 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 63.91 kB / 1.07 GB, free: 9.555 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8614/0.8628, allocations: 159.9 MB / 1.226 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N): time 0.01636/0.8791, allocations: 11.97 MB / 1.238 GB, free: 1.48 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.009405/0.8886, allocations: 5.707 MB / 1.244 GB, free: 11.76 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000877/0.8895, allocations: 43.81 kB / 1.244 GB, free: 11.71 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.002746/0.8923, allocations: 1.057 MB / 1.245 GB, free: 10.66 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001826/0.8941, allocations: 0.6802 MB / 1.245 GB, free: 9.973 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002494/0.8966, allocations: 0.9742 MB / 1.246 GB, free: 8.996 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003075/0.8997, allocations: 2.577 MB / 1.249 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004492/0.9042, allocations: 3.791 MB / 1.253 GB, free: 2.59 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001978/0.9062, allocations: 1.204 MB / 1.254 GB, free: 1.383 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002253/0.9085, allocations: 1.332 MB / 1.255 GB, free: 48 kB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0006893/0.9092, allocations: 252 kB / 1.255 GB, free: 15.8 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001663/0.9108, allocations: 0.5656 MB / 1.256 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.00147/0.9123, allocations: 0.9318 MB / 1.257 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.002009/0.9143, allocations: 1.07 MB / 1.258 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.005027/0.9194, allocations: 3.86 MB / 1.262 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.9194, allocations: 0 / 1.262 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.657e-06/0.9194, allocations: 4 kB / 1.262 GB, free: 9.355 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0001179/0.9195, allocations: 0 / 1.262 GB, free: 9.355 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 425 * Number of variables: 425 Notification: Performance of Generate backend data structure: time 0.005692/0.9252, allocations: 2.133 MB / 1.264 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.9253, allocations: 8.031 kB / 1.264 GB, free: 7.156 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003693/0.929, allocations: 0.7527 MB / 1.264 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00254/0.9316, allocations: 1.224 MB / 1.266 GB, free: 5.137 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.394e-05/0.9317, allocations: 123.5 kB / 1.266 GB, free: 5.016 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005243/0.9322, allocations: 168 kB / 1.266 GB, free: 4.852 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005313/0.9375, allocations: 2.96 MB / 1.269 GB, free: 1.828 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.384e-05/0.9376, allocations: 3.938 kB / 1.269 GB, free: 1.824 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002127/0.9378, allocations: 71.98 kB / 1.269 GB, free: 1.754 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003521/0.9382, allocations: 167.1 kB / 1.269 GB, free: 1.59 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004616/0.9428, allocations: 2.518 MB / 1.271 GB, free: 15.07 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01375/0.9566, allocations: 10.75 MB / 1.282 GB, free: 3.422 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/0.9582, allocations: 0.955 MB / 1.283 GB, free: 2.418 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007956/0.9591, allocations: 0.5051 MB / 1.283 GB, free: 1.91 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001567/0.9592, allocations: 93.47 kB / 1.283 GB, free: 1.801 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.791e-05/0.9593, allocations: 38.92 kB / 1.283 GB, free: 1.754 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=46): time 3.136e-06/0.9593, allocations: 0 / 1.283 GB, free: 1.754 MB / 0.9981 GB Notification: Performance of matching and sorting (n=70): time 0.03031/0.9896, allocations: 8.092 MB / 1.291 GB, free: 9.586 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.707e-05/0.9897, allocations: 55.97 kB / 1.291 GB, free: 9.52 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001459/0.9912, allocations: 0.9377 MB / 1.292 GB, free: 8.574 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001489/0.9913, allocations: 37.7 kB / 1.292 GB, free: 8.531 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005472/0.9919, allocations: 0.7957 MB / 1.293 GB, free: 7.723 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003286/0.9922, allocations: 265.8 kB / 1.293 GB, free: 7.461 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004769/0.9927, allocations: 210.9 kB / 1.294 GB, free: 7.246 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001856/0.9929, allocations: 394.8 kB / 1.294 GB, free: 6.852 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001408/0.9943, allocations: 0.8101 MB / 1.295 GB, free: 6.039 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001692/0.996, allocations: 1.159 MB / 1.296 GB, free: 4.723 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003133/0.9992, allocations: 1.99 MB / 1.298 GB, free: 2.578 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/0.9992, allocations: 4 kB / 1.298 GB, free: 2.574 MB / 1.014 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.01013/1.009, allocations: 3.667 MB / 1.301 GB, free: 14.89 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.183e-05/1.009, allocations: 9.719 kB / 1.301 GB, free: 14.88 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.903e-05/1.009, allocations: 15.98 kB / 1.301 GB, free: 14.86 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007644/1.017, allocations: 1.899 MB / 1.303 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/1.018, allocations: 235.6 kB / 1.304 GB, free: 12.73 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01649/1.035, allocations: 10.59 MB / 1.314 GB, free: 1.871 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/1.036, allocations: 183.6 kB / 1.314 GB, free: 1.691 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002635/1.037, allocations: 47.98 kB / 1.314 GB, free: 1.645 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003135/1.04, allocations: 1.521 MB / 1.316 GB, free: 120 kB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001783/1.042, allocations: 1.128 MB / 1.317 GB, free: 14.83 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003102/1.045, allocations: 1.939 MB / 1.319 GB, free: 12.74 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.478e-05/1.045, allocations: 4 kB / 1.319 GB, free: 12.74 MB / 1.045 GB Notification: Performance of matching and sorting (n=127) (initialization_lambda0): time 0.008243/1.053, allocations: 3.1 MB / 1.322 GB, free: 9.625 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.621e-05/1.053, allocations: 11.98 kB / 1.322 GB, free: 9.613 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.314e-05/1.053, allocations: 15.94 kB / 1.322 GB, free: 9.598 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004988/1.058, allocations: 1.2 MB / 1.323 GB, free: 8.395 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/1.06, allocations: 275.5 kB / 1.323 GB, free: 8.125 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009203/1.069, allocations: 5.847 MB / 1.329 GB, free: 2.137 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001719/1.071, allocations: 175.9 kB / 1.329 GB, free: 1.965 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001973/1.071, allocations: 47.98 kB / 1.329 GB, free: 1.918 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (97): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0004678/1.071, allocations: 252.3 kB / 1.329 GB, free: 1.664 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003189/1.072, allocations: 91.44 kB / 1.329 GB, free: 1.574 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008846/1.08, allocations: 3.175 MB / 1.332 GB, free: 14.38 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.494e-05/1.08, allocations: 3.984 kB / 1.332 GB, free: 14.38 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/1.08, allocations: 4 kB / 1.332 GB, free: 14.37 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006128/1.081, allocations: 316.5 kB / 1.333 GB, free: 14.04 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000227/1.081, allocations: 15.95 kB / 1.333 GB, free: 14.03 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001015/1.082, allocations: 139.8 kB / 1.333 GB, free: 13.89 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002688/1.083, allocations: 68.53 kB / 1.333 GB, free: 13.82 MB / 1.061 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006424/1.089, allocations: 2.837 MB / 1.336 GB, free: 10.97 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003242/1.092, allocations: 2.384 MB / 1.338 GB, free: 8.57 MB / 1.061 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001019/1.093, allocations: 0.7623 MB / 1.339 GB, free: 7.805 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.001074/1.094, allocations: 0.6746 MB / 1.339 GB, free: 7.133 MB / 1.061 GB Notification: Performance of Backend: time 7.81e-07/1.094, allocations: 0 / 1.339 GB, free: 7.133 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.006174/1.101, allocations: 3.182 MB / 1.343 GB, free: 3.91 MB / 1.061 GB Notification: Performance of SimCode: time 0.005996/1.107, allocations: 3.769 MB / 1.346 GB, free: 88 kB / 1.061 GB Notification: Performance of Templates: time 0.05527/1.162, allocations: 35.95 MB / 1.381 GB, free: 12.33 MB / 1.107 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches