Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.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.DC.Sources.Examples.PVSimpleOriented,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sou.S.1.|sen.V|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented") translateModel(Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sou.S.1.|sen.V|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001472/0.001471, 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.001621/0.001621, 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.657/2.657, allocations: 469.4 MB / 0.7428 GB, free: 3.562 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 67.91 kB / 1.065 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9523/0.9537, allocations: 159.1 MB / 1.221 GB, free: 2.316 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 pv.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.DC.Sources.Examples.PVSimpleOriented): time 0.01463/0.9684, allocations: 9.912 MB / 1.231 GB, free: 8.359 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.1866/1.155, allocations: 152.5 MB / 1.379 GB, free: 15.25 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002145/1.157, allocations: 31.88 kB / 1.38 GB, free: 15.22 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.002996/1.16, allocations: 0.7448 MB / 1.38 GB, free: 14.48 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.005136/1.165, allocations: 0.94 MB / 1.381 GB, free: 13.54 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.004329/1.17, allocations: 1.272 MB / 1.382 GB, free: 12.27 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.004924/1.175, allocations: 2.684 MB / 1.385 GB, free: 9.578 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004703/1.179, allocations: 2.194 MB / 1.387 GB, free: 7.332 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001864/1.181, allocations: 1.036 MB / 1.388 GB, free: 6.293 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00229/1.184, allocations: 1.109 MB / 1.389 GB, free: 5.18 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 0.001006/1.185, allocations: 276 kB / 1.39 GB, free: 4.91 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002262/1.187, allocations: 0.7922 MB / 1.39 GB, free: 4.117 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.001052/1.188, allocations: 0.6233 MB / 1.391 GB, free: 3.492 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.002767/1.191, allocations: 1.151 MB / 1.392 GB, free: 2.336 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.006959/1.198, allocations: 3.396 MB / 1.395 GB, free: 14.93 MB / 1.123 GB Notification: Performance of FrontEnd - DAE generated: time 1.091e-05/1.198, allocations: 0 / 1.395 GB, free: 14.93 MB / 1.123 GB Notification: Performance of FrontEnd: time 4.479e-06/1.198, allocations: 0 / 1.395 GB, free: 14.93 MB / 1.123 GB Notification: Performance of Transformations before backend: time 0.0001365/1.198, allocations: 0 / 1.395 GB, free: 14.93 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.00977/1.208, allocations: 2.393 MB / 1.398 GB, free: 12.48 MB / 1.123 GB Notification: Performance of prepare preOptimizeDAE: time 7.109e-05/1.208, allocations: 12.62 kB / 1.398 GB, free: 12.47 MB / 1.123 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009757/1.218, allocations: 0.9191 MB / 1.399 GB, free: 11.55 MB / 1.123 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003867/1.222, allocations: 1.215 MB / 1.4 GB, free: 10.29 MB / 1.123 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002228/1.222, allocations: 139.6 kB / 1.4 GB, free: 10.15 MB / 1.123 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000773/1.223, allocations: 179.9 kB / 1.4 GB, free: 9.973 MB / 1.123 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01102/1.234, allocations: 2.327 MB / 1.402 GB, free: 7.582 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000115/1.234, allocations: 7.875 kB / 1.402 GB, free: 7.574 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008073/1.235, allocations: 72 kB / 1.402 GB, free: 7.504 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002054/1.235, allocations: 83.47 kB / 1.403 GB, free: 7.422 MB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01198/1.247, allocations: 2.64 MB / 1.405 GB, free: 4.777 MB / 1.123 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02107/1.268, allocations: 7.8 MB / 1.413 GB, free: 12.63 MB / 1.139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005946/1.274, allocations: 1.744 MB / 1.414 GB, free: 10.89 MB / 1.139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002207/1.276, allocations: 0.8353 MB / 1.415 GB, free: 10.05 MB / 1.139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007051/1.277, allocations: 490.7 kB / 1.416 GB, free: 9.48 MB / 1.139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00257/1.28, allocations: 1.078 MB / 1.417 GB, free: 8.375 MB / 1.139 GB Notification: Performance of pre-optimization done (n=144): time 4.088e-06/1.28, allocations: 0 / 1.417 GB, free: 8.375 MB / 1.139 GB Notification: Performance of matching and sorting (n=144): time 0.006954/1.287, allocations: 2.509 MB / 1.419 GB, free: 5.836 MB / 1.139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001367/1.287, allocations: 300 kB / 1.419 GB, free: 5.477 MB / 1.139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001485/1.288, allocations: 0.9568 MB / 1.42 GB, free: 4.5 MB / 1.139 GB Notification: Performance of collectPreVariables (initialization): time 0.000169/1.288, allocations: 53.7 kB / 1.42 GB, free: 4.441 MB / 1.139 GB Notification: Performance of collectInitialEqns (initialization): time 0.000638/1.289, allocations: 0.7026 MB / 1.421 GB, free: 3.727 MB / 1.139 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004334/1.29, allocations: 477.1 kB / 1.422 GB, free: 3.254 MB / 1.139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005244/1.29, allocations: 291.3 kB / 1.422 GB, free: 2.965 MB / 1.139 GB Notification: Performance of setup shared object (initialization): time 0.0001511/1.29, allocations: 361.9 kB / 1.422 GB, free: 2.605 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002019/1.292, allocations: 0.6997 MB / 1.423 GB, free: 1.902 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002165/1.294, allocations: 0.9009 MB / 1.424 GB, free: 0.9531 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004001/1.298, allocations: 1.536 MB / 1.425 GB, free: 15.38 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/1.298, allocations: 0 / 1.425 GB, free: 15.38 MB / 1.154 GB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005155/1.304, allocations: 1.863 MB / 1.427 GB, free: 13.5 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 2.843e-05/1.304, allocations: 8 kB / 1.427 GB, free: 13.49 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/1.304, allocations: 0 / 1.427 GB, free: 13.49 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000258/1.304, allocations: 32.84 kB / 1.427 GB, free: 13.46 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001939/1.306, allocations: 371.5 kB / 1.428 GB, free: 13.09 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00126/1.307, allocations: 1.39 MB / 1.429 GB, free: 11.56 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001945/1.309, allocations: 214.5 kB / 1.429 GB, free: 11.35 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001834/1.309, allocations: 71.89 kB / 1.429 GB, free: 11.28 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002722/1.312, allocations: 1.027 MB / 1.43 GB, free: 10.25 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002141/1.314, allocations: 0.9018 MB / 1.431 GB, free: 9.301 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004851/1.319, allocations: 1.541 MB / 1.433 GB, free: 7.719 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.028e-05/1.319, allocations: 4 kB / 1.433 GB, free: 7.715 MB / 1.154 GB Notification: Performance of matching and sorting (n=178) (initialization_lambda0): time 0.005065/1.324, allocations: 1.849 MB / 1.434 GB, free: 5.859 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/1.324, allocations: 4 kB / 1.434 GB, free: 5.855 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/1.324, allocations: 8 kB / 1.434 GB, free: 5.848 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/1.324, allocations: 12 kB / 1.434 GB, free: 5.836 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001928/1.326, allocations: 375.6 kB / 1.435 GB, free: 5.469 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.031e-05/1.326, allocations: 8 kB / 1.435 GB, free: 5.461 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00188/1.328, allocations: 209.2 kB / 1.435 GB, free: 5.258 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001611/1.328, allocations: 63.95 kB / 1.435 GB, free: 5.195 MB / 1.154 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 23 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,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,pv.HDirTil.incAng.decAng.tNext,$PRE.pv.HDirTil.incAng.decAng.tNext,pv.HDifTil.incAng.decAng.tNext,$PRE.pv.HDifTil.incAng.decAng.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (177): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004878/1.329, allocations: 274.1 kB / 1.435 GB, free: 4.922 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004319/1.329, allocations: 138.4 kB / 1.435 GB, free: 4.785 MB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005744/1.335, allocations: 2.105 MB / 1.437 GB, free: 2.664 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.136e-05/1.335, allocations: 7.969 kB / 1.437 GB, free: 2.656 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/1.335, allocations: 4 kB / 1.437 GB, free: 2.652 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008891/1.336, allocations: 442.8 kB / 1.438 GB, free: 2.199 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003507/1.336, allocations: 39.88 kB / 1.438 GB, free: 2.16 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001631/1.338, allocations: 147.8 kB / 1.438 GB, free: 2.016 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/1.338, allocations: 105.2 kB / 1.438 GB, free: 1.91 MB / 1.154 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005805/1.344, allocations: 2.133 MB / 1.44 GB, free: 15.77 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007164/1.351, allocations: 3.161 MB / 1.443 GB, free: 12.59 MB / 1.17 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002153/1.353, allocations: 0.877 MB / 1.444 GB, free: 11.71 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.001293/1.355, allocations: 0.6553 MB / 1.445 GB, free: 11.05 MB / 1.17 GB Notification: Performance of Backend: time 9.02e-07/1.355, allocations: 0 / 1.445 GB, free: 11.05 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.008855/1.364, allocations: 2.914 MB / 1.448 GB, free: 8.352 MB / 1.17 GB Notification: Performance of SimCode: time 0.006017/1.37, allocations: 3.179 MB / 1.451 GB, free: 5.129 MB / 1.17 GB Notification: Performance of Templates: time 0.06208/1.432, allocations: 38.62 MB / 1.488 GB, free: 14.76 MB / 1.217 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.sim & ./Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sources_Examples_PVSimpleOriented.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches