Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Sources.Examples.PVPanels,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.1..real|grid.P.2..real|grid.P.3..real|RL.load1.S.1.|RL.load1.S.2.|RL.load2.S.1.|RL.load2.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.1..real|grid.P.2..real|grid.P.3..real|RL.load1.S.1.|RL.load1.S.2.|RL.load2.S.1.|RL.load2.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 117.6 kB / 16.42 MB, free: 6.496 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.001247/0.001247, allocations: 189.5 kB / 17.34 MB, free: 5.727 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.319/1.319, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.555/2.555, allocations: 461.7 MB / 0.7353 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 63.91 kB / 1.055 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7796/0.781, allocations: 157.4 MB / 1.208 GB, free: 13.77 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels): time 0.03377/0.8149, allocations: 28.78 MB / 1.236 GB, free: 0.8828 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.1701/0.985, allocations: 158 MB / 1.391 GB, free: 2.312 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005754/0.9909, allocations: 75.75 kB / 1.391 GB, free: 2.238 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.006318/0.9973, allocations: 1.965 MB / 1.393 GB, free: 272 kB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.008034/1.005, allocations: 1.972 MB / 1.395 GB, free: 14.29 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.008861/1.014, allocations: 2.902 MB / 1.397 GB, free: 11.39 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 0.01035/1.025, allocations: 7.125 MB / 1.404 GB, free: 4.254 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01406/1.039, allocations: 7.829 MB / 1.412 GB, free: 12.33 MB / 1.139 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006108/1.045, allocations: 2.835 MB / 1.415 GB, free: 9.488 MB / 1.139 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007032/1.052, allocations: 3.276 MB / 1.418 GB, free: 6.203 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.002891/1.055, allocations: 0.7344 MB / 1.419 GB, free: 5.469 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004783/1.06, allocations: 1.495 MB / 1.42 GB, free: 3.973 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.003788/1.064, allocations: 2.175 MB / 1.422 GB, free: 1.793 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.006322/1.07, allocations: 3.007 MB / 1.425 GB, free: 14.77 MB / 1.154 GB Notification: Performance of NFConvertDAE.convert: time 0.01311/1.083, allocations: 9.655 MB / 1.435 GB, free: 5.09 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/1.083, allocations: 0 / 1.435 GB, free: 5.09 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.573e-06/1.083, allocations: 0 / 1.435 GB, free: 5.09 MB / 1.154 GB Notification: Performance of Transformations before backend: time 0.0003243/1.083, allocations: 0 / 1.435 GB, free: 5.09 MB / 1.154 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.01561/1.099, allocations: 5.359 MB / 1.44 GB, free: 15.65 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/1.099, allocations: 8.031 kB / 1.44 GB, free: 15.64 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01427/1.113, allocations: 2.043 MB / 1.442 GB, free: 13.59 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007073/1.12, allocations: 2.72 MB / 1.444 GB, free: 10.81 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004577/1.121, allocations: 369.7 kB / 1.445 GB, free: 10.45 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002339/1.123, allocations: 472 kB / 1.445 GB, free: 9.988 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0213/1.145, allocations: 7.346 MB / 1.452 GB, free: 2.414 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002043/1.145, allocations: 11.94 kB / 1.452 GB, free: 2.402 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00153/1.146, allocations: 212 kB / 1.453 GB, free: 2.195 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003434/1.147, allocations: 260.5 kB / 1.453 GB, free: 1.938 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01999/1.167, allocations: 7.098 MB / 1.46 GB, free: 10.82 MB / 1.186 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04599/1.213, allocations: 28.2 MB / 1.487 GB, free: 12.8 MB / 1.217 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01115/1.224, allocations: 4.511 MB / 1.492 GB, free: 8.25 MB / 1.217 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005181/1.229, allocations: 2.203 MB / 1.494 GB, free: 6.031 MB / 1.217 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008878/1.23, allocations: 0.5153 MB / 1.494 GB, free: 5.422 MB / 1.217 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006065/1.236, allocations: 2.486 MB / 1.497 GB, free: 2.867 MB / 1.217 GB Notification: Performance of pre-optimization done (n=277): time 7.775e-06/1.236, allocations: 0 / 1.497 GB, free: 2.867 MB / 1.217 GB Notification: Performance of matching and sorting (n=280): time 0.02154/1.258, allocations: 8.481 MB / 1.505 GB, free: 10.29 MB / 1.232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001798/1.258, allocations: 390 kB / 1.506 GB, free: 9.82 MB / 1.232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003284/1.261, allocations: 1.92 MB / 1.507 GB, free: 7.863 MB / 1.232 GB Notification: Performance of collectPreVariables (initialization): time 0.0006675/1.262, allocations: 81.7 kB / 1.507 GB, free: 7.777 MB / 1.232 GB Notification: Performance of collectInitialEqns (initialization): time 0.001801/1.264, allocations: 1.876 MB / 1.509 GB, free: 5.875 MB / 1.232 GB Notification: Performance of collectInitialBindings (initialization): time 0.001321/1.265, allocations: 0.9126 MB / 1.51 GB, free: 4.949 MB / 1.232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002007/1.267, allocations: 0.6154 MB / 1.511 GB, free: 4.324 MB / 1.232 GB Notification: Performance of setup shared object (initialization): time 0.0001052/1.267, allocations: 309.1 kB / 1.511 GB, free: 4.02 MB / 1.232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00481/1.272, allocations: 1.838 MB / 1.513 GB, free: 2.172 MB / 1.232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005635/1.278, allocations: 2.543 MB / 1.515 GB, free: 15.35 MB / 1.248 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01067/1.288, allocations: 4.355 MB / 1.52 GB, free: 10.73 MB / 1.248 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-05/1.289, allocations: 4 kB / 1.52 GB, free: 10.72 MB / 1.248 GB Notification: Performance of matching and sorting (n=385) (initialization): time 0.01245/1.301, allocations: 4.753 MB / 1.524 GB, free: 5.926 MB / 1.248 GB Notification: Performance of prepare postOptimizeDAE: time 3.593e-05/1.301, allocations: 14.66 kB / 1.524 GB, free: 5.914 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.369e-05/1.301, allocations: 24.09 kB / 1.524 GB, free: 5.891 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.671e-05/1.301, allocations: 35.94 kB / 1.524 GB, free: 5.855 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004626/1.306, allocations: 0.897 MB / 1.525 GB, free: 4.957 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.726e-05/1.306, allocations: 39.86 kB / 1.525 GB, free: 4.918 MB / 1.248 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003867/1.31, allocations: 444.8 kB / 1.526 GB, free: 4.484 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004896/1.31, allocations: 151.9 kB / 1.526 GB, free: 4.336 MB / 1.248 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00662/1.317, allocations: 2.817 MB / 1.529 GB, free: 1.512 MB / 1.248 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005028/1.322, allocations: 2.384 MB / 1.531 GB, free: 14.84 MB / 1.264 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.009412/1.331, allocations: 4.04 MB / 1.535 GB, free: 10.55 MB / 1.264 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.429e-05/1.331, allocations: 7.938 kB / 1.535 GB, free: 10.54 MB / 1.264 GB Notification: Performance of matching and sorting (n=385) (initialization_lambda0): time 0.01209/1.344, allocations: 4.44 MB / 1.539 GB, free: 6.098 MB / 1.264 GB Notification: Performance of prepare postOptimizeDAE: time 3.151e-05/1.344, allocations: 12 kB / 1.539 GB, free: 6.086 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.128e-05/1.344, allocations: 16 kB / 1.539 GB, free: 6.07 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.946e-05/1.344, allocations: 36.17 kB / 1.539 GB, free: 6.035 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004516/1.348, allocations: 0.8506 MB / 1.54 GB, free: 5.184 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.319e-05/1.348, allocations: 43.86 kB / 1.54 GB, free: 5.141 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004263/1.353, allocations: 402 kB / 1.541 GB, free: 4.746 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000632/1.353, allocations: 159.9 kB / 1.541 GB, free: 4.59 MB / 1.264 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 29 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,pvOriented.HDirTil.incAng.decAng.tNext,$PRE.pvOriented.HDirTil.incAng.decAng.tNext,pvOriented.HDifTil.incAng.decAng.tNext,$PRE.pvOriented.HDifTil.incAng.decAng.tNext,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,HDirTil.incAng.decAng.tNext,$PRE.HDirTil.incAng.decAng.tNext,HDifTil.incAng.decAng.tNext,$PRE.HDifTil.incAng.decAng.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (385): * Single equations (assignments): 385 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001381/1.355, allocations: 383.4 kB / 1.541 GB, free: 4.207 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001209/1.356, allocations: 272.7 kB / 1.541 GB, free: 3.938 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01345/1.369, allocations: 4.888 MB / 1.546 GB, free: 14.99 MB / 1.279 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.832e-05/1.369, allocations: 11.95 kB / 1.546 GB, free: 14.98 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/1.369, allocations: 0 / 1.546 GB, free: 14.98 MB / 1.279 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001859/1.371, allocations: 0.8211 MB / 1.547 GB, free: 14.14 MB / 1.279 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008135/1.372, allocations: 75.75 kB / 1.547 GB, free: 14.06 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003766/1.376, allocations: 423.4 kB / 1.547 GB, free: 13.65 MB / 1.279 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000438/1.376, allocations: 190 kB / 1.548 GB, free: 13.46 MB / 1.279 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01262/1.389, allocations: 4.863 MB / 1.552 GB, free: 8.551 MB / 1.279 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01063/1.4, allocations: 4.708 MB / 1.557 GB, free: 3.77 MB / 1.279 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004437/1.404, allocations: 2.056 MB / 1.559 GB, free: 1.699 MB / 1.279 GB Notification: Performance of sorting global known variables: time 0.002631/1.407, allocations: 1.4 MB / 1.56 GB, free: 292 kB / 1.279 GB Notification: Performance of Backend: time 5.51e-07/1.407, allocations: 0 / 1.56 GB, free: 292 kB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.6866/2.093, allocations: 5.823 MB / 1.566 GB, free: 340.2 MB / 1.279 GB Notification: Performance of SimCode: time 0.01552/2.109, allocations: 7.396 MB / 1.573 GB, free: 336.7 MB / 1.279 GB Notification: Performance of Templates: time 0.1121/2.221, allocations: 81.47 MB / 1.653 GB, free: 267.6 MB / 1.279 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches