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.001475/0.001475, allocations: 112 kB / 16.41 MB, free: 6.477 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.001678/0.001678, allocations: 183 kB / 17.34 MB, free: 5.754 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.428/1.428, allocations: 222.9 MB / 241 MB, free: 15.17 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.235/2.235, allocations: 390.3 MB / 0.6655 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 63.91 kB / 0.9515 GB, free: 7.703 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7624/0.7638, allocations: 140.4 MB / 1.089 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002156/0.7659, allocations: 1.253 MB / 1.09 GB, free: 4.645 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003471/0.7694, allocations: 3.255 MB / 1.093 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.399e-05/0.7695, allocations: 0 / 1.093 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.692e-05/0.7695, allocations: 4.688 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.12e-05/0.7696, allocations: 6.094 kB / 1.093 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005367/0.7701, allocations: 104.4 kB / 1.093 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001173/0.7703, allocations: 43.25 kB / 1.093 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.525e-05/0.7703, allocations: 7.422 kB / 1.093 GB, free: 2.199 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.821e-05/0.7704, allocations: 15.86 kB / 1.093 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.991e-05/0.7705, allocations: 21.61 kB / 1.093 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.47e-05/0.7705, allocations: 1.688 kB / 1.093 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002462/0.7707, allocations: 73.31 kB / 1.093 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.838e-05/0.7708, allocations: 16.3 kB / 1.093 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.378e-05/0.7708, allocations: 15.78 kB / 1.093 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002052/0.771, allocations: 66.08 kB / 1.093 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.771, allocations: 0 / 1.093 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.914e-06/0.771, allocations: 0 / 1.093 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.588e-06/0.771, allocations: 0.7188 kB / 1.093 GB, free: 2.117 MB / 0.8575 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.0003757/0.7714, allocations: 347 kB / 1.094 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.7715, allocations: 8.938 kB / 1.094 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.7716, allocations: 9.453 kB / 1.094 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.549e-05/0.7717, allocations: 173.1 kB / 1.094 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.641e-05/0.7717, allocations: 5.844 kB / 1.094 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.239e-05/0.7717, allocations: 8.281 kB / 1.094 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001366/0.7719, allocations: 62.39 kB / 1.094 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.7719, allocations: 0 / 1.094 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.7719, allocations: 0.7969 kB / 1.094 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.7719, allocations: 1.625 kB / 1.094 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.013e-05/0.772, allocations: 19.38 kB / 1.094 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001415/0.7721, allocations: 162.8 kB / 1.094 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001005/0.7722, allocations: 58.17 kB / 1.094 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.982e-05/0.7723, allocations: 17.08 kB / 1.094 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006092/0.7729, allocations: 0.5992 MB / 1.095 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.587e-05/0.7729, allocations: 35.78 kB / 1.095 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.092e-06/0.7729, allocations: 4.906 kB / 1.095 GB, free: 0.5547 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0005512/0.7735, allocations: 292 kB / 1.095 GB, free: 288 kB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.174e-05/0.7735, allocations: 52.97 kB / 1.095 GB, free: 224 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.691e-05/0.7736, allocations: 100.2 kB / 1.095 GB, free: 120 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.14e-05/0.7736, allocations: 27.05 kB / 1.095 GB, free: 88 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.935e-05/0.7736, allocations: 94.19 kB / 1.095 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 2.156e-05/0.7737, allocations: 24.62 kB / 1.095 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.001e-05/0.7737, allocations: 32.09 kB / 1.095 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.7738, allocations: 325.2 kB / 1.096 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.093e-05/0.7739, allocations: 9.938 kB / 1.096 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.533e-05/0.774, allocations: 51.92 kB / 1.096 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001006/0.7741, allocations: 77.59 kB / 1.096 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.7741, allocations: 0.6875 kB / 1.096 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001528/0.7742, allocations: 98.52 kB / 1.096 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.7743, allocations: 5.562 kB / 1.096 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.7743, allocations: 1.719 kB / 1.096 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.7743, allocations: 6.406 kB / 1.096 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.666e-05/0.7744, allocations: 22.89 kB / 1.096 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.7744, allocations: 3.688 kB / 1.096 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.32e-05/0.7744, allocations: 9.484 kB / 1.096 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.7745, allocations: 3.812 kB / 1.096 GB, free: 15.42 MB / 0.8731 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 8.74e-05/0.7745, allocations: 117.6 kB / 1.096 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.18e-05/0.7746, allocations: 7.328 kB / 1.096 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.474e-05/0.7746, allocations: 9.656 kB / 1.096 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.7746, allocations: 4.812 kB / 1.096 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.7746, allocations: 0 / 1.096 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.7747, allocations: 5.406 kB / 1.096 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002513/0.7749, allocations: 177 kB / 1.096 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.7749, allocations: 3.938 kB / 1.096 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.077e-05/0.775, allocations: 16.19 kB / 1.096 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.775, allocations: 1.594 kB / 1.096 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.775, allocations: 1 kB / 1.096 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.521e-06/0.7751, allocations: 4.609 kB / 1.096 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.7751, allocations: 0.9688 kB / 1.096 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001912/0.7753, allocations: 171.6 kB / 1.096 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.67e-05/0.7753, allocations: 86 kB / 1.097 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.508e-05/0.7753, allocations: 5.188 kB / 1.097 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.7754, allocations: 3.594 kB / 1.097 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.525e-05/0.7755, allocations: 11.28 kB / 1.097 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.919e-06/0.7755, allocations: 6.766 kB / 1.097 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 3.649e-05/0.7755, allocations: 82.8 kB / 1.097 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7755, allocations: 0 / 1.097 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002436/0.7758, allocations: 14.22 kB / 1.097 GB, free: 14.73 MB / 0.8731 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 0.0001436/0.7759, allocations: 102.5 kB / 1.097 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001257/0.7761, allocations: 39.16 kB / 1.097 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.7761, allocations: 0 / 1.097 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 3.128e-05/0.7761, allocations: 21.33 kB / 1.097 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003188/0.7764, allocations: 8.984 kB / 1.097 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006121/0.7771, allocations: 353.8 kB / 1.097 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/0.7773, allocations: 0.6837 MB / 1.098 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.965e-05/0.7774, allocations: 11.12 kB / 1.098 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of SimCode: time 2.31e-07/0.7774, allocations: 3.938 kB / 1.098 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of Templates: time 0.00252/0.7799, allocations: 0.772 MB / 1.099 GB, free: 13.56 MB / 0.8731 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches