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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001384/0.001384, allocations: 100.1 kB / 15.88 MB, free: 12 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.001516/0.001516, allocations: 196 kB / 16.79 MB, free: 6.809 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.397/1.397, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.375/2.375, allocations: 390.2 MB / 0.6649 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 63.91 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5976/0.599, allocations: 140.4 MB / 0.9496 GB, free: 9.184 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002032/0.601, allocations: 1.33 MB / 0.9509 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002711/0.6038, allocations: 3.24 MB / 0.954 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.739e-05/0.6038, allocations: 0 / 0.954 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.742e-05/0.6038, allocations: 3.938 kB / 0.954 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.44e-05/0.6039, allocations: 1.031 kB / 0.954 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003883/0.6043, allocations: 94.86 kB / 0.9541 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.259e-05/0.6044, allocations: 41.86 kB / 0.9542 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 2.916e-05/0.6044, allocations: 1.312 kB / 0.9542 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.711e-05/0.6044, allocations: 18.44 kB / 0.9542 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.844e-05/0.6045, allocations: 22.75 kB / 0.9542 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.106e-05/0.6045, allocations: 1.375 kB / 0.9542 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002125/0.6047, allocations: 67.69 kB / 0.9543 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.562e-05/0.6048, allocations: 14.38 kB / 0.9543 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.674e-05/0.6048, allocations: 15.41 kB / 0.9543 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001132/0.6049, allocations: 43.78 kB / 0.9543 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.6049, allocations: 1.219 kB / 0.9543 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.32e-07/0.6049, allocations: 4 kB / 0.9543 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.048e-06/0.6049, allocations: 0 / 0.9543 GB, free: 5.281 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.0002872/0.6052, allocations: 356.2 kB / 0.9547 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.6053, allocations: 9.969 kB / 0.9547 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.614e-05/0.6054, allocations: 4.625 kB / 0.9547 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.085e-05/0.6054, allocations: 169.6 kB / 0.9549 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.6054, allocations: 6.188 kB / 0.9549 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.265e-05/0.6055, allocations: 7.531 kB / 0.9549 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001121/0.6056, allocations: 65.52 kB / 0.9549 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.834e-06/0.6056, allocations: 0.625 kB / 0.9549 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.6056, allocations: 1.219 kB / 0.9549 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.6056, allocations: 1.469 kB / 0.9549 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.993e-05/0.6057, allocations: 21.41 kB / 0.955 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001213/0.6058, allocations: 161.8 kB / 0.9551 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.477e-05/0.6059, allocations: 52.44 kB / 0.9552 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.771e-05/0.6059, allocations: 23.28 kB / 0.9552 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005116/0.6064, allocations: 0.5906 MB / 0.9558 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.369e-05/0.6065, allocations: 31.69 kB / 0.9558 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.6065, allocations: 0 / 0.9558 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004692/0.607, allocations: 299.3 kB / 0.9561 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.771e-05/0.607, allocations: 60.38 kB / 0.9561 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.622e-05/0.607, allocations: 102.4 kB / 0.9562 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.917e-06/0.607, allocations: 27.02 kB / 0.9563 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.17e-05/0.6071, allocations: 85.67 kB / 0.9563 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.452e-05/0.6071, allocations: 26.27 kB / 0.9564 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.388e-05/0.6071, allocations: 25.56 kB / 0.9564 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.978e-05/0.6072, allocations: 324.1 kB / 0.9567 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.74e-05/0.6072, allocations: 11.59 kB / 0.9567 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.186e-05/0.6073, allocations: 57.73 kB / 0.9568 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.16e-05/0.6073, allocations: 73.64 kB / 0.9568 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.6073, allocations: 2 kB / 0.9568 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001218/0.6075, allocations: 98.17 kB / 0.9569 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.6075, allocations: 6.188 kB / 0.9569 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.6075, allocations: 1.594 kB / 0.9569 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.6075, allocations: 1.594 kB / 0.9569 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.555e-05/0.6076, allocations: 24.06 kB / 0.957 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.6076, allocations: 2.094 kB / 0.957 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.964e-05/0.6076, allocations: 22.22 kB / 0.957 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-06/0.6077, allocations: 4.938 kB / 0.957 GB, free: 2.48 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 4.953e-05/0.6077, allocations: 116.9 kB / 0.9571 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.782e-05/0.6077, allocations: 2.625 kB / 0.9571 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.65e-05/0.6078, allocations: 7.969 kB / 0.9571 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.6078, allocations: 1.25 kB / 0.9571 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.6078, allocations: 0 / 0.9571 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.6078, allocations: 5.344 kB / 0.9571 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000182/0.608, allocations: 173 kB / 0.9573 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.608, allocations: 4 kB / 0.9573 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.394e-05/0.6081, allocations: 17.83 kB / 0.9573 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.6081, allocations: 0 / 0.9573 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.363e-06/0.6081, allocations: 5.094 kB / 0.9573 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.6081, allocations: 0 / 0.9573 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.6081, allocations: 1.141 kB / 0.9573 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000137/0.6083, allocations: 184.4 kB / 0.9575 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.814e-05/0.6083, allocations: 79.48 kB / 0.9576 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.6083, allocations: 9.062 kB / 0.9576 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.6084, allocations: 6.344 kB / 0.9576 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.391e-05/0.6084, allocations: 2.625 kB / 0.9576 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/0.6085, allocations: 6.406 kB / 0.9576 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.003e-05/0.6085, allocations: 81.59 kB / 0.9577 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.22e-07/0.6085, allocations: 0 / 0.9577 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002469/0.6087, allocations: 14.03 kB / 0.9577 GB, free: 1.77 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 0.0001016/0.6088, allocations: 113.7 kB / 0.9578 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001006/0.6089, allocations: 37.61 kB / 0.9578 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.609, allocations: 1.094 kB / 0.9578 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.477e-05/0.609, allocations: 19.09 kB / 0.9578 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002487/0.6092, allocations: 7.688 kB / 0.9578 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004865/0.6097, allocations: 359.9 kB / 0.9582 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.584e-05/0.6098, allocations: 0.6889 MB / 0.9589 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.336e-05/0.6099, allocations: 13.06 kB / 0.9589 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of SimCode: time 3.6e-07/0.6099, allocations: 0 / 0.9589 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of Templates: time 0.001791/0.6117, allocations: 0.7688 MB / 0.9596 GB, free: 224 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches