Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.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,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.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,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.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 111.5 kB / 16.42 MB, free: 6.465 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.001287/0.001288, allocations: 190.7 kB / 17.35 MB, free: 5.711 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.355/1.355, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.661/2.661, allocations: 472.7 MB / 0.746 GB, free: 456 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 71.88 kB / 1.07 GB, free: 9.535 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9733/0.9748, 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): time 0.01599/0.9908, allocations: 11.85 MB / 1.238 GB, free: 1.602 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.009548/1, allocations: 5.493 MB / 1.243 GB, free: 12.09 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001103/1.002, allocations: 39.81 kB / 1.243 GB, free: 12.05 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.003016/1.005, allocations: 1.049 MB / 1.244 GB, free: 11 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001879/1.007, allocations: 0.653 MB / 1.245 GB, free: 10.35 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002394/1.009, allocations: 0.9196 MB / 1.246 GB, free: 9.426 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.002873/1.012, allocations: 2.462 MB / 1.248 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004608/1.016, allocations: 3.518 MB / 1.252 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001712/1.018, allocations: 1.118 MB / 1.253 GB, free: 2.281 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001995/1.02, allocations: 1.211 MB / 1.254 GB, free: 1.066 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0005866/1.021, allocations: 228 kB / 1.254 GB, free: 0.8438 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001326/1.022, allocations: 0.5267 MB / 1.255 GB, free: 324 kB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.001204/1.023, allocations: 0.9045 MB / 1.256 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001733/1.025, allocations: 0.9845 MB / 1.257 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.004316/1.029, allocations: 3.58 MB / 1.26 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/1.029, allocations: 0 / 1.26 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.523e-06/1.029, allocations: 4 kB / 1.26 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0001087/1.03, allocations: 0 / 1.26 GB, free: 10.83 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: 406 * Number of variables: 406 Notification: Performance of Generate backend data structure: time 0.005329/1.035, allocations: 1.987 MB / 1.262 GB, free: 8.789 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/1.035, allocations: 8.031 kB / 1.262 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002836/1.038, allocations: 0.4954 MB / 1.263 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002155/1.04, allocations: 1.129 MB / 1.264 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.909e-05/1.04, allocations: 111.5 kB / 1.264 GB, free: 7.004 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002698/1.04, allocations: 156.1 kB / 1.264 GB, free: 6.852 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004395/1.045, allocations: 2.754 MB / 1.267 GB, free: 4.031 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.33e-05/1.045, allocations: 3.938 kB / 1.267 GB, free: 4.027 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001665/1.045, allocations: 64 kB / 1.267 GB, free: 3.965 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002824/1.045, allocations: 151 kB / 1.267 GB, free: 3.816 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003638/1.049, allocations: 2.303 MB / 1.269 GB, free: 1.508 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01239/1.061, allocations: 10.41 MB / 1.279 GB, free: 6.207 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/1.063, allocations: 0.614 MB / 1.28 GB, free: 5.586 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006624/1.063, allocations: 404.6 kB / 1.28 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001313/1.063, allocations: 89.09 kB / 1.28 GB, free: 5.082 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.617e-05/1.064, allocations: 42.48 kB / 1.28 GB, free: 5.031 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=36): time 2.735e-06/1.064, allocations: 0 / 1.28 GB, free: 5.031 MB / 0.9981 GB Notification: Performance of matching and sorting (n=52): time 0.02229/1.086, allocations: 5.843 MB / 1.286 GB, free: 15.12 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/1.086, allocations: 59.84 kB / 1.286 GB, free: 15.05 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001454/1.087, allocations: 0.8829 MB / 1.287 GB, free: 14.16 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001294/1.087, allocations: 33.7 kB / 1.287 GB, free: 14.12 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006177/1.088, allocations: 0.7798 MB / 1.288 GB, free: 13.34 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002386/1.088, allocations: 194.4 kB / 1.288 GB, free: 13.14 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004145/1.089, allocations: 198.5 kB / 1.288 GB, free: 12.95 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0002133/1.089, allocations: 386.8 kB / 1.288 GB, free: 12.56 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001221/1.09, allocations: 0.6527 MB / 1.289 GB, free: 11.9 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001419/1.092, allocations: 1.01 MB / 1.29 GB, free: 10.73 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002647/1.094, allocations: 1.674 MB / 1.292 GB, free: 8.898 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.348e-05/1.094, allocations: 4 kB / 1.292 GB, free: 8.895 MB / 1.014 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.009205/1.104, allocations: 3.132 MB / 1.295 GB, free: 5.738 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.275e-05/1.104, allocations: 12 kB / 1.295 GB, free: 5.727 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.639e-05/1.104, allocations: 8 kB / 1.295 GB, free: 5.719 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007275/1.111, allocations: 1.65 MB / 1.296 GB, free: 4.055 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/1.112, allocations: 231.6 kB / 1.297 GB, free: 3.828 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01513/1.127, allocations: 10.58 MB / 1.307 GB, free: 8.691 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001612/1.129, allocations: 163.7 kB / 1.307 GB, free: 8.531 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001986/1.129, allocations: 47.98 kB / 1.307 GB, free: 8.484 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002259/1.131, allocations: 1.31 MB / 1.308 GB, free: 7.168 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001557/1.133, allocations: 0.9825 MB / 1.309 GB, free: 6.016 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002494/1.135, allocations: 1.631 MB / 1.311 GB, free: 4.23 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.19e-05/1.135, allocations: 4 kB / 1.311 GB, free: 4.227 MB / 1.029 GB Notification: Performance of matching and sorting (n=111) (initialization_lambda0): time 0.007396/1.143, allocations: 2.658 MB / 1.314 GB, free: 1.551 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/1.143, allocations: 12 kB / 1.314 GB, free: 1.539 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.288e-05/1.143, allocations: 12 kB / 1.314 GB, free: 1.527 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004601/1.148, allocations: 1.071 MB / 1.315 GB, free: 460 kB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001126/1.149, allocations: 243.5 kB / 1.315 GB, free: 216 kB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007927/1.157, allocations: 5.756 MB / 1.321 GB, free: 10.18 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001414/1.158, allocations: 155.7 kB / 1.321 GB, free: 10.02 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001705/1.158, allocations: 39.98 kB / 1.321 GB, free: 9.984 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (99): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,2), (2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0004075/1.159, allocations: 253.8 kB / 1.321 GB, free: 9.73 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002375/1.159, allocations: 87.48 kB / 1.321 GB, free: 9.645 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007896/1.167, allocations: 2.567 MB / 1.324 GB, free: 7.051 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.746e-05/1.167, allocations: 3.984 kB / 1.324 GB, free: 7.047 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/1.167, allocations: 0 / 1.324 GB, free: 7.047 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005857/1.167, allocations: 264.6 kB / 1.324 GB, free: 6.77 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002386/1.168, allocations: 19.94 kB / 1.324 GB, free: 6.75 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009539/1.169, allocations: 111.8 kB / 1.324 GB, free: 6.641 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002374/1.169, allocations: 48.36 kB / 1.324 GB, free: 6.594 MB / 1.045 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005222/1.174, allocations: 2.091 MB / 1.326 GB, free: 4.484 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002693/1.177, allocations: 1.8 MB / 1.328 GB, free: 2.664 MB / 1.045 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007953/1.178, allocations: 0.5459 MB / 1.328 GB, free: 2.121 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.001156/1.179, allocations: 0.6434 MB / 1.329 GB, free: 1.48 MB / 1.045 GB Notification: Performance of Backend: time 4.11e-07/1.179, allocations: 0 / 1.329 GB, free: 1.48 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.006447/1.185, allocations: 2.927 MB / 1.332 GB, free: 14.47 MB / 1.061 GB Notification: Performance of SimCode: time 0.006275/1.192, allocations: 3.32 MB / 1.335 GB, free: 11.1 MB / 1.061 GB Notification: Performance of Templates: time 0.04546/1.237, allocations: 29.46 MB / 1.364 GB, free: 13.79 MB / 1.092 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches