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.006316/0.006316, allocations: 100.6 kB / 15.73 MB, free: 6.004 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.001351/0.001351, allocations: 197 kB / 16.68 MB, free: 5.926 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.325/1.325, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.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.409/2.409, allocations: 437 MB / 0.7105 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 60.12 kB / 1.018 GB, free: 9.918 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7648/0.7662, allocations: 151.6 MB / 1.166 GB, free: 3.738 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002407/0.7687, allocations: 1.279 MB / 1.167 GB, free: 2.449 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.1656/0.9343, allocations: 147 MB / 1.311 GB, free: 14.87 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.029e-05/0.9344, allocations: 0 / 1.311 GB, free: 14.87 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.325e-05/0.9345, allocations: 3.938 kB / 1.311 GB, free: 14.87 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 5.599e-05/0.9345, allocations: 3.984 kB / 1.311 GB, free: 14.86 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004667/0.935, allocations: 91.56 kB / 1.311 GB, free: 14.77 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 8.315e-05/0.9351, allocations: 43.8 kB / 1.311 GB, free: 14.73 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.819e-05/0.9352, allocations: 3.984 kB / 1.311 GB, free: 14.73 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 4.569e-05/0.9352, allocations: 11.98 kB / 1.311 GB, free: 14.71 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.877e-05/0.9353, allocations: 23.86 kB / 1.311 GB, free: 14.69 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.275e-05/0.9353, allocations: 0 / 1.311 GB, free: 14.69 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000277/0.9356, allocations: 79.83 kB / 1.311 GB, free: 14.61 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.451e-05/0.9356, allocations: 7.984 kB / 1.311 GB, free: 14.61 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.817e-05/0.9357, allocations: 19.92 kB / 1.311 GB, free: 14.59 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.000166/0.9358, allocations: 62.12 kB / 1.311 GB, free: 14.53 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.9359, allocations: 0 / 1.311 GB, free: 14.53 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.182e-06/0.9359, allocations: 4 kB / 1.311 GB, free: 14.52 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.773e-06/0.9359, allocations: 0 / 1.311 GB, free: 14.52 MB / 1.045 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.0003779/0.9363, allocations: 347.5 kB / 1.312 GB, free: 14.14 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.9363, allocations: 12.86 kB / 1.312 GB, free: 14.12 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.664e-05/0.9363, allocations: 38.75 kB / 1.312 GB, free: 14.08 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002121/0.9366, allocations: 16.83 kB / 1.312 GB, free: 14.06 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001058/0.9367, allocations: 164.1 kB / 1.312 GB, free: 13.86 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.9367, allocations: 0 / 1.312 GB, free: 13.86 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.982e-05/0.9367, allocations: 12 kB / 1.312 GB, free: 13.85 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001164/0.9369, allocations: 49.67 kB / 1.312 GB, free: 13.8 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.812e-06/0.9369, allocations: 0 / 1.312 GB, free: 13.8 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.9369, allocations: 4 kB / 1.312 GB, free: 13.79 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.9369, allocations: 4 kB / 1.312 GB, free: 13.79 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.156e-05/0.937, allocations: 15.92 kB / 1.312 GB, free: 13.77 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001913/0.9372, allocations: 181.5 kB / 1.312 GB, free: 13.55 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 9.602e-05/0.9373, allocations: 50.62 kB / 1.312 GB, free: 13.49 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.375e-05/0.9373, allocations: 20.86 kB / 1.312 GB, free: 13.46 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.204e-05/0.9373, allocations: 0 / 1.312 GB, free: 13.46 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.9374, allocations: 30.56 kB / 1.312 GB, free: 13.43 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 9.62e-07/0.9374, allocations: 0 / 1.312 GB, free: 13.43 MB / 1.045 GB Notification: Performance of matching and sorting (n=11): time 0.0007592/0.9381, allocations: 370 kB / 1.313 GB, free: 13.01 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/0.9382, allocations: 59.41 kB / 1.313 GB, free: 12.94 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.54e-05/0.9382, allocations: 93.86 kB / 1.313 GB, free: 12.84 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.9383, allocations: 29.7 kB / 1.313 GB, free: 12.8 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 2.818e-05/0.9383, allocations: 80.14 kB / 1.313 GB, free: 12.72 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.27e-05/0.9384, allocations: 43.59 kB / 1.313 GB, free: 12.68 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.468e-05/0.9384, allocations: 25.72 kB / 1.313 GB, free: 12.65 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.9385, allocations: 318.8 kB / 1.313 GB, free: 12.33 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.904e-05/0.9386, allocations: 23.98 kB / 1.313 GB, free: 12.3 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.142e-05/0.9386, allocations: 43.2 kB / 1.313 GB, free: 12.26 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.618e-05/0.9387, allocations: 54.2 kB / 1.313 GB, free: 12.2 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.9387, allocations: 0 / 1.313 GB, free: 12.2 MB / 1.045 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001438/0.9389, allocations: 101.6 kB / 1.313 GB, free: 12.09 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.9389, allocations: 11.94 kB / 1.313 GB, free: 12.08 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.9389, allocations: 3.938 kB / 1.313 GB, free: 12.08 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.9389, allocations: 3.984 kB / 1.313 GB, free: 12.07 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.9391, allocations: 23.94 kB / 1.313 GB, free: 12.05 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.9391, allocations: 4 kB / 1.313 GB, free: 12.05 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.157e-05/0.9391, allocations: 0 / 1.313 GB, free: 12.05 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.9391, allocations: 11.94 kB / 1.313 GB, free: 12.04 MB / 1.045 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.725e-05/0.9392, allocations: 113.8 kB / 1.314 GB, free: 11.91 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.789e-05/0.9393, allocations: 3.984 kB / 1.314 GB, free: 11.91 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.93e-05/0.9393, allocations: 11.97 kB / 1.314 GB, free: 11.89 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.9393, allocations: 0 / 1.314 GB, free: 11.89 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.9393, allocations: 0 / 1.314 GB, free: 11.89 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.9393, allocations: 3.984 kB / 1.314 GB, free: 11.89 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001432/0.9395, allocations: 177.6 kB / 1.314 GB, free: 11.67 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.9395, allocations: 0 / 1.314 GB, free: 11.67 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000125/0.9396, allocations: 23.94 kB / 1.314 GB, free: 11.64 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.9396, allocations: 0 / 1.314 GB, free: 11.64 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.9397, allocations: 7.984 kB / 1.314 GB, free: 11.64 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.9397, allocations: 0 / 1.314 GB, free: 11.64 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.9397, allocations: 0 / 1.314 GB, free: 11.64 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002247/0.9399, allocations: 136.9 kB / 1.314 GB, free: 11.48 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 7.859e-05/0.94, allocations: 85.05 kB / 1.314 GB, free: 11.38 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.519e-05/0.94, allocations: 8 kB / 1.314 GB, free: 11.38 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.349e-05/0.9401, allocations: 8 kB / 1.314 GB, free: 11.37 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.336e-05/0.9401, allocations: 11.92 kB / 1.314 GB, free: 11.36 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-06/0.9401, allocations: 4 kB / 1.314 GB, free: 11.35 MB / 1.045 GB Notification: Performance of sorting global known variables: time 3.585e-05/0.9402, allocations: 79.22 kB / 1.314 GB, free: 11.27 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9402, allocations: 0 / 1.314 GB, free: 11.27 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002055/0.9404, allocations: 16 kB / 1.314 GB, free: 11.26 MB / 1.045 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.0004684/0.9409, allocations: 0.6752 MB / 1.315 GB, free: 10.55 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001382/0.941, allocations: 59.89 kB / 1.315 GB, free: 10.49 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.941, allocations: 0 / 1.315 GB, free: 10.49 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 3.939e-05/0.9411, allocations: 31.92 kB / 1.315 GB, free: 10.46 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002208/0.9413, allocations: 4 kB / 1.315 GB, free: 10.46 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001376/0.9427, allocations: 1.438 MB / 1.316 GB, free: 8.934 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.943, allocations: 0.6962 MB / 1.317 GB, free: 8.211 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 5.66e-05/0.943, allocations: 12.66 kB / 1.317 GB, free: 8.199 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.189e-05/0.9431, allocations: 23.31 kB / 1.317 GB, free: 8.176 MB / 1.045 GB Notification: Performance of SimCode: time 2.1e-07/0.9431, allocations: 0 / 1.317 GB, free: 8.176 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02022/0.9633, allocations: 1.689 MB / 1.319 GB, free: 6.625 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.827/8.791, allocations: 10.28 kB / 1.319 GB, free: 6.621 MB / 1.045 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[2]=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