Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_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 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.Sources.Examples.PVPanels_N,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_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N,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_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 109.9 kB / 16.41 MB, free: 6.461 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.001364/0.001364, allocations: 189.5 kB / 17.35 MB, free: 5.715 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.433/1.433, allocations: 222.9 MB / 241.1 MB, free: 15.1 MB / 206.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.241/2.241, allocations: 390.3 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 63.91 kB / 0.9515 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9244/0.9257, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N): time 0.03184/0.9576, allocations: 25.25 MB / 1.113 GB, free: 4.27 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.1982/1.156, allocations: 157.4 MB / 1.267 GB, free: 7 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004317/1.16, allocations: 75.69 kB / 1.267 GB, free: 6.926 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.004464/1.165, allocations: 1.347 MB / 1.268 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.006431/1.171, allocations: 1.562 MB / 1.27 GB, free: 4.008 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.008171/1.179, allocations: 2.696 MB / 1.273 GB, free: 1.32 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.008885/1.188, allocations: 6.122 MB / 1.279 GB, free: 11.18 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01056/1.199, allocations: 7.71 MB / 1.286 GB, free: 3.379 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005278/1.204, allocations: 2.609 MB / 1.289 GB, free: 0.7617 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007057/1.211, allocations: 3.015 MB / 1.292 GB, free: 13.73 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.003333/1.215, allocations: 0.6875 MB / 1.292 GB, free: 13.05 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005728/1.22, allocations: 1.362 MB / 1.294 GB, free: 11.69 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.004484/1.225, allocations: 2.003 MB / 1.296 GB, free: 9.68 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.007178/1.232, allocations: 2.715 MB / 1.298 GB, free: 6.953 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.01725/1.249, allocations: 8.807 MB / 1.307 GB, free: 14.12 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/1.249, allocations: 0 / 1.307 GB, free: 14.12 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.735e-06/1.249, allocations: 0 / 1.307 GB, free: 14.12 MB / 1.045 GB Notification: Performance of Transformations before backend: time 0.0003183/1.25, allocations: 4 kB / 1.307 GB, free: 14.12 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: 1192 * Number of variables: 1192 Notification: Performance of Generate backend data structure: time 0.01569/1.265, allocations: 5.012 MB / 1.312 GB, free: 9.02 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/1.265, allocations: 8.031 kB / 1.312 GB, free: 9.012 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01395/1.279, allocations: 1.969 MB / 1.314 GB, free: 7.035 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005438/1.285, allocations: 2.528 MB / 1.316 GB, free: 4.449 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003069/1.285, allocations: 349.1 kB / 1.316 GB, free: 4.105 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00138/1.287, allocations: 448 kB / 1.317 GB, free: 3.668 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01926/1.306, allocations: 6.857 MB / 1.324 GB, free: 12.61 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002032/1.306, allocations: 7.938 kB / 1.324 GB, free: 12.61 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001644/1.308, allocations: 196 kB / 1.324 GB, free: 12.41 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000344/1.308, allocations: 232 kB / 1.324 GB, free: 12.18 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02677/1.335, allocations: 6.757 MB / 1.331 GB, free: 5.406 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04759/1.383, allocations: 24.17 MB / 1.354 GB, free: 11.88 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01058/1.393, allocations: 4.373 MB / 1.358 GB, free: 7.426 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005069/1.398, allocations: 1.978 MB / 1.36 GB, free: 5.438 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008051/1.399, allocations: 0.5073 MB / 1.361 GB, free: 4.84 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005479/1.405, allocations: 2.285 MB / 1.363 GB, free: 2.484 MB / 1.092 GB Notification: Performance of pre-optimization done (n=263): time 5.1e-06/1.405, allocations: 4 kB / 1.363 GB, free: 2.48 MB / 1.092 GB Notification: Performance of matching and sorting (n=266): time 0.01702/1.422, allocations: 7.755 MB / 1.371 GB, free: 10.62 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002111/1.422, allocations: 393.9 kB / 1.371 GB, free: 10.15 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002483/1.424, allocations: 1.844 MB / 1.373 GB, free: 8.266 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 0.0004911/1.425, allocations: 81.64 kB / 1.373 GB, free: 8.18 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.001433/1.426, allocations: 1.782 MB / 1.375 GB, free: 6.379 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009909/1.427, allocations: 0.8626 MB / 1.376 GB, free: 5.504 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00102/1.428, allocations: 0.5996 MB / 1.376 GB, free: 4.895 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 8.893e-05/1.428, allocations: 309.1 kB / 1.376 GB, free: 4.59 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004459/1.433, allocations: 1.713 MB / 1.378 GB, free: 2.867 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005296/1.438, allocations: 2.426 MB / 1.38 GB, free: 168 kB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009567/1.448, allocations: 4.106 MB / 1.384 GB, free: 11.77 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.378e-05/1.448, allocations: 8 kB / 1.384 GB, free: 11.77 MB / 1.123 GB Notification: Performance of matching and sorting (n=375) (initialization): time 0.01183/1.46, allocations: 4.504 MB / 1.389 GB, free: 7.215 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 3.843e-05/1.46, allocations: 15.94 kB / 1.389 GB, free: 7.199 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.636e-05/1.46, allocations: 16.88 kB / 1.389 GB, free: 7.184 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.913e-05/1.46, allocations: 32 kB / 1.389 GB, free: 7.152 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004667/1.465, allocations: 0.8736 MB / 1.39 GB, free: 6.277 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.919e-05/1.465, allocations: 47.8 kB / 1.39 GB, free: 6.23 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004069/1.469, allocations: 427.6 kB / 1.39 GB, free: 5.812 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004465/1.469, allocations: 151.9 kB / 1.39 GB, free: 5.664 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006461/1.476, allocations: 2.668 MB / 1.393 GB, free: 2.988 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004881/1.481, allocations: 2.331 MB / 1.395 GB, free: 376 kB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.009161/1.49, allocations: 3.911 MB / 1.399 GB, free: 12.2 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.909e-05/1.49, allocations: 4 kB / 1.399 GB, free: 12.2 MB / 1.139 GB Notification: Performance of matching and sorting (n=375) (initialization_lambda0): time 0.01139/1.501, allocations: 4.284 MB / 1.403 GB, free: 7.898 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/1.501, allocations: 12 kB / 1.403 GB, free: 7.887 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.647e-05/1.501, allocations: 16 kB / 1.403 GB, free: 7.871 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.773e-05/1.501, allocations: 36 kB / 1.403 GB, free: 7.836 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004379/1.506, allocations: 0.8309 MB / 1.404 GB, free: 7.004 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.547e-05/1.506, allocations: 43.86 kB / 1.404 GB, free: 6.961 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003773/1.51, allocations: 402 kB / 1.405 GB, free: 6.566 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003668/1.51, allocations: 147.9 kB / 1.405 GB, free: 6.422 MB / 1.139 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * 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 (375): * Single equations (assignments): 375 * 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.0009349/1.511, allocations: 375.6 kB / 1.405 GB, free: 6.047 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006903/1.512, allocations: 245 kB / 1.405 GB, free: 5.805 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0119/1.523, allocations: 4.49 MB / 1.41 GB, free: 1.258 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.354e-05/1.524, allocations: 19.88 kB / 1.41 GB, free: 1.238 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/1.524, allocations: 0 / 1.41 GB, free: 1.238 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002052/1.526, allocations: 0.7742 MB / 1.41 GB, free: 452 kB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006678/1.526, allocations: 75.83 kB / 1.411 GB, free: 376 kB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003352/1.53, allocations: 379.5 kB / 1.411 GB, free: 15.99 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004197/1.53, allocations: 185.9 kB / 1.411 GB, free: 15.81 MB / 1.154 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01169/1.542, allocations: 4.478 MB / 1.415 GB, free: 11.28 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.009925/1.552, allocations: 4.352 MB / 1.42 GB, free: 6.852 MB / 1.154 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00441/1.556, allocations: 1.882 MB / 1.422 GB, free: 4.957 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.002318/1.559, allocations: 1.345 MB / 1.423 GB, free: 3.594 MB / 1.154 GB Notification: Performance of Backend: time 2.8e-07/1.559, allocations: 4 kB / 1.423 GB, free: 3.59 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.0161/1.575, allocations: 5.546 MB / 1.428 GB, free: 14.28 MB / 1.17 GB Notification: Performance of SimCode: time 0.01527/1.59, allocations: 6.897 MB / 1.435 GB, free: 7.352 MB / 1.17 GB Notification: Performance of Templates: time 0.1325/1.723, allocations: 75.59 MB / 1.509 GB, free: 12.1 MB / 1.248 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches