Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.on|pumCon.criSol.G_TC|pumCon.weaBus.HDirNor",fileNamePrefix="Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController") translateModel(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pumCon.on|pumCon.criSol.G_TC|pumCon.weaBus.HDirNor",fileNamePrefix="Buildings_10_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.001621/0.00162, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001529/0.001529, allocations: 191.4 kB / 16.53 MB, free: 6.391 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.38/1.38, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.685/2.685, allocations: 437 MB / 0.7103 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 63.91 kB / 0.8692 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7792/0.7807, allocations: 151.6 MB / 1.017 GB, free: 2.672 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.01003/0.7908, allocations: 7.396 MB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1755/0.9663, allocations: 151.8 MB / 1.173 GB, free: 2.895 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001349/0.9677, allocations: 23.88 kB / 1.173 GB, free: 2.871 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0008781/0.9686, allocations: 297.2 kB / 1.173 GB, free: 2.578 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.002566/0.9712, allocations: 0.8113 MB / 1.174 GB, free: 1.766 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.002879/0.9741, allocations: 1.127 MB / 1.175 GB, free: 0.6445 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.002985/0.9771, allocations: 2.341 MB / 1.177 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00176/0.9789, allocations: 1.148 MB / 1.178 GB, free: 13.1 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001306/0.9802, allocations: 0.8956 MB / 1.179 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001418/0.9816, allocations: 0.9857 MB / 1.18 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0003858/0.982, allocations: 264 kB / 1.18 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001272/0.9833, allocations: 0.609 MB / 1.181 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0004895/0.9838, allocations: 0.5453 MB / 1.182 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.001147/0.9849, allocations: 1.073 MB / 1.183 GB, free: 8.723 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.003325/0.9883, allocations: 3.046 MB / 1.186 GB, free: 5.668 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.9883, allocations: 0 / 1.186 GB, free: 5.668 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.577e-06/0.9883, allocations: 3.938 kB / 1.186 GB, free: 5.664 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 3.313e-05/0.9883, allocations: 3.938 kB / 1.186 GB, free: 5.66 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: 415 * Number of variables: 415 Notification: Performance of Generate backend data structure: time 0.004372/0.9927, allocations: 2.231 MB / 1.188 GB, free: 3.367 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.9928, allocations: 8.031 kB / 1.188 GB, free: 3.359 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006137/0.9989, allocations: 0.8608 MB / 1.189 GB, free: 2.496 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001838/1.001, allocations: 1.09 MB / 1.19 GB, free: 1.363 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/1.001, allocations: 123.3 kB / 1.19 GB, free: 1.242 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002535/1.001, allocations: 156 kB / 1.19 GB, free: 1.09 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004892/1.006, allocations: 2.059 MB / 1.192 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.131e-05/1.006, allocations: 0 / 1.192 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001822/1.006, allocations: 71.94 kB / 1.192 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.201e-05/1.006, allocations: 40 kB / 1.192 GB, free: 14.87 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006396/1.013, allocations: 2.448 MB / 1.194 GB, free: 12.42 MB / 0.9512 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01028/1.023, allocations: 5.699 MB / 1.2 GB, free: 6.539 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004568/1.028, allocations: 1.729 MB / 1.202 GB, free: 4.809 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002041/1.03, allocations: 0.7934 MB / 1.202 GB, free: 4.008 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007124/1.03, allocations: 491 kB / 1.203 GB, free: 3.438 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002543/1.033, allocations: 1.075 MB / 1.204 GB, free: 2.34 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=139): time 2.995e-06/1.033, allocations: 0 / 1.204 GB, free: 2.34 MB / 0.9512 GB Notification: Performance of matching and sorting (n=139): time 0.007707/1.041, allocations: 2.599 MB / 1.206 GB, free: 15.71 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001467/1.041, allocations: 201.2 kB / 1.207 GB, free: 15.47 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/1.042, allocations: 0.8782 MB / 1.208 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0001247/1.042, allocations: 53.7 kB / 1.208 GB, free: 14.51 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005106/1.043, allocations: 0.6328 MB / 1.208 GB, free: 13.87 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003781/1.043, allocations: 449.5 kB / 1.209 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004681/1.044, allocations: 270.7 kB / 1.209 GB, free: 13.15 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001603/1.044, allocations: 353.9 kB / 1.209 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002049/1.046, allocations: 0.6935 MB / 1.21 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002157/1.048, allocations: 0.8319 MB / 1.211 GB, free: 11.26 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004045/1.052, allocations: 1.463 MB / 1.212 GB, free: 9.781 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/1.052, allocations: 0 / 1.212 GB, free: 9.781 MB / 0.9669 GB Notification: Performance of matching and sorting (n=163) (initialization): time 0.005251/1.057, allocations: 1.836 MB / 1.214 GB, free: 7.934 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/1.057, allocations: 4 kB / 1.214 GB, free: 7.93 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/1.057, allocations: 0 / 1.214 GB, free: 7.93 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005963/1.058, allocations: 92.77 kB / 1.214 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001872/1.06, allocations: 343.5 kB / 1.214 GB, free: 7.5 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002072/1.062, allocations: 1.654 MB / 1.216 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001793/1.064, allocations: 205 kB / 1.216 GB, free: 5.5 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001456/1.064, allocations: 59.94 kB / 1.216 GB, free: 5.441 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 25 (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,pumCon.hys.y,$PRE.pumCon.hys.y,pumCon.HDirTil.incAng.decAng.tNext,$PRE.pumCon.HDirTil.incAng.decAng.tNext,pumCon.HDifTilIso.incAng.decAng.tNext,$PRE.pumCon.HDifTilIso.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 (161): * Single equations (assignments): 160 * 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.0007735/1.065, allocations: 397.2 kB / 1.217 GB, free: 5.043 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003265/1.065, allocations: 122.5 kB / 1.217 GB, free: 4.922 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006018/1.071, allocations: 2.221 MB / 1.219 GB, free: 2.684 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/1.071, allocations: 16 kB / 1.219 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.365e-05/1.071, allocations: 3.938 kB / 1.219 GB, free: 2.664 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.524e-05/1.071, allocations: 7.969 kB / 1.219 GB, free: 2.656 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00223/1.073, allocations: 1.773 MB / 1.221 GB, free: 0.832 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/1.073, allocations: 3.938 kB / 1.221 GB, free: 0.8281 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001728/1.075, allocations: 319.5 kB / 1.221 GB, free: 0.5156 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004642/1.076, allocations: 72.78 kB / 1.221 GB, free: 452 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000148/1.076, allocations: 47.95 kB / 1.221 GB, free: 404 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001959/1.078, allocations: 1.674 MB / 1.223 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/1.078, allocations: 0 / 1.223 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005276/1.083, allocations: 1.913 MB / 1.225 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007198/1.084, allocations: 435 kB / 1.225 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003413/1.084, allocations: 47.83 kB / 1.225 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001641/1.086, allocations: 139.8 kB / 1.225 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002798/1.086, allocations: 117.1 kB / 1.225 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001433/1.086, allocations: 67.94 kB / 1.225 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001002/1.087, allocations: 0.6345 MB / 1.226 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.81e-07/1.087, allocations: 0 / 1.226 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001457/1.089, allocations: 0.5142 MB / 1.226 GB, free: 10.67 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pumCon.HDifTilIso.incAng.decAng.tNext,pumCon.HDirTil.incAng.decAng.tNext,pumCon.hys.y,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 8 (pumCon.hys.y,pumCon.HDifTilIso.incAng.decAng.tNext,pumCon.HDirTil.incAng.decAng.tNext,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 (155): * Single equations (assignments): 147 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.00142/1.09, allocations: 0.6437 MB / 1.227 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.007063/1.097, allocations: 2.169 MB / 1.229 GB, free: 8.02 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.209e-06/1.097, allocations: 0 / 1.229 GB, free: 8.02 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.002637/1.1, allocations: 1.056 MB / 1.23 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00178/1.102, allocations: 363.5 kB / 1.231 GB, free: 6.617 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00642/1.108, allocations: 3 MB / 1.234 GB, free: 3.586 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009292/1.109, allocations: 1.257 MB / 1.235 GB, free: 2.301 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001932/1.111, allocations: 398.2 kB / 1.235 GB, free: 1.906 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006181/1.112, allocations: 175.2 kB / 1.235 GB, free: 1.734 MB / 0.9825 GB Notification: Performance of SimCode: time 9.72e-07/1.112, allocations: 0 / 1.235 GB, free: 1.734 MB / 0.9825 GB Notification: Performance of Templates: time 0.5518/1.663, allocations: 24.32 MB / 1.259 GB, free: 225.8 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.makefile (rm -f Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; mkfifo Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe >> ../files/Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.sim & ./Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches