Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.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.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck") translateModel(Buildings.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00161/0.00161, allocations: 193.2 kB / 16.13 MB, free: 6.648 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.385/1.385, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.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.322/2.322, allocations: 390.2 MB / 0.6642 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002022/0.002022, allocations: 59.91 kB / 0.8118 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6242/0.6262, allocations: 140.4 MB / 0.9489 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001907/0.6281, allocations: 1.33 MB / 0.9502 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002724/0.6309, allocations: 3.243 MB / 0.9534 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.044e-05/0.6309, allocations: 1.562 kB / 0.9534 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.984e-05/0.631, allocations: 3.938 kB / 0.9534 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.849e-05/0.631, allocations: 11.88 kB / 0.9534 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003958/0.6314, allocations: 91.83 kB / 0.9535 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.505e-05/0.6315, allocations: 37.66 kB / 0.9535 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.109e-05/0.6315, allocations: 1.875 kB / 0.9535 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.866e-05/0.6316, allocations: 13.98 kB / 0.9535 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.592e-05/0.6316, allocations: 25.28 kB / 0.9535 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.059e-05/0.6316, allocations: 2.469 kB / 0.9535 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002013/0.6319, allocations: 75.91 kB / 0.9536 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.46e-05/0.6319, allocations: 6.641 kB / 0.9536 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.918e-05/0.6319, allocations: 18.95 kB / 0.9536 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001765/0.6321, allocations: 73.03 kB / 0.9537 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.6321, allocations: 0 / 0.9537 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.503e-06/0.6321, allocations: 1.031 kB / 0.9537 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.988e-06/0.6321, allocations: 0 / 0.9537 GB, free: 5.227 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002985/0.6324, allocations: 348 kB / 0.954 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.6325, allocations: 9.375 kB / 0.9541 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.6326, allocations: 9.656 kB / 0.9541 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.607e-05/0.6326, allocations: 168.3 kB / 0.9542 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.077e-06/0.6327, allocations: 2.406 kB / 0.9542 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.355e-05/0.6327, allocations: 11.47 kB / 0.9542 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001067/0.6328, allocations: 54.77 kB / 0.9543 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.503e-06/0.6328, allocations: 0 / 0.9543 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.6328, allocations: 5.438 kB / 0.9543 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.6328, allocations: 0 / 0.9543 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.806e-05/0.6329, allocations: 19.2 kB / 0.9543 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001164/0.633, allocations: 169.3 kB / 0.9545 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.024e-05/0.6331, allocations: 52.12 kB / 0.9545 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.497e-05/0.6331, allocations: 15.67 kB / 0.9545 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005114/0.6337, allocations: 0.5937 MB / 0.9551 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.575e-05/0.6337, allocations: 41 kB / 0.9552 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.974e-06/0.6337, allocations: 3.984 kB / 0.9552 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004749/0.6342, allocations: 298.9 kB / 0.9554 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.583e-05/0.6342, allocations: 52.78 kB / 0.9555 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.757e-05/0.6343, allocations: 98.12 kB / 0.9556 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.191e-05/0.6343, allocations: 30.86 kB / 0.9556 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.499e-05/0.6343, allocations: 89.2 kB / 0.9557 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.413e-05/0.6343, allocations: 26.17 kB / 0.9557 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.617e-05/0.6344, allocations: 30.23 kB / 0.9558 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.823e-05/0.6344, allocations: 316 kB / 0.9561 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.69e-05/0.6344, allocations: 15.2 kB / 0.9561 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.043e-05/0.6345, allocations: 52.95 kB / 0.9561 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.389e-05/0.6346, allocations: 75.25 kB / 0.9562 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.6346, allocations: 0 / 0.9562 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001189/0.6347, allocations: 95.27 kB / 0.9563 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.6347, allocations: 5.969 kB / 0.9563 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.6347, allocations: 5.5 kB / 0.9563 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.6347, allocations: 1.562 kB / 0.9563 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.747e-05/0.6348, allocations: 28.08 kB / 0.9563 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.6348, allocations: 2.594 kB / 0.9563 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.882e-05/0.6349, allocations: 14.16 kB / 0.9563 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.555e-06/0.6349, allocations: 3.531 kB / 0.9563 GB, free: 2.438 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 5.184e-05/0.6349, allocations: 113.5 kB / 0.9565 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.792e-05/0.635, allocations: 2.625 kB / 0.9565 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.601e-05/0.635, allocations: 15.95 kB / 0.9565 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.635, allocations: 5.156 kB / 0.9565 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.635, allocations: 1.438 kB / 0.9565 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.635, allocations: 3.938 kB / 0.9565 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000184/0.6352, allocations: 172.9 kB / 0.9566 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.6352, allocations: 1.188 kB / 0.9566 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.431e-05/0.6353, allocations: 17.25 kB / 0.9567 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.6353, allocations: 0 / 0.9567 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.6353, allocations: 1.062 kB / 0.9567 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.6353, allocations: 0 / 0.9567 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.6354, allocations: 5.547 kB / 0.9567 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001396/0.6355, allocations: 173.4 kB / 0.9568 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.102e-05/0.6355, allocations: 83.23 kB / 0.9569 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.435e-05/0.6356, allocations: 4.938 kB / 0.9569 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.6357, allocations: 5.469 kB / 0.9569 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.482e-05/0.6357, allocations: 10.89 kB / 0.9569 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.6357, allocations: 6.031 kB / 0.9569 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.742e-05/0.6357, allocations: 81.73 kB / 0.957 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6357, allocations: 4 kB / 0.957 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000243/0.636, allocations: 14.78 kB / 0.957 GB, free: 1.723 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,cpSym,cvSym) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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 Backend phase and start with SimCode phase: time 9.983e-05/0.6361, allocations: 105.5 kB / 0.9571 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001011/0.6362, allocations: 42.02 kB / 0.9572 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.6362, allocations: 0 / 0.9572 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.38e-05/0.6362, allocations: 20.3 kB / 0.9572 GB, free: 1.605 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003307/0.6366, allocations: 13.12 kB / 0.9572 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005249/0.6371, allocations: 337.2 kB / 0.9575 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.987e-05/0.6372, allocations: 0.6826 MB / 0.9582 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.553e-05/0.6373, allocations: 14.3 kB / 0.9582 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.991e-05/0.6373, allocations: 11.22 kB / 0.9582 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of SimCode: time 2.9e-07/0.6373, allocations: 1.406 kB / 0.9582 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of Templates: time 0.002616/0.6399, allocations: 0.6003 MB / 0.9588 GB, free: 284 kB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches