Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.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.AirDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_9_Buildings.Media.Examples.AirDerivativeCheck") translateModel(Buildings.Media.Examples.AirDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_9_Buildings.Media.Examples.AirDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001489/0.001495, allocations: 105.8 kB / 15.99 MB, free: 6.348 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: 190.5 kB / 16.91 MB, free: 6.188 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.339/1.339, allocations: 222.9 MB / 240.6 MB, free: 4.395 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.335/2.335, allocations: 390.2 MB / 0.665 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 59.91 kB / 0.8127 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6003/0.6016, allocations: 140.4 MB / 0.9498 GB, free: 9.41 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.002089/0.6038, allocations: 1.395 MB / 0.9511 GB, free: 8.297 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1546/0.7584, allocations: 145.9 MB / 1.094 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.576e-05/0.7585, allocations: 4 kB / 1.094 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.565e-05/0.7586, allocations: 7.922 kB / 1.094 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000107/0.7587, allocations: 11.97 kB / 1.094 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009672/0.7597, allocations: 298.9 kB / 1.094 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.836e-05/0.7598, allocations: 67.77 kB / 1.094 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.246e-05/0.7599, allocations: 4 kB / 1.094 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.503e-05/0.7599, allocations: 31.91 kB / 1.094 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.948e-05/0.76, allocations: 31.89 kB / 1.094 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.344e-05/0.76, allocations: 7.938 kB / 1.094 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007956/0.7608, allocations: 434.8 kB / 1.095 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.192e-05/0.7609, allocations: 15.92 kB / 1.095 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.422e-05/0.761, allocations: 35.84 kB / 1.095 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002215/0.7612, allocations: 117.8 kB / 1.095 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.7612, allocations: 4 kB / 1.095 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.814e-06/0.7612, allocations: 0 / 1.095 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.728e-06/0.7612, allocations: 0 / 1.095 GB, free: 13.3 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000487/0.7617, allocations: 387.3 kB / 1.095 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.7618, allocations: 8.031 kB / 1.095 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004285/0.7622, allocations: 40.8 kB / 1.095 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001264/0.7623, allocations: 164.4 kB / 1.095 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.7624, allocations: 11.94 kB / 1.095 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.183e-05/0.7624, allocations: 8 kB / 1.095 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001791/0.7626, allocations: 81.58 kB / 1.095 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.7626, allocations: 0 / 1.095 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.588e-05/0.7626, allocations: 4 kB / 1.095 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.7626, allocations: 3.938 kB / 1.095 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.6e-05/0.7627, allocations: 47.95 kB / 1.095 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002055/0.763, allocations: 185.4 kB / 1.096 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001945/0.7632, allocations: 94.69 kB / 1.096 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.828e-05/0.7632, allocations: 36.84 kB / 1.096 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000225/0.7635, allocations: 174.1 kB / 1.096 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.7635, allocations: 38.56 kB / 1.096 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.412e-06/0.7635, allocations: 0 / 1.096 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19): time 0.001295/0.7648, allocations: 0.5428 MB / 1.096 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/0.7648, allocations: 51.41 kB / 1.096 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.612e-05/0.7649, allocations: 105.8 kB / 1.097 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.805e-05/0.765, allocations: 29.7 kB / 1.097 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.164e-05/0.765, allocations: 84.5 kB / 1.097 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.052e-05/0.7651, allocations: 67 kB / 1.097 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.015e-05/0.7651, allocations: 45.7 kB / 1.097 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.7653, allocations: 318.8 kB / 1.097 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.508e-05/0.7653, allocations: 43.92 kB / 1.097 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.834e-05/0.7654, allocations: 67.53 kB / 1.097 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000164/0.7656, allocations: 111.4 kB / 1.097 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.7656, allocations: 0 / 1.097 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002376/0.7659, allocations: 161.5 kB / 1.097 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.7659, allocations: 4 kB / 1.097 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.7659, allocations: 4 kB / 1.097 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.7659, allocations: 0 / 1.097 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001736/0.7661, allocations: 39.92 kB / 1.098 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.7661, allocations: 7.938 kB / 1.098 GB, free: 10.06 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.881e-05/0.7662, allocations: 15.92 kB / 1.098 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.7662, allocations: 4 kB / 1.098 GB, free: 10.04 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (24): * Single equations (assignments): 24 * 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 9.057e-05/0.7663, allocations: 125.8 kB / 1.098 GB, free: 9.906 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.188e-05/0.7663, allocations: 7.906 kB / 1.098 GB, free: 9.898 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.529e-05/0.7664, allocations: 16.44 kB / 1.098 GB, free: 9.879 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.7664, allocations: 4 kB / 1.098 GB, free: 9.875 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.7664, allocations: 0 / 1.098 GB, free: 9.875 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.7664, allocations: 3.938 kB / 1.098 GB, free: 9.871 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001576/0.7666, allocations: 197.6 kB / 1.098 GB, free: 9.629 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.7666, allocations: 0 / 1.098 GB, free: 9.629 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001918/0.7668, allocations: 35.97 kB / 1.098 GB, free: 9.594 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-06/0.7668, allocations: 7.984 kB / 1.098 GB, free: 9.586 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.7668, allocations: 4 kB / 1.098 GB, free: 9.582 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.7668, allocations: 160 / 1.098 GB, free: 9.582 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.7668, allocations: 0 / 1.098 GB, free: 9.582 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003054/0.7671, allocations: 209.9 kB / 1.098 GB, free: 9.359 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.024e-05/0.7672, allocations: 97.06 kB / 1.098 GB, free: 9.246 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.7672, allocations: 7.984 kB / 1.098 GB, free: 9.238 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.7674, allocations: 8 kB / 1.098 GB, free: 9.23 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.887e-05/0.7674, allocations: 15.92 kB / 1.098 GB, free: 9.215 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.7674, allocations: 8 kB / 1.098 GB, free: 9.207 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.797e-05/0.7675, allocations: 75.28 kB / 1.098 GB, free: 9.133 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.31e-07/0.7675, allocations: 0 / 1.098 GB, free: 9.133 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002182/0.7677, allocations: 28 kB / 1.098 GB, free: 9.105 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (hLiqSym,hSteSym,hAirSym,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 (19): * Single equations (assignments): 19 * 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.0001236/0.7678, allocations: 111.3 kB / 1.098 GB, free: 8.988 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002249/0.768, allocations: 124.1 kB / 1.099 GB, free: 8.867 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.7681, allocations: 0 / 1.099 GB, free: 8.867 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 7.179e-05/0.7681, allocations: 49.3 kB / 1.099 GB, free: 8.82 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002742/0.7684, allocations: 25.83 kB / 1.099 GB, free: 8.797 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008118/0.7692, allocations: 0.5612 MB / 1.099 GB, free: 8.203 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002818/0.7695, allocations: 0.6969 MB / 1.1 GB, free: 7.48 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.026e-05/0.7696, allocations: 15.44 kB / 1.1 GB, free: 7.465 MB / 0.8575 GB Notification: Performance of SimCode: time 2.4e-07/0.7696, allocations: 0 / 1.1 GB, free: 7.465 MB / 0.8575 GB Notification: Performance of Templates: time 0.002739/0.7723, allocations: 1.311 MB / 1.101 GB, free: 6.152 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Examples.AirDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.AirDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_AirDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches