Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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 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.ThreePhasesBalanced.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_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.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_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 117.2 kB / 16.42 MB, free: 6.5 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.001218/0.001218, allocations: 187.9 kB / 17.35 MB, free: 5.762 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.488/1.488, allocations: 222.9 MB / 241 MB, free: 15.17 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.282/2.282, allocations: 390.3 MB / 0.6655 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 75.86 kB / 0.9515 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.003/1.004, allocations: 140.4 MB / 1.089 GB, free: 5.535 MB / 0.8575 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.ThreePhasesBalanced.Sources.Examples.PVPanels): time 0.016/1.02, allocations: 11.42 MB / 1.1 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.2272/1.248, allocations: 153.3 MB / 1.25 GB, free: 9 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003394/1.251, allocations: 35.81 kB / 1.25 GB, free: 8.965 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.003098/1.254, allocations: 0.7088 MB / 1.25 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.005566/1.26, allocations: 1.072 MB / 1.251 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.005422/1.265, allocations: 1.658 MB / 1.253 GB, free: 5.527 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.005455/1.271, allocations: 3.291 MB / 1.256 GB, free: 2.227 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00578/1.276, allocations: 3.259 MB / 1.259 GB, free: 14.9 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002682/1.279, allocations: 1.406 MB / 1.261 GB, free: 13.49 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0031/1.282, allocations: 1.58 MB / 1.262 GB, free: 11.9 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001404/1.284, allocations: 404 kB / 1.263 GB, free: 11.51 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00302/1.287, allocations: 0.9639 MB / 1.264 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001471/1.288, allocations: 0.9037 MB / 1.264 GB, free: 9.637 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.003229/1.291, allocations: 1.567 MB / 1.266 GB, free: 8.062 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.006397/1.298, allocations: 4.671 MB / 1.271 GB, free: 3.379 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/1.298, allocations: 0 / 1.271 GB, free: 3.379 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.104e-06/1.298, allocations: 4 kB / 1.271 GB, free: 3.375 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.618e-05/1.298, allocations: 0 / 1.271 GB, free: 3.375 MB / 0.9981 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.007278/1.305, allocations: 3.213 MB / 1.274 GB, free: 92 kB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/1.305, allocations: 8.031 kB / 1.274 GB, free: 84 kB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01174/1.317, allocations: 1.632 MB / 1.275 GB, free: 14.44 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003501/1.321, allocations: 1.565 MB / 1.277 GB, free: 12.82 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002344/1.321, allocations: 209.4 kB / 1.277 GB, free: 12.61 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004682/1.321, allocations: 260 kB / 1.277 GB, free: 12.36 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008803/1.33, allocations: 3.663 MB / 1.281 GB, free: 8.562 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.895e-05/1.33, allocations: 3.984 kB / 1.281 GB, free: 8.559 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003036/1.331, allocations: 119.9 kB / 1.281 GB, free: 8.441 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000148/1.331, allocations: 125 kB / 1.281 GB, free: 8.316 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01134/1.342, allocations: 4.11 MB / 1.285 GB, free: 4.191 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0209/1.363, allocations: 10.5 MB / 1.295 GB, free: 9.363 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009035/1.372, allocations: 2.937 MB / 1.298 GB, free: 6.414 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003986/1.376, allocations: 1.394 MB / 1.3 GB, free: 5.016 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000959/1.377, allocations: 0.5904 MB / 1.3 GB, free: 4.316 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004759/1.382, allocations: 1.761 MB / 1.302 GB, free: 2.531 MB / 1.029 GB Notification: Performance of pre-optimization done (n=217): time 7.374e-06/1.382, allocations: 0 / 1.302 GB, free: 2.531 MB / 1.029 GB Notification: Performance of matching and sorting (n=218): time 0.01463/1.397, allocations: 4.784 MB / 1.307 GB, free: 13.73 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001756/1.397, allocations: 253.3 kB / 1.307 GB, free: 13.43 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002356/1.399, allocations: 1.228 MB / 1.308 GB, free: 12.18 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0003768/1.4, allocations: 73.7 kB / 1.308 GB, free: 12.11 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.001057/1.401, allocations: 0.9843 MB / 1.309 GB, free: 11.11 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009775/1.402, allocations: 0.6891 MB / 1.31 GB, free: 10.41 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001078/1.403, allocations: 427.4 kB / 1.31 GB, free: 9.984 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001174/1.403, allocations: 309.1 kB / 1.31 GB, free: 9.68 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003863/1.407, allocations: 1.216 MB / 1.312 GB, free: 8.453 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004226/1.411, allocations: 1.511 MB / 1.313 GB, free: 6.844 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007923/1.419, allocations: 2.675 MB / 1.316 GB, free: 4.094 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.314e-05/1.419, allocations: 7.938 kB / 1.316 GB, free: 4.086 MB / 1.045 GB Notification: Performance of matching and sorting (n=267) (initialization): time 0.00948/1.428, allocations: 3.08 MB / 1.319 GB, free: 0.9961 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.236e-05/1.428, allocations: 8 kB / 1.319 GB, free: 0.9883 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.282e-05/1.428, allocations: 8 kB / 1.319 GB, free: 0.9805 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.557e-05/1.429, allocations: 12 kB / 1.319 GB, free: 0.9688 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003551/1.432, allocations: 0.605 MB / 1.319 GB, free: 372 kB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.509e-05/1.432, allocations: 19.92 kB / 1.319 GB, free: 352 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003088/1.435, allocations: 313.4 kB / 1.32 GB, free: 40 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003863/1.436, allocations: 107.9 kB / 1.32 GB, free: 15.93 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004958/1.441, allocations: 1.605 MB / 1.321 GB, free: 14.32 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00403/1.445, allocations: 1.481 MB / 1.323 GB, free: 12.74 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007451/1.452, allocations: 2.614 MB / 1.325 GB, free: 10.05 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.26e-05/1.452, allocations: 7.938 kB / 1.325 GB, free: 10.04 MB / 1.061 GB Notification: Performance of matching and sorting (n=267) (initialization_lambda0): time 0.00944/1.462, allocations: 3.013 MB / 1.328 GB, free: 7.02 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.801e-05/1.462, allocations: 10.5 kB / 1.328 GB, free: 7.012 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.41e-05/1.462, allocations: 4 kB / 1.328 GB, free: 7.008 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.365e-05/1.462, allocations: 23.92 kB / 1.328 GB, free: 6.984 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003562/1.465, allocations: 0.5894 MB / 1.329 GB, free: 6.395 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.449e-05/1.465, allocations: 19.94 kB / 1.329 GB, free: 6.375 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003147/1.469, allocations: 306.4 kB / 1.329 GB, free: 6.074 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003365/1.469, allocations: 107.9 kB / 1.329 GB, free: 5.969 MB / 1.061 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.0009169/1.47, allocations: 315.7 kB / 1.33 GB, free: 5.652 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007703/1.471, allocations: 189.8 kB / 1.33 GB, free: 5.465 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01059/1.481, allocations: 3.496 MB / 1.333 GB, free: 1.945 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.551e-05/1.481, allocations: 11.95 kB / 1.333 GB, free: 1.934 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/1.481, allocations: 0 / 1.333 GB, free: 1.934 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001587/1.483, allocations: 0.5995 MB / 1.334 GB, free: 1.312 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006688/1.484, allocations: 59.72 kB / 1.334 GB, free: 1.254 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003031/1.487, allocations: 255.6 kB / 1.334 GB, free: 1.004 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004054/1.487, allocations: 157.8 kB / 1.334 GB, free: 0.8477 MB / 1.061 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01077/1.498, allocations: 3.344 MB / 1.337 GB, free: 13.5 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.009202/1.507, allocations: 3.24 MB / 1.341 GB, free: 10.24 MB / 1.076 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003823/1.511, allocations: 1.437 MB / 1.342 GB, free: 8.805 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.001942/1.513, allocations: 0.8799 MB / 1.343 GB, free: 7.926 MB / 1.076 GB Notification: Performance of Backend: time 1.362e-06/1.513, allocations: 0 / 1.343 GB, free: 7.926 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.01444/1.527, allocations: 4.142 MB / 1.347 GB, free: 4.016 MB / 1.076 GB Notification: Performance of SimCode: time 0.009451/1.537, allocations: 4.22 MB / 1.351 GB, free: 15.76 MB / 1.092 GB Notification: Performance of Templates: time 0.1009/1.638, allocations: 56.1 MB / 1.406 GB, free: 7.891 MB / 1.139 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_PVPanels.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.PVPanels.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches