Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007299/0.007299, allocations: 101.5 kB / 15.73 MB, free: 6.449 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.002173/0.002173, allocations: 199.5 kB / 16.68 MB, free: 6.352 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.213/1.213, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.304/2.304, allocations: 437.1 MB / 0.7106 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001679/0.001679, allocations: 67.89 kB / 1.018 GB, free: 15 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.244, allocations: 151.6 MB / 1.166 GB, free: 7.254 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001964/0.246, allocations: 1.27 MB / 1.167 GB, free: 5.965 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.592/0.838, allocations: 147 MB / 1.311 GB, free: 12.04 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.866e-05/0.8381, allocations: 0 / 1.311 GB, free: 12.04 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.673e-05/0.8382, allocations: 2.609 kB / 1.311 GB, free: 12.04 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.163e-05/0.8382, allocations: 4.594 kB / 1.311 GB, free: 12.04 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004145/0.8386, allocations: 95.75 kB / 1.311 GB, free: 12.01 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 6.737e-05/0.8387, allocations: 27.28 kB / 1.311 GB, free: 12.01 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 3.024e-05/0.8387, allocations: 6.344 kB / 1.311 GB, free: 12.01 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 4.058e-05/0.8388, allocations: 20.98 kB / 1.311 GB, free: 12 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.201e-05/0.8389, allocations: 18.77 kB / 1.311 GB, free: 12 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.099e-05/0.8389, allocations: 2.375 kB / 1.311 GB, free: 12 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002387/0.8391, allocations: 77.02 kB / 1.311 GB, free: 11.98 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.74e-05/0.8391, allocations: 11.44 kB / 1.311 GB, free: 11.98 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.146e-05/0.8392, allocations: 18.77 kB / 1.311 GB, free: 11.98 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001459/0.8393, allocations: 60.7 kB / 1.311 GB, free: 11.98 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.8393, allocations: 0 / 1.311 GB, free: 11.98 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.173e-06/0.8394, allocations: 3.938 kB / 1.311 GB, free: 11.97 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.187e-06/0.8394, allocations: 1.375 kB / 1.311 GB, free: 11.97 MB / 1.014 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.0004027/0.8398, allocations: 353.3 kB / 1.312 GB, free: 11.61 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.8398, allocations: 8.406 kB / 1.312 GB, free: 11.61 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.669e-05/0.8398, allocations: 36.95 kB / 1.312 GB, free: 11.57 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001612/0.84, allocations: 10.88 kB / 1.312 GB, free: 11.57 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001205/0.8401, allocations: 162.7 kB / 1.312 GB, free: 11.38 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.8402, allocations: 9.031 kB / 1.312 GB, free: 11.38 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.56e-05/0.8402, allocations: 12 kB / 1.312 GB, free: 11.37 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001104/0.8403, allocations: 49.75 kB / 1.312 GB, free: 11.34 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.8403, allocations: 5.984 kB / 1.312 GB, free: 11.33 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.8403, allocations: 1.594 kB / 1.312 GB, free: 11.33 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-06/0.8403, allocations: 1.594 kB / 1.312 GB, free: 11.33 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.293e-05/0.8404, allocations: 19.25 kB / 1.312 GB, free: 11.33 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001801/0.8406, allocations: 169.1 kB / 1.312 GB, free: 11.14 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 7.804e-05/0.8407, allocations: 50.91 kB / 1.312 GB, free: 11.11 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.679e-05/0.8407, allocations: 16.52 kB / 1.312 GB, free: 11.1 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.079e-05/0.8407, allocations: 1.375 kB / 1.312 GB, free: 11.1 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.177e-05/0.8408, allocations: 39.56 kB / 1.312 GB, free: 11.06 MB / 1.014 GB Notification: Performance of pre-optimization done (n=7): time 1.233e-06/0.8408, allocations: 1.125 kB / 1.312 GB, free: 11.06 MB / 1.014 GB Notification: Performance of matching and sorting (n=11): time 0.0006716/0.8414, allocations: 371.2 kB / 1.313 GB, free: 10.8 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.547e-05/0.8415, allocations: 53.16 kB / 1.313 GB, free: 10.73 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.827e-05/0.8416, allocations: 99.47 kB / 1.313 GB, free: 10.63 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.8416, allocations: 26.98 kB / 1.313 GB, free: 10.6 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 3.865e-05/0.8416, allocations: 85.08 kB / 1.313 GB, free: 10.52 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 4.069e-05/0.8417, allocations: 39.23 kB / 1.313 GB, free: 10.49 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.103e-05/0.8417, allocations: 34.48 kB / 1.313 GB, free: 10.47 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001384/0.8419, allocations: 318 kB / 1.313 GB, free: 10.16 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.656e-05/0.8419, allocations: 29.91 kB / 1.313 GB, free: 10.15 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.467e-05/0.8419, allocations: 37.75 kB / 1.313 GB, free: 10.13 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.086e-05/0.842, allocations: 58.58 kB / 1.313 GB, free: 10.11 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-07/0.842, allocations: 0.9062 kB / 1.313 GB, free: 10.11 MB / 1.014 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001084/0.8422, allocations: 95.84 kB / 1.313 GB, free: 10.08 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.8422, allocations: 6.859 kB / 1.313 GB, free: 10.08 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-06/0.8422, allocations: 0 / 1.313 GB, free: 10.08 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.8422, allocations: 1.5 kB / 1.313 GB, free: 10.08 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.964e-05/0.8423, allocations: 20.7 kB / 1.313 GB, free: 10.08 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.8423, allocations: 0.8438 kB / 1.313 GB, free: 10.08 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.896e-05/0.8423, allocations: 4.469 kB / 1.313 GB, free: 10.08 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.231e-06/0.8424, allocations: 4.047 kB / 1.313 GB, free: 10.08 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (14): * Single equations (assignments): 14 * 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.058e-05/0.8424, allocations: 124.3 kB / 1.314 GB, free: 9.953 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.467e-05/0.8425, allocations: 7.516 kB / 1.314 GB, free: 9.949 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.442e-05/0.8425, allocations: 11.42 kB / 1.314 GB, free: 9.941 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.8425, allocations: 1.438 kB / 1.314 GB, free: 9.941 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.8425, allocations: 1.469 kB / 1.314 GB, free: 9.941 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.8425, allocations: 1.312 kB / 1.314 GB, free: 9.941 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001443/0.8427, allocations: 175.8 kB / 1.314 GB, free: 9.75 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.8427, allocations: 5.375 kB / 1.314 GB, free: 9.746 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.8428, allocations: 24.19 kB / 1.314 GB, free: 9.742 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.8428, allocations: 1.062 kB / 1.314 GB, free: 9.742 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.8428, allocations: 1.75 kB / 1.314 GB, free: 9.742 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.8428, allocations: 0 / 1.314 GB, free: 9.742 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.8428, allocations: 3.25 kB / 1.314 GB, free: 9.742 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001835/0.843, allocations: 137.3 kB / 1.314 GB, free: 9.668 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 7.295e-05/0.8431, allocations: 83.89 kB / 1.314 GB, free: 9.574 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.355e-05/0.8431, allocations: 4.75 kB / 1.314 GB, free: 9.574 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.758e-05/0.8432, allocations: 6.812 kB / 1.314 GB, free: 9.57 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.119e-05/0.8432, allocations: 10.3 kB / 1.314 GB, free: 9.566 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.968e-06/0.8432, allocations: 6.734 kB / 1.314 GB, free: 9.566 MB / 1.014 GB Notification: Performance of sorting global known variables: time 3.684e-05/0.8433, allocations: 80.41 kB / 1.314 GB, free: 9.488 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.01e-07/0.8433, allocations: 0 / 1.314 GB, free: 9.488 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0001811/0.8435, allocations: 19.94 kB / 1.314 GB, free: 9.484 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,hSteSym,hAirSym) * 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 (11): * Single equations (assignments): 11 * 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.0004451/0.8439, allocations: 0.6727 MB / 1.315 GB, free: 8.879 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0001241/0.8441, allocations: 60.53 kB / 1.315 GB, free: 8.871 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.8441, allocations: 1.438 kB / 1.315 GB, free: 8.871 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 3.386e-05/0.8441, allocations: 27.17 kB / 1.315 GB, free: 8.871 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001964/0.8443, allocations: 7.547 kB / 1.315 GB, free: 8.871 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001304/0.8456, allocations: 1.442 MB / 1.316 GB, free: 7.629 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002985/0.8459, allocations: 0.6852 MB / 1.317 GB, free: 6.934 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.741e-05/0.846, allocations: 10.42 kB / 1.317 GB, free: 6.93 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.685e-05/0.846, allocations: 24.42 kB / 1.317 GB, free: 6.918 MB / 1.014 GB Notification: Performance of SimCode: time 2.01e-07/0.846, allocations: 0 / 1.317 GB, free: 6.918 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5934/1.439, allocations: 1.688 MB / 1.319 GB, free: 6.559 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/13.74, allocations: 1.594 kB / 1.319 GB, free: 6.559 MB / 1.014 GB (rm -f Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-08 Buildings_10_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[3]=0.002000 " Variables in the reference:time,der(hLiqSym),der(hLiqCod),der(hSteSym),der(hSteCod),der(hAirSym),der(hAirCod) Variables in the result:T,der(T),der(hAirCod),der(hAirSym),der(hLiqCod),der(hLiqSym),der(hSteCod),der(hSteSym),hAirCod,hAirSym,hLiqCod,hLiqSym,hSteCod,hSteSym,time