Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.48/1.48, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00111/0.001109, allocations: 184.2 kB / 326.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.875/1.875, allocations: 205.4 MB / 0.5775 GB, free: 20.27 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009141/0.000914, allocations: 108 kB / 0.6822 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003324/0.0003324, allocations: 5.844 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.232, allocations: 106.3 MB / 0.9001 GB, free: 63.97 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9025/1.134, allocations: 359.5 MB / 1.251 GB, free: 7.414 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002075/1.135, allocations: 71.59 kB / 1.251 GB, free: 7.379 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 0.02557/1.16, allocations: 12.75 MB / 1.264 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.923e-06/1.16, allocations: 3.938 kB / 1.264 GB, free: 13.37 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 6.182e-06/1.16, allocations: 4 kB / 1.264 GB, free: 13.37 MB / 0.7761 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.0003255/1.161, allocations: 350.6 kB / 1.264 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/1.161, allocations: 8.031 kB / 1.264 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.499e-05/1.161, allocations: 8 kB / 1.264 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001464/1.161, allocations: 163 kB / 1.264 GB, free: 12.77 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.594e-05/1.161, allocations: 7.75 kB / 1.264 GB, free: 12.76 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.153e-05/1.161, allocations: 11.97 kB / 1.264 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001267/1.161, allocations: 60.47 kB / 1.264 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.525e-06/1.161, allocations: 4 kB / 1.264 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/1.161, allocations: 0 / 1.264 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/1.161, allocations: 0 / 1.264 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.844e-05/1.161, allocations: 19.73 kB / 1.264 GB, free: 12.67 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001779/1.161, allocations: 172.6 kB / 1.264 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 9.046e-05/1.162, allocations: 49.55 kB / 1.264 GB, free: 12.41 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007111/1.162, allocations: 0.5891 MB / 1.265 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/1.162, allocations: 38 kB / 1.265 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=5): time 1.242e-06/1.162, allocations: 3.938 kB / 1.265 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of matching and sorting (n=7): time 0.000554/1.163, allocations: 303.8 kB / 1.265 GB, free: 11.35 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.979e-05/1.163, allocations: 58.84 kB / 1.265 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.241e-05/1.163, allocations: 96.91 kB / 1.266 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/1.163, allocations: 29.33 kB / 1.266 GB, free: 11.15 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.146e-05/1.163, allocations: 80.14 kB / 1.266 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.198e-05/1.163, allocations: 31.05 kB / 1.266 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.396e-06/1.163, allocations: 0 / 1.266 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001098/1.163, allocations: 318.3 kB / 1.266 GB, free: 10.73 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.508e-05/1.163, allocations: 15.67 kB / 1.266 GB, free: 10.71 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.008e-05/1.163, allocations: 56.39 kB / 1.266 GB, free: 10.65 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.746e-05/1.163, allocations: 15.75 kB / 1.266 GB, free: 10.64 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.02e-07/1.163, allocations: 0 / 1.266 GB, free: 10.64 MB / 0.7761 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001209/1.164, allocations: 91.36 kB / 1.266 GB, free: 10.55 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/1.164, allocations: 12.12 kB / 1.266 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/1.164, allocations: 0 / 1.266 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/1.164, allocations: 4 kB / 1.266 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.145e-05/1.164, allocations: 23.94 kB / 1.266 GB, free: 10.52 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/1.164, allocations: 3.938 kB / 1.266 GB, free: 10.51 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.872e-05/1.164, allocations: 7.562 kB / 1.266 GB, free: 10.51 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/1.164, allocations: 4 kB / 1.266 GB, free: 10.5 MB / 0.7761 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.362e-05/1.164, allocations: 113.7 kB / 1.266 GB, free: 10.39 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.544e-05/1.164, allocations: 3.906 kB / 1.266 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.792e-05/1.164, allocations: 11.91 kB / 1.266 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/1.164, allocations: 4.281 kB / 1.266 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/1.164, allocations: 3.953 kB / 1.266 GB, free: 10.37 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/1.164, allocations: 3.984 kB / 1.266 GB, free: 10.37 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002278/1.164, allocations: 169 kB / 1.267 GB, free: 10.16 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/1.164, allocations: 7.969 kB / 1.267 GB, free: 10.15 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.288e-05/1.164, allocations: 12 kB / 1.267 GB, free: 10.14 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.177e-06/1.164, allocations: 11.88 kB / 1.267 GB, free: 10.13 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.744e-06/1.164, allocations: 4 kB / 1.267 GB, free: 10.12 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/1.164, allocations: 0 / 1.267 GB, free: 10.12 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/1.164, allocations: 4 kB / 1.267 GB, free: 10.12 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001797/1.164, allocations: 177.6 kB / 1.267 GB, free: 9.945 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 5.358e-05/1.165, allocations: 81.16 kB / 1.267 GB, free: 9.848 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/1.165, allocations: 3.984 kB / 1.267 GB, free: 9.844 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.508e-05/1.165, allocations: 7.625 kB / 1.267 GB, free: 9.84 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.703e-05/1.165, allocations: 0 / 1.267 GB, free: 9.84 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.887e-06/1.165, allocations: 4 kB / 1.267 GB, free: 9.836 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.245e-05/1.165, allocations: 83.27 kB / 1.267 GB, free: 9.754 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1e-07/1.165, allocations: 0 / 1.267 GB, free: 9.754 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002481/1.165, allocations: 23.39 kB / 1.267 GB, free: 9.734 MB / 0.7761 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000185/1.165, allocations: 129.6 kB / 1.267 GB, free: 9.602 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.000122/1.165, allocations: 39.23 kB / 1.267 GB, free: 9.57 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/1.165, allocations: 4 kB / 1.267 GB, free: 9.566 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 1.917e-05/1.165, allocations: 8 kB / 1.267 GB, free: 9.559 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000161/1.166, allocations: 7.625 kB / 1.267 GB, free: 9.555 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005734/1.166, allocations: 393.9 kB / 1.267 GB, free: 9.148 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002487/1.166, allocations: 0.6888 MB / 1.268 GB, free: 8.434 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 5.933e-05/1.166, allocations: 7.984 kB / 1.268 GB, free: 8.426 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.801e-05/1.166, allocations: 15.44 kB / 1.268 GB, free: 8.41 MB / 0.7761 GB Notification: Performance of SimCode: time 3.31e-07/1.166, allocations: 0 / 1.268 GB, free: 8.41 MB / 0.7761 GB Notification: Performance of Templates: time 0.002944/1.169, allocations: 0.8438 MB / 1.269 GB, free: 7.574 MB / 0.7761 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Media_Examples_WaterDerivativeCheck.csv","../files/Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches