Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.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.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pumCon.y|pumCon.criSol.G_TC|pumCon.weaBus.HDirNor",fileNamePrefix="Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController") translateModel(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pumCon.y|pumCon.criSol.G_TC|pumCon.weaBus.HDirNor",fileNamePrefix="Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001596/0.001603, allocations: 108 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.001708/0.001709, allocations: 187 kB / 17.34 MB, free: 5.719 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.4/1.4, allocations: 222.9 MB / 241 MB, free: 14.95 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.303/2.303, allocations: 390.2 MB / 0.6655 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001494, allocations: 67.89 kB / 0.9515 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9316/0.9331, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.006144/0.9393, allocations: 4.681 MB / 1.093 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.2004/1.14, allocations: 151 MB / 1.241 GB, free: 344 kB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001324/1.141, allocations: 14.94 kB / 1.241 GB, free: 340 kB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0008341/1.142, allocations: 218.9 kB / 1.241 GB, free: 152 kB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.002579/1.145, allocations: 0.5812 MB / 1.241 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.00256/1.147, allocations: 0.8415 MB / 1.242 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001856/1.149, allocations: 1.375 MB / 1.244 GB, free: 14.23 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009587/1.15, allocations: 0.637 MB / 1.244 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007639/1.151, allocations: 495.2 kB / 1.245 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005744/1.151, allocations: 0.5242 MB / 1.245 GB, free: 13.15 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.000165/1.152, allocations: 120.2 kB / 1.245 GB, free: 13.15 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001115/1.153, allocations: 0.5027 MB / 1.246 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003002/1.153, allocations: 307 kB / 1.246 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0004776/1.153, allocations: 0.5634 MB / 1.247 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001878/1.155, allocations: 1.698 MB / 1.248 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/1.155, allocations: 0 / 1.248 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.546e-06/1.155, allocations: 0 / 1.248 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.361e-05/1.155, allocations: 3.938 kB / 1.248 GB, free: 10.16 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 217 * Number of variables: 217 Notification: Performance of Generate backend data structure: time 0.002428/1.158, allocations: 1.5 MB / 1.25 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/1.158, allocations: 12.03 kB / 1.25 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009042/1.159, allocations: 187.3 kB / 1.25 GB, free: 8.414 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/1.16, allocations: 0.7974 MB / 1.251 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.298e-05/1.16, allocations: 66 kB / 1.251 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/1.16, allocations: 80 kB / 1.251 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001638/1.162, allocations: 0.9379 MB / 1.252 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.183e-05/1.162, allocations: 7.984 kB / 1.252 GB, free: 6.445 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.403e-05/1.162, allocations: 36 kB / 1.252 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.998e-05/1.162, allocations: 20 kB / 1.252 GB, free: 6.391 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001812/1.164, allocations: 1.128 MB / 1.253 GB, free: 5.262 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00394/1.168, allocations: 2.574 MB / 1.255 GB, free: 2.617 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001517/1.169, allocations: 0.8286 MB / 1.256 GB, free: 1.785 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000548/1.17, allocations: 322.7 kB / 1.257 GB, free: 1.469 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001816/1.17, allocations: 109.7 kB / 1.257 GB, free: 1.344 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008807/1.171, allocations: 0.4992 MB / 1.257 GB, free: 0.8242 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=82): time 2.475e-06/1.171, allocations: 0 / 1.257 GB, free: 0.8242 MB / 0.9825 GB Notification: Performance of matching and sorting (n=82): time 0.003271/1.174, allocations: 1.249 MB / 1.258 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/1.174, allocations: 196.6 kB / 1.259 GB, free: 15.31 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008724/1.175, allocations: 0.6881 MB / 1.259 GB, free: 14.62 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.894e-05/1.175, allocations: 41.7 kB / 1.259 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003218/1.176, allocations: 424.3 kB / 1.26 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002189/1.176, allocations: 268.2 kB / 1.26 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002414/1.176, allocations: 158.5 kB / 1.26 GB, free: 13.72 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001677/1.176, allocations: 394.7 kB / 1.26 GB, free: 13.32 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005399/1.177, allocations: 289.8 kB / 1.261 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006425/1.177, allocations: 375.1 kB / 1.261 GB, free: 12.66 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/1.179, allocations: 0.6385 MB / 1.262 GB, free: 12.01 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/1.179, allocations: 0 / 1.262 GB, free: 12.01 MB / 0.9981 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001994/1.181, allocations: 0.88 MB / 1.263 GB, free: 11.12 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/1.181, allocations: 11.94 kB / 1.263 GB, free: 11.11 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/1.181, allocations: 3.938 kB / 1.263 GB, free: 11.11 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005885/1.181, allocations: 84.86 kB / 1.263 GB, free: 11.02 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006513/1.182, allocations: 167.7 kB / 1.263 GB, free: 10.86 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002047/1.184, allocations: 1.646 MB / 1.264 GB, free: 9.062 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007462/1.185, allocations: 95.38 kB / 1.265 GB, free: 8.969 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.964e-05/1.185, allocations: 39.97 kB / 1.265 GB, free: 8.93 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 (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,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 95 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0005176/1.185, allocations: 275.3 kB / 1.265 GB, free: 8.648 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/1.185, allocations: 90.88 kB / 1.265 GB, free: 8.559 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002372/1.188, allocations: 1.105 MB / 1.266 GB, free: 7.43 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/1.188, allocations: 8 kB / 1.266 GB, free: 7.422 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/1.188, allocations: 0 / 1.266 GB, free: 7.422 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/1.188, allocations: 7.984 kB / 1.266 GB, free: 7.414 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001084/1.189, allocations: 0.9386 MB / 1.267 GB, free: 6.426 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/1.189, allocations: 0 / 1.267 GB, free: 6.426 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000583/1.19, allocations: 151.8 kB / 1.267 GB, free: 6.277 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004273/1.19, allocations: 76.78 kB / 1.267 GB, free: 6.199 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.388e-05/1.19, allocations: 27.92 kB / 1.267 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001866/1.192, allocations: 1.666 MB / 1.269 GB, free: 4.359 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/1.192, allocations: 4.062 kB / 1.269 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00198/1.194, allocations: 0.9707 MB / 1.27 GB, free: 3.363 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003631/1.194, allocations: 283.7 kB / 1.27 GB, free: 3.066 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001199/1.194, allocations: 23.89 kB / 1.27 GB, free: 3.043 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006138/1.195, allocations: 63.88 kB / 1.27 GB, free: 2.98 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/1.195, allocations: 76.89 kB / 1.27 GB, free: 2.906 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.757e-05/1.195, allocations: 39.97 kB / 1.27 GB, free: 2.867 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0006023/1.196, allocations: 491 kB / 1.271 GB, free: 2.395 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.7e-07/1.196, allocations: 0 / 1.271 GB, free: 2.395 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0008506/1.197, allocations: 331.2 kB / 1.271 GB, free: 2.07 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0014/1.198, allocations: 0.598 MB / 1.272 GB, free: 1.652 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001771/1.2, allocations: 0.8624 MB / 1.272 GB, free: 0.7734 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/1.2, allocations: 4 kB / 1.272 GB, free: 0.7695 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000912/1.201, allocations: 0.5317 MB / 1.273 GB, free: 232 kB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001212/1.202, allocations: 308.3 kB / 1.273 GB, free: 15.95 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004052/1.206, allocations: 1.913 MB / 1.275 GB, free: 14 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005954/1.207, allocations: 1.039 MB / 1.276 GB, free: 12.94 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003136/1.207, allocations: 119.4 kB / 1.276 GB, free: 12.82 MB / 1.014 GB Notification: Performance of SimCode: time 6.01e-07/1.207, allocations: 3.938 kB / 1.276 GB, free: 12.82 MB / 1.014 GB Notification: Performance of Templates: time 0.02682/1.234, allocations: 19.53 MB / 1.295 GB, free: 9.328 MB / 1.029 GB make -j1 -f Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.makefile (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.sim & ./Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches