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.43/1.43, allocations: 249.5 MB / 257 MB, free: 6.949 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001068/0.001067, allocations: 172.9 kB / 316.3 MB, free: 3.254 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.688/1.688, allocations: 205.3 MB / 0.5671 GB, free: 15.89 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.001007/0.001007, allocations: 95.17 kB / 0.6714 GB, free: 5.016 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.381e-05/1.384e-05, allocations: 4 kB / 0.7813 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2555/0.2555, allocations: 106.3 MB / 0.8852 GB, free: 12.3 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.121/1.377, allocations: 359.7 MB / 1.236 GB, free: 10.01 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003537/1.377, allocations: 73.52 kB / 1.237 GB, free: 9.973 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.02955/1.407, allocations: 12.65 MB / 1.249 GB, free: 176 kB / 0.8542 GB Notification: Performance of FrontEnd: time 2.955e-06/1.407, allocations: 0 / 1.249 GB, free: 176 kB / 0.8542 GB Notification: Performance of Transformations before backend: time 1.016e-05/1.407, allocations: 0 / 1.249 GB, free: 176 kB / 0.8542 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.6167/2.024, allocations: 342.9 kB / 1.249 GB, free: 311.9 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 6.036e-05/2.024, allocations: 8.844 kB / 1.249 GB, free: 311.9 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001842/2.024, allocations: 4.859 kB / 1.249 GB, free: 311.9 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000105/2.024, allocations: 168.9 kB / 1.249 GB, free: 311.8 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/2.024, allocations: 1.25 kB / 1.249 GB, free: 311.8 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.082e-05/2.024, allocations: 3.766 kB / 1.249 GB, free: 311.8 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000101/2.024, allocations: 17.33 kB / 1.249 GB, free: 311.8 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/2.024, allocations: 48.8 kB / 1.249 GB, free: 311.7 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/2.024, allocations: 2.375 kB / 1.249 GB, free: 311.7 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/2.024, allocations: 0.625 kB / 1.249 GB, free: 311.7 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/2.024, allocations: 3.844 kB / 1.249 GB, free: 311.7 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001626/2.025, allocations: 145.2 kB / 1.25 GB, free: 311.6 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001044/2.025, allocations: 49.91 kB / 1.25 GB, free: 311.5 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.513e-05/2.025, allocations: 14.36 kB / 1.25 GB, free: 311.5 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000831/2.026, allocations: 0.6078 MB / 1.25 GB, free: 310.9 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.174e-05/2.026, allocations: 34.28 kB / 1.25 GB, free: 310.9 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=5): time 1.212e-06/2.026, allocations: 0.6562 kB / 1.25 GB, free: 310.9 MB / 0.8542 GB Notification: Performance of matching and sorting (n=7): time 0.0005729/2.026, allocations: 280.6 kB / 1.251 GB, free: 310.6 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.441e-05/2.026, allocations: 53.48 kB / 1.251 GB, free: 310.6 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.085e-05/2.026, allocations: 96.27 kB / 1.251 GB, free: 310.5 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/2.026, allocations: 32.7 kB / 1.251 GB, free: 310.4 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 3.218e-05/2.026, allocations: 84.06 kB / 1.251 GB, free: 310.4 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.104e-05/2.026, allocations: 28.92 kB / 1.251 GB, free: 310.3 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.657e-06/2.026, allocations: 0 / 1.251 GB, free: 310.3 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 6.602e-05/2.026, allocations: 316.3 kB / 1.251 GB, free: 310 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.006e-05/2.026, allocations: 10.34 kB / 1.251 GB, free: 310 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.015e-05/2.027, allocations: 51.95 kB / 1.251 GB, free: 310 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.595e-05/2.027, allocations: 18.92 kB / 1.251 GB, free: 310 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.72e-07/2.027, allocations: 0.625 kB / 1.251 GB, free: 310 MB / 0.8542 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001581/2.027, allocations: 81.84 kB / 1.251 GB, free: 309.9 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/2.027, allocations: 9.016 kB / 1.251 GB, free: 309.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.759e-06/2.027, allocations: 2.062 kB / 1.251 GB, free: 309.9 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/2.027, allocations: 1.938 kB / 1.251 GB, free: 309.9 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.268e-05/2.027, allocations: 22.83 kB / 1.251 GB, free: 309.9 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/2.027, allocations: 6.656 kB / 1.251 GB, free: 309.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.787e-05/2.027, allocations: 2.219 kB / 1.251 GB, free: 309.9 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.562e-05/2.027, allocations: 5.703 kB / 1.251 GB, free: 309.9 MB / 0.8542 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 () * 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 6.275e-05/2.027, allocations: 107.7 kB / 1.251 GB, free: 309.8 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.841e-05/2.027, allocations: 5.484 kB / 1.251 GB, free: 309.8 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.852e-05/2.027, allocations: 8.781 kB / 1.251 GB, free: 309.8 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/2.027, allocations: 4.375 kB / 1.251 GB, free: 309.8 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/2.027, allocations: 2.656 kB / 1.251 GB, free: 309.8 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/2.027, allocations: 4.562 kB / 1.251 GB, free: 309.8 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002065/2.027, allocations: 149.6 kB / 1.252 GB, free: 309.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/2.027, allocations: 2.391 kB / 1.252 GB, free: 309.7 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.944e-05/2.027, allocations: 18.19 kB / 1.252 GB, free: 309.7 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/2.028, allocations: 0.5 kB / 1.252 GB, free: 309.7 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.097e-06/2.028, allocations: 1.938 kB / 1.252 GB, free: 309.7 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/2.028, allocations: 7.375 kB / 1.252 GB, free: 309.7 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/2.028, allocations: 1.406 kB / 1.252 GB, free: 309.7 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001841/2.028, allocations: 168.1 kB / 1.252 GB, free: 309.5 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 4.046e-05/2.028, allocations: 83.2 kB / 1.252 GB, free: 309.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.52e-05/2.028, allocations: 0.7031 kB / 1.252 GB, free: 309.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.614e-05/2.028, allocations: 6.281 kB / 1.252 GB, free: 309.4 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.36e-05/2.028, allocations: 4.703 kB / 1.252 GB, free: 309.4 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.115e-05/2.028, allocations: 3.703 kB / 1.252 GB, free: 309.4 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 2.593e-05/2.028, allocations: 79.34 kB / 1.252 GB, free: 309.4 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.2e-07/2.028, allocations: 0.9375 kB / 1.252 GB, free: 309.4 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002326/2.028, allocations: 12.23 kB / 1.252 GB, free: 309.4 MB / 0.8542 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 () * 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.0001626/2.028, allocations: 124.1 kB / 1.252 GB, free: 309.3 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001122/2.029, allocations: 36.81 kB / 1.252 GB, free: 309.3 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/2.029, allocations: 0.75 kB / 1.252 GB, free: 309.3 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.443e-05/2.029, allocations: 13.61 kB / 1.252 GB, free: 309.3 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001682/2.029, allocations: 10.16 kB / 1.252 GB, free: 309.3 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005288/2.029, allocations: 272.6 kB / 1.252 GB, free: 309.1 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001482/2.029, allocations: 0.6896 MB / 1.253 GB, free: 308.4 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.918e-05/2.029, allocations: 8.594 kB / 1.253 GB, free: 308.4 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.401e-05/2.03, allocations: 11.59 kB / 1.253 GB, free: 308.4 MB / 0.8542 GB Notification: Performance of SimCode: time 2.5e-07/2.03, allocations: 0 / 1.253 GB, free: 308.4 MB / 0.8542 GB Notification: Performance of Templates: time 0.003309/2.033, allocations: 0.7223 MB / 1.254 GB, free: 308.3 MB / 0.8542 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