Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.OnePhase.Sources.Examples.PVPanels,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent|pvSimple.load.S.1.|pvSimple.load.S.2.|RL.S.1.|RL.S.2.|pvOriented.panel.load.S.1.|pvOriented.panel.load.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent|pvSimple.load.S.1.|pvSimple.load.S.2.|RL.S.1.|RL.S.2.|pvOriented.panel.load.S.1.|pvOriented.panel.load.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 110.7 kB / 16.42 MB, free: 6.512 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.001686/0.001686, allocations: 189.5 kB / 17.35 MB, free: 5.738 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.58/1.58, 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 11.0.1-master/package.mo): time 2.836/2.836, allocations: 469.4 MB / 0.7428 GB, free: 3.492 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00164/0.00164, allocations: 63.84 kB / 1.065 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8838/0.8854, allocations: 159.1 MB / 1.221 GB, free: 2.227 MB / 0.9356 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/Electrical/Interfaces/PartialPV.mo:8:3-10:67:writable] Warning: Parameter pvOriented.panel.V_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=110) as default value. Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels): time 0.01666/0.9021, allocations: 12.34 MB / 1.233 GB, free: 5.828 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.1903/1.093, allocations: 153.6 MB / 1.383 GB, free: 11.6 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004406/1.097, allocations: 31.88 kB / 1.383 GB, free: 11.57 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.003265/1.1, allocations: 0.7877 MB / 1.384 GB, free: 10.77 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.005465/1.106, allocations: 1.278 MB / 1.385 GB, free: 9.492 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.005006/1.111, allocations: 1.678 MB / 1.387 GB, free: 7.82 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.00607/1.117, allocations: 3.697 MB / 1.39 GB, free: 4.113 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006454/1.123, allocations: 3.158 MB / 1.393 GB, free: 0.8867 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003033/1.126, allocations: 1.472 MB / 1.395 GB, free: 15.41 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003267/1.13, allocations: 1.63 MB / 1.396 GB, free: 13.77 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 0.001417/1.131, allocations: 404 kB / 1.397 GB, free: 13.38 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0031/1.134, allocations: 0.9795 MB / 1.398 GB, free: 12.4 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 0.0016/1.136, allocations: 0.8998 MB / 1.399 GB, free: 11.5 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 0.003581/1.139, allocations: 1.645 MB / 1.4 GB, free: 9.844 MB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.007966/1.147, allocations: 4.8 MB / 1.405 GB, free: 5.031 MB / 1.123 GB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/1.147, allocations: 0 / 1.405 GB, free: 5.031 MB / 1.123 GB Notification: Performance of FrontEnd: time 1.873e-06/1.148, allocations: 0 / 1.405 GB, free: 5.031 MB / 1.123 GB Notification: Performance of Transformations before backend: time 0.0002083/1.148, allocations: 4 kB / 1.405 GB, free: 5.027 MB / 1.123 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 700 * Number of variables: 700 Notification: Performance of Generate backend data structure: time 0.0129/1.161, allocations: 3.259 MB / 1.408 GB, free: 1.699 MB / 1.123 GB Notification: Performance of prepare preOptimizeDAE: time 6.499e-05/1.161, allocations: 12.61 kB / 1.408 GB, free: 1.688 MB / 1.123 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01245/1.173, allocations: 1.636 MB / 1.41 GB, free: 48 kB / 1.123 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004097/1.177, allocations: 1.577 MB / 1.411 GB, free: 14.41 MB / 1.139 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002441/1.178, allocations: 197.4 kB / 1.411 GB, free: 14.21 MB / 1.139 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001043/1.179, allocations: 260 kB / 1.412 GB, free: 13.96 MB / 1.139 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01185/1.191, allocations: 3.663 MB / 1.415 GB, free: 10.17 MB / 1.139 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001184/1.191, allocations: 11.92 kB / 1.415 GB, free: 10.16 MB / 1.139 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008256/1.192, allocations: 108 kB / 1.415 GB, free: 10.05 MB / 1.139 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001754/1.192, allocations: 129 kB / 1.415 GB, free: 9.922 MB / 1.139 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01287/1.205, allocations: 4.114 MB / 1.42 GB, free: 5.793 MB / 1.139 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02427/1.229, allocations: 11.3 MB / 1.431 GB, free: 9.977 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009477/1.238, allocations: 2.933 MB / 1.433 GB, free: 7.039 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004136/1.243, allocations: 1.396 MB / 1.435 GB, free: 5.637 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001051/1.244, allocations: 0.5865 MB / 1.435 GB, free: 4.938 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005347/1.249, allocations: 1.762 MB / 1.437 GB, free: 3.156 MB / 1.154 GB Notification: Performance of pre-optimization done (n=217): time 8.586e-06/1.249, allocations: 0 / 1.437 GB, free: 3.156 MB / 1.154 GB Notification: Performance of matching and sorting (n=218): time 0.01541/1.265, allocations: 4.784 MB / 1.442 GB, free: 14.35 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000163/1.265, allocations: 261.2 kB / 1.442 GB, free: 14.04 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002331/1.267, allocations: 1.224 MB / 1.443 GB, free: 12.8 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 0.000425/1.268, allocations: 69.69 kB / 1.443 GB, free: 12.72 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.001066/1.269, allocations: 0.9765 MB / 1.444 GB, free: 11.73 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 0.001001/1.27, allocations: 0.7086 MB / 1.445 GB, free: 11.02 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001265/1.271, allocations: 423.4 kB / 1.445 GB, free: 10.59 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001097/1.271, allocations: 301.1 kB / 1.446 GB, free: 10.3 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003829/1.275, allocations: 1.216 MB / 1.447 GB, free: 9.07 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00404/1.279, allocations: 1.518 MB / 1.448 GB, free: 7.457 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00749/1.286, allocations: 2.671 MB / 1.451 GB, free: 4.715 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.103e-05/1.286, allocations: 3.938 kB / 1.451 GB, free: 4.711 MB / 1.17 GB Notification: Performance of matching and sorting (n=267) (initialization): time 0.008969/1.295, allocations: 3.092 MB / 1.454 GB, free: 1.609 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 3.581e-05/1.296, allocations: 8 kB / 1.454 GB, free: 1.602 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.041e-05/1.296, allocations: 8 kB / 1.454 GB, free: 1.594 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.589e-05/1.296, allocations: 12 kB / 1.454 GB, free: 1.582 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003552/1.299, allocations: 0.6007 MB / 1.454 GB, free: 0.9805 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.991e-05/1.299, allocations: 16 kB / 1.455 GB, free: 0.9648 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003409/1.303, allocations: 318.4 kB / 1.455 GB, free: 0.6523 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004409/1.303, allocations: 103.9 kB / 1.455 GB, free: 0.5508 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005127/1.308, allocations: 1.605 MB / 1.456 GB, free: 14.93 MB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003966/1.312, allocations: 1.488 MB / 1.458 GB, free: 13.34 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007215/1.319, allocations: 2.618 MB / 1.46 GB, free: 10.64 MB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.089e-05/1.32, allocations: 0 / 1.46 GB, free: 10.64 MB / 1.186 GB Notification: Performance of matching and sorting (n=267) (initialization_lambda0): time 0.008614/1.328, allocations: 3.028 MB / 1.463 GB, free: 7.602 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/1.328, allocations: 4 kB / 1.463 GB, free: 7.598 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/1.328, allocations: 8 kB / 1.463 GB, free: 7.59 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.542e-05/1.328, allocations: 16 kB / 1.463 GB, free: 7.574 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003301/1.332, allocations: 0.5968 MB / 1.464 GB, free: 6.977 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.141e-05/1.332, allocations: 12 kB / 1.464 GB, free: 6.965 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003031/1.335, allocations: 309 kB / 1.464 GB, free: 6.664 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003231/1.335, allocations: 107.9 kB / 1.464 GB, free: 6.559 MB / 1.186 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (267): * Single equations (assignments): 267 * 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.0008469/1.336, allocations: 316.3 kB / 1.465 GB, free: 6.242 MB / 1.186 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000713/1.337, allocations: 185.7 kB / 1.465 GB, free: 6.059 MB / 1.186 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01027/1.347, allocations: 3.492 MB / 1.468 GB, free: 2.547 MB / 1.186 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.059e-05/1.347, allocations: 11.95 kB / 1.468 GB, free: 2.535 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/1.347, allocations: 7.938 kB / 1.468 GB, free: 2.527 MB / 1.186 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001381/1.348, allocations: 0.5995 MB / 1.469 GB, free: 1.906 MB / 1.186 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006041/1.349, allocations: 63.77 kB / 1.469 GB, free: 1.844 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002836/1.352, allocations: 251.7 kB / 1.469 GB, free: 1.598 MB / 1.186 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000356/1.352, allocations: 157.8 kB / 1.469 GB, free: 1.445 MB / 1.186 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01024/1.362, allocations: 3.344 MB / 1.473 GB, free: 14.09 MB / 1.201 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.008527/1.371, allocations: 3.244 MB / 1.476 GB, free: 10.83 MB / 1.201 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003699/1.375, allocations: 1.437 MB / 1.477 GB, free: 9.398 MB / 1.201 GB Notification: Performance of sorting global known variables: time 0.001984/1.377, allocations: 0.8838 MB / 1.478 GB, free: 8.516 MB / 1.201 GB Notification: Performance of Backend: time 5.81e-07/1.377, allocations: 0 / 1.478 GB, free: 8.516 MB / 1.201 GB Notification: Performance of simCode: created initialization part: time 0.01336/1.39, allocations: 4.164 MB / 1.482 GB, free: 4.586 MB / 1.201 GB Notification: Performance of SimCode: time 0.009903/1.4, allocations: 4.239 MB / 1.486 GB, free: 312 kB / 1.201 GB Notification: Performance of Templates: time 0.09946/1.5, allocations: 57.51 MB / 1.542 GB, free: 7.035 MB / 1.264 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sources_Examples_PVPanels.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches