Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.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.DHC.Networks.Controls.Examples.AgentPump1PipeExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|AgentPump.TSouIn|AgentPump.TSouOut|AgentPump.TSou|AgentPump.TSupDis|AgentPump.TRetDis|AgentPump.y",fileNamePrefix="Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample") translateModel(Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|AgentPump.TSouIn|AgentPump.TSouOut|AgentPump.TSou|AgentPump.TSupDis|AgentPump.TRetDis|AgentPump.y",fileNamePrefix="Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001698/0.001698, allocations: 109.3 kB / 16.41 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.001965/0.001965, 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.424/1.424, allocations: 222.9 MB / 241.1 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.616/2.616, allocations: 461.9 MB / 0.7355 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.001461, allocations: 63.89 kB / 1.055 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.063/1.065, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample): time 0.006146/1.071, allocations: 3.722 MB / 1.212 GB, free: 9.895 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003923/1.075, allocations: 1.718 MB / 1.214 GB, free: 8.168 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007715/1.076, allocations: 15.94 kB / 1.214 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0008798/1.077, allocations: 282.5 kB / 1.214 GB, free: 7.875 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0007651/1.078, allocations: 250.5 kB / 1.214 GB, free: 7.629 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001207/1.079, allocations: 462.7 kB / 1.215 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001304/1.08, allocations: 0.9379 MB / 1.216 GB, free: 6.234 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005633/1.081, allocations: 328.5 kB / 1.216 GB, free: 5.91 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004946/1.081, allocations: 346.5 kB / 1.216 GB, free: 5.57 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004059/1.082, allocations: 346.3 kB / 1.217 GB, free: 5.23 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001038/1.082, allocations: 76 kB / 1.217 GB, free: 5.156 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003168/1.082, allocations: 116 kB / 1.217 GB, free: 5.043 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001868/1.082, allocations: 187.4 kB / 1.217 GB, free: 4.859 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002932/1.083, allocations: 353.9 kB / 1.217 GB, free: 4.512 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001114/1.084, allocations: 0.9592 MB / 1.218 GB, free: 3.555 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/1.084, allocations: 0 / 1.218 GB, free: 3.555 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.663e-06/1.084, allocations: 0 / 1.218 GB, free: 3.555 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.69e-05/1.084, allocations: 0 / 1.218 GB, free: 3.555 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.001931/1.086, allocations: 1.068 MB / 1.219 GB, free: 2.434 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/1.086, allocations: 8.031 kB / 1.219 GB, free: 2.426 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001702/1.086, allocations: 80 kB / 1.219 GB, free: 2.348 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000867/1.087, allocations: 0.5471 MB / 1.22 GB, free: 1.758 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.868e-05/1.087, allocations: 33.38 kB / 1.22 GB, free: 1.727 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.047e-05/1.087, allocations: 48.12 kB / 1.22 GB, free: 1.68 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009628/1.088, allocations: 490.9 kB / 1.22 GB, free: 1.188 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/1.088, allocations: 4 kB / 1.22 GB, free: 1.184 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.643e-05/1.088, allocations: 20 kB / 1.22 GB, free: 1.164 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.566e-05/1.088, allocations: 8 kB / 1.22 GB, free: 1.156 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007597/1.089, allocations: 355.8 kB / 1.221 GB, free: 0.8086 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002759/1.092, allocations: 1.75 MB / 1.222 GB, free: 14.97 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/1.093, allocations: 379 kB / 1.223 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003766/1.093, allocations: 160.8 kB / 1.223 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.493e-05/1.093, allocations: 15.92 kB / 1.223 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000537/1.094, allocations: 235.1 kB / 1.223 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=35): time 4.729e-06/1.094, allocations: 0 / 1.223 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of matching and sorting (n=35): time 0.001352/1.095, allocations: 0.5094 MB / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.376e-05/1.095, allocations: 106.8 kB / 1.224 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009657/1.096, allocations: 0.7269 MB / 1.225 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.876e-05/1.096, allocations: 41.7 kB / 1.225 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003038/1.096, allocations: 348.1 kB / 1.225 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/1.097, allocations: 114.5 kB / 1.225 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/1.097, allocations: 82.12 kB / 1.225 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001374/1.097, allocations: 322 kB / 1.225 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003528/1.097, allocations: 150.5 kB / 1.226 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004607/1.098, allocations: 268.2 kB / 1.226 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006856/1.098, allocations: 330.2 kB / 1.226 GB, free: 11.08 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/1.098, allocations: 4 kB / 1.226 GB, free: 11.08 MB / 0.9512 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001038/1.099, allocations: 483.8 kB / 1.227 GB, free: 10.6 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/1.099, allocations: 8 kB / 1.227 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/1.099, allocations: 0 / 1.227 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/1.1, allocations: 8.219 kB / 1.227 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003609/1.1, allocations: 91.81 kB / 1.227 GB, free: 10.49 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/1.1, allocations: 4 kB / 1.227 GB, free: 10.49 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004174/1.1, allocations: 67.55 kB / 1.227 GB, free: 10.42 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.599e-05/1.1, allocations: 19.98 kB / 1.227 GB, free: 10.4 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005204/1.101, allocations: 281 kB / 1.227 GB, free: 10.12 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003466/1.101, allocations: 236.3 kB / 1.227 GB, free: 9.852 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005039/1.102, allocations: 291.5 kB / 1.228 GB, free: 9.543 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.417e-06/1.102, allocations: 4 kB / 1.228 GB, free: 9.539 MB / 0.9512 GB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0007604/1.103, allocations: 428.1 kB / 1.228 GB, free: 9.113 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/1.103, allocations: 9.656 kB / 1.228 GB, free: 9.105 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/1.103, allocations: 4 kB / 1.228 GB, free: 9.102 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.951e-06/1.103, allocations: 7.938 kB / 1.228 GB, free: 9.094 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002804/1.103, allocations: 75.89 kB / 1.228 GB, free: 9.02 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.625e-06/1.103, allocations: 7.938 kB / 1.228 GB, free: 9.012 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003839/1.103, allocations: 71.86 kB / 1.228 GB, free: 8.941 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.984e-05/1.103, allocations: 16 kB / 1.228 GB, free: 8.926 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.TSouIn.nextTimeEvent,$whenCondition3,$PRE.TSouOut.nextTimeEvent,$whenCondition2,$PRE.TretDis.nextTimeEvent,$whenCondition1,TretDis.nextTimeEventScaled,$PRE.TretDis.nextTimeEventScaled,TretDis.nextTimeEvent,TSouOut.nextTimeEventScaled,$PRE.TSouOut.nextTimeEventScaled,TSouOut.nextTimeEvent,AgentPump.hys1.y,$PRE.AgentPump.hys1.y,AgentPump.hys.y,$PRE.AgentPump.hys.y,AgentPump.NetDemBool.lesHys.y,$PRE.AgentPump.NetDemBool.lesHys.y,TSouIn.nextTimeEventScaled,$PRE.TSouIn.nextTimeEventScaled,TSouIn.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * 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.0001915/1.104, allocations: 210.4 kB / 1.228 GB, free: 8.715 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000111/1.104, allocations: 71.09 kB / 1.228 GB, free: 8.645 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000171/1.104, allocations: 70.62 kB / 1.228 GB, free: 8.574 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/1.104, allocations: 3.984 kB / 1.228 GB, free: 8.57 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/1.104, allocations: 4 kB / 1.229 GB, free: 8.566 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001578/1.104, allocations: 148.1 kB / 1.229 GB, free: 8.402 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.436e-05/1.104, allocations: 8 kB / 1.229 GB, free: 8.395 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002728/1.104, allocations: 35.95 kB / 1.229 GB, free: 8.359 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/1.104, allocations: 39.94 kB / 1.229 GB, free: 8.32 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009818/1.105, allocations: 485.3 kB / 1.229 GB, free: 7.844 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009599/1.106, allocations: 0.5718 MB / 1.23 GB, free: 7.254 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003559/1.107, allocations: 152.5 kB / 1.23 GB, free: 7.105 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0007071/1.108, allocations: 0.5186 MB / 1.23 GB, free: 6.59 MB / 0.9512 GB Notification: Performance of Backend: time 1.092e-06/1.108, allocations: 3.938 kB / 1.23 GB, free: 6.586 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002794/1.11, allocations: 0.9432 MB / 1.231 GB, free: 5.855 MB / 0.9512 GB Notification: Performance of SimCode: time 0.00242/1.113, allocations: 1.49 MB / 1.233 GB, free: 4.32 MB / 0.9512 GB Notification: Performance of Templates: time 0.02005/1.133, allocations: 9.63 MB / 1.242 GB, free: 10.77 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.makefile (rm -f Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.pipe ; mkfifo Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.pipe >> ../files/Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.sim & ./Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Networks_Controls_Examples_AgentPump1PipeExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches