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.001461/0.001461, allocations: 108 kB / 15.6 MB, free: 132 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.001644/0.001643, allocations: 192 kB / 16.53 MB, free: 6.391 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.212/1.212, allocations: 222.9 MB / 240.2 MB, free: 4.418 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.255/2.255, allocations: 437 MB / 0.7104 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002175/0.002175, allocations: 67.91 kB / 0.8693 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4888/0.491, allocations: 151.6 MB / 1.017 GB, free: 2.492 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001958/0.493, allocations: 1.276 MB / 1.019 GB, free: 1.207 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.1284/0.6214, allocations: 147 MB / 1.162 GB, free: 13.64 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.962e-05/0.6215, allocations: 0 / 1.162 GB, free: 13.64 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.433e-05/0.6215, allocations: 0 / 1.162 GB, free: 13.64 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.843e-05/0.6216, allocations: 15.91 kB / 1.162 GB, free: 13.63 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003632/0.622, allocations: 91.55 kB / 1.162 GB, free: 13.54 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 5.814e-05/0.622, allocations: 35.86 kB / 1.162 GB, free: 13.5 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.101e-05/0.6221, allocations: 4 kB / 1.162 GB, free: 13.5 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.549e-05/0.6221, allocations: 19.97 kB / 1.162 GB, free: 13.48 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.564e-05/0.6222, allocations: 11.94 kB / 1.162 GB, free: 13.47 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.122e-05/0.6222, allocations: 4 kB / 1.162 GB, free: 13.46 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000218/0.6224, allocations: 79.75 kB / 1.162 GB, free: 13.39 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.367e-05/0.6224, allocations: 8 kB / 1.162 GB, free: 13.38 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.798e-05/0.6225, allocations: 11.92 kB / 1.162 GB, free: 13.37 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001342/0.6226, allocations: 62.14 kB / 1.163 GB, free: 13.31 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.6226, allocations: 4 kB / 1.163 GB, free: 13.3 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.202e-06/0.6226, allocations: 4 kB / 1.163 GB, free: 13.3 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.434e-06/0.6226, allocations: 0 / 1.163 GB, free: 13.3 MB / 0.92 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.0003219/0.623, allocations: 355.4 kB / 1.163 GB, free: 12.91 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.623, allocations: 12.03 kB / 1.163 GB, free: 12.89 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.571e-05/0.623, allocations: 34.75 kB / 1.163 GB, free: 12.85 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001659/0.6232, allocations: 12.92 kB / 1.163 GB, free: 12.84 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.943e-05/0.6233, allocations: 164.1 kB / 1.163 GB, free: 12.64 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.079e-05/0.6233, allocations: 8 kB / 1.163 GB, free: 12.63 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.324e-05/0.6233, allocations: 11.91 kB / 1.163 GB, free: 12.62 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.79e-05/0.6234, allocations: 49.61 kB / 1.163 GB, free: 12.57 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.6235, allocations: 0 / 1.163 GB, free: 12.57 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.344e-05/0.6235, allocations: 8 kB / 1.163 GB, free: 12.56 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.6235, allocations: 3.938 kB / 1.163 GB, free: 12.55 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.121e-05/0.6235, allocations: 11.98 kB / 1.163 GB, free: 12.54 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001423/0.6237, allocations: 169.5 kB / 1.163 GB, free: 12.33 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 7.594e-05/0.6238, allocations: 50.56 kB / 1.163 GB, free: 12.27 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.646e-05/0.6238, allocations: 20.84 kB / 1.163 GB, free: 12.25 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 9.468e-06/0.6238, allocations: 0 / 1.163 GB, free: 12.25 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.6238, allocations: 38.5 kB / 1.163 GB, free: 12.2 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.6238, allocations: 0 / 1.163 GB, free: 12.2 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0006194/0.6245, allocations: 374.8 kB / 1.164 GB, free: 11.78 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.639e-05/0.6245, allocations: 59.39 kB / 1.164 GB, free: 11.71 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.565e-05/0.6246, allocations: 89.86 kB / 1.164 GB, free: 11.61 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.6246, allocations: 33.7 kB / 1.164 GB, free: 11.57 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 2.268e-05/0.6246, allocations: 80.14 kB / 1.164 GB, free: 11.49 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.736e-05/0.6247, allocations: 39.39 kB / 1.164 GB, free: 11.45 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.636e-05/0.6247, allocations: 25.72 kB / 1.164 GB, free: 11.42 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 8.837e-05/0.6248, allocations: 322.8 kB / 1.164 GB, free: 11.1 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.93e-05/0.6248, allocations: 20.12 kB / 1.164 GB, free: 11.08 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.137e-05/0.6249, allocations: 37.7 kB / 1.164 GB, free: 11.04 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.41e-05/0.625, allocations: 65.62 kB / 1.165 GB, free: 10.96 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.61e-07/0.625, allocations: 3.938 kB / 1.165 GB, free: 10.96 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001168/0.6251, allocations: 93.62 kB / 1.165 GB, free: 10.86 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.6251, allocations: 8 kB / 1.165 GB, free: 10.86 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.6251, allocations: 0 / 1.165 GB, free: 10.86 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.007e-05/0.6251, allocations: 0 / 1.165 GB, free: 10.86 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.999e-05/0.6252, allocations: 23.98 kB / 1.165 GB, free: 10.83 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.409e-06/0.6252, allocations: 4 kB / 1.165 GB, free: 10.83 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.803e-05/0.6253, allocations: 0 / 1.165 GB, free: 10.83 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.6253, allocations: 11.94 kB / 1.165 GB, free: 10.82 MB / 0.92 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 7.026e-05/0.6254, allocations: 117.8 kB / 1.165 GB, free: 10.69 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.062e-05/0.6254, allocations: 7.906 kB / 1.165 GB, free: 10.68 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.654e-05/0.6254, allocations: 7.969 kB / 1.165 GB, free: 10.68 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.6254, allocations: 3.984 kB / 1.165 GB, free: 10.67 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.6254, allocations: 0 / 1.165 GB, free: 10.67 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.6255, allocations: 0 / 1.165 GB, free: 10.67 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001133/0.6256, allocations: 177.6 kB / 1.165 GB, free: 10.45 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.6256, allocations: 3.984 kB / 1.165 GB, free: 10.45 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.6257, allocations: 20 kB / 1.165 GB, free: 10.43 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.6257, allocations: 4 kB / 1.165 GB, free: 10.42 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.6257, allocations: 0 / 1.165 GB, free: 10.42 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.6257, allocations: 0 / 1.165 GB, free: 10.42 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.6257, allocations: 0 / 1.165 GB, free: 10.42 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001789/0.6259, allocations: 148.8 kB / 1.165 GB, free: 10.26 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.414e-05/0.626, allocations: 85.11 kB / 1.165 GB, free: 10.16 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.408e-05/0.626, allocations: 4.031 kB / 1.165 GB, free: 10.15 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.726e-05/0.6261, allocations: 8.094 kB / 1.165 GB, free: 10.14 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.654e-05/0.6261, allocations: 3.984 kB / 1.165 GB, free: 10.14 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.6261, allocations: 7.984 kB / 1.165 GB, free: 10.13 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.195e-05/0.6261, allocations: 79.22 kB / 1.165 GB, free: 10.05 MB / 0.92 GB Notification: Performance of sort global known variables: time 1e-07/0.6261, allocations: 0 / 1.165 GB, free: 10.05 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000176/0.6263, allocations: 16 kB / 1.165 GB, free: 10.04 MB / 0.92 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.0003598/0.6267, allocations: 0.6749 MB / 1.166 GB, free: 9.336 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001153/0.6268, allocations: 59.95 kB / 1.166 GB, free: 9.277 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.6268, allocations: 0 / 1.166 GB, free: 9.277 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 3.342e-05/0.6269, allocations: 31.92 kB / 1.166 GB, free: 9.246 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001832/0.6271, allocations: 8 kB / 1.166 GB, free: 9.238 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.6282, allocations: 1.455 MB / 1.168 GB, free: 7.699 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002079/0.6284, allocations: 0.6885 MB / 1.168 GB, free: 6.984 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 5.815e-05/0.6285, allocations: 8.672 kB / 1.168 GB, free: 6.977 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.448e-05/0.6285, allocations: 15.44 kB / 1.168 GB, free: 6.961 MB / 0.92 GB Notification: Performance of SimCode: time 2.01e-07/0.6285, allocations: 0 / 1.168 GB, free: 6.961 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6575/1.286, allocations: 1.644 MB / 1.17 GB, free: 5.434 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/13.28, allocations: 17.91 kB / 1.17 GB, free: 5.422 MB / 0.92 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=50 --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