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.004218/0.004218, allocations: 101 kB / 15.73 MB, free: 6.059 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.001241/0.001241, allocations: 190.9 kB / 16.67 MB, free: 5.969 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.4 MB, free: 15.14 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.52/2.52, allocations: 437 MB / 0.7105 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001894, allocations: 60.11 kB / 1.018 GB, free: 9.934 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.655/0.6569, allocations: 151.6 MB / 1.166 GB, free: 3.793 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002274/0.6592, allocations: 1.289 MB / 1.167 GB, free: 2.496 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.1683/0.8276, allocations: 147 MB / 1.311 GB, free: 14.93 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.021e-05/0.8277, allocations: 0 / 1.311 GB, free: 14.93 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.343e-05/0.8277, allocations: 0 / 1.311 GB, free: 14.93 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 4.529e-05/0.8278, allocations: 7.922 kB / 1.311 GB, free: 14.92 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004072/0.8282, allocations: 95.56 kB / 1.311 GB, free: 14.82 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 7.831e-05/0.8283, allocations: 27.92 kB / 1.311 GB, free: 14.8 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 3.367e-05/0.8283, allocations: 7.922 kB / 1.311 GB, free: 14.79 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 4.102e-05/0.8283, allocations: 15.98 kB / 1.311 GB, free: 14.77 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.579e-05/0.8284, allocations: 11.94 kB / 1.311 GB, free: 14.76 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.065e-05/0.8284, allocations: 0 / 1.311 GB, free: 14.76 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002589/0.8287, allocations: 87.75 kB / 1.311 GB, free: 14.68 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.446e-05/0.8287, allocations: 3.984 kB / 1.311 GB, free: 14.67 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.036e-05/0.8288, allocations: 23.92 kB / 1.311 GB, free: 14.65 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001605/0.8289, allocations: 59.55 kB / 1.311 GB, free: 14.59 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.8289, allocations: 0 / 1.311 GB, free: 14.59 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.032e-06/0.8289, allocations: 0 / 1.311 GB, free: 14.59 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.829, allocations: 0 / 1.311 GB, free: 14.59 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.0004407/0.8294, allocations: 355.3 kB / 1.312 GB, free: 14.2 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.8294, allocations: 12.86 kB / 1.312 GB, free: 14.19 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.226e-05/0.8295, allocations: 38.75 kB / 1.312 GB, free: 14.14 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001821/0.8297, allocations: 12.92 kB / 1.312 GB, free: 14.13 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001245/0.8298, allocations: 168.1 kB / 1.312 GB, free: 13.93 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.8298, allocations: 0 / 1.312 GB, free: 13.93 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.57e-05/0.8299, allocations: 11.95 kB / 1.312 GB, free: 13.91 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001226/0.83, allocations: 57.59 kB / 1.312 GB, free: 13.85 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.83, allocations: 0 / 1.312 GB, free: 13.85 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.789e-06/0.83, allocations: 0 / 1.312 GB, free: 13.85 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.83, allocations: 4 kB / 1.312 GB, free: 13.85 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.699e-05/0.8301, allocations: 15.98 kB / 1.312 GB, free: 13.83 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001918/0.8303, allocations: 169.5 kB / 1.312 GB, free: 13.62 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 9.04e-05/0.8304, allocations: 50.64 kB / 1.312 GB, free: 13.56 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.534e-05/0.8304, allocations: 20.94 kB / 1.312 GB, free: 13.54 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.571e-05/0.8304, allocations: 7.922 kB / 1.312 GB, free: 13.53 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.773e-05/0.8305, allocations: 38.56 kB / 1.312 GB, free: 13.48 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.002e-06/0.8305, allocations: 0 / 1.312 GB, free: 13.48 MB / 1.045 GB Notification: Performance of matching and sorting (n=11): time 0.0007447/0.8312, allocations: 370.2 kB / 1.313 GB, free: 13.07 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.935e-05/0.8313, allocations: 55.41 kB / 1.313 GB, free: 13 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.847e-05/0.8314, allocations: 89.86 kB / 1.313 GB, free: 12.9 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.059e-05/0.8314, allocations: 29.7 kB / 1.313 GB, free: 12.87 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 4.348e-05/0.8315, allocations: 80.14 kB / 1.313 GB, free: 12.79 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.502e-05/0.8315, allocations: 47.62 kB / 1.313 GB, free: 12.74 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.611e-05/0.8316, allocations: 25.72 kB / 1.313 GB, free: 12.71 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001465/0.8317, allocations: 326.9 kB / 1.313 GB, free: 12.38 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.645e-05/0.8318, allocations: 16 kB / 1.313 GB, free: 12.36 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.55e-05/0.8318, allocations: 39.39 kB / 1.313 GB, free: 12.32 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001003/0.8319, allocations: 58.25 kB / 1.313 GB, free: 12.26 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/0.8319, allocations: 0 / 1.313 GB, free: 12.26 MB / 1.045 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001475/0.8321, allocations: 97.59 kB / 1.313 GB, free: 12.16 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.8321, allocations: 4 kB / 1.313 GB, free: 12.15 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.8321, allocations: 4 kB / 1.313 GB, free: 12.15 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.8321, allocations: 4 kB / 1.313 GB, free: 12.14 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.8322, allocations: 27.92 kB / 1.313 GB, free: 12.12 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.8323, allocations: 4 kB / 1.313 GB, free: 12.11 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.158e-05/0.8323, allocations: 0 / 1.313 GB, free: 12.11 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/0.8323, allocations: 7.938 kB / 1.313 GB, free: 12.11 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 9.315e-05/0.8324, allocations: 113.8 kB / 1.314 GB, free: 11.98 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.487e-05/0.8324, allocations: 7.953 kB / 1.314 GB, free: 11.98 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.867e-05/0.8325, allocations: 15.95 kB / 1.314 GB, free: 11.96 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-06/0.8325, allocations: 8 kB / 1.314 GB, free: 11.95 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.8325, allocations: 0 / 1.314 GB, free: 11.95 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.8325, allocations: 3.938 kB / 1.314 GB, free: 11.95 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001497/0.8327, allocations: 169.6 kB / 1.314 GB, free: 11.73 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.8327, allocations: 4 kB / 1.314 GB, free: 11.73 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001218/0.8328, allocations: 16 kB / 1.314 GB, free: 11.71 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.8328, allocations: 0 / 1.314 GB, free: 11.71 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.8328, allocations: 8 kB / 1.314 GB, free: 11.7 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.8328, allocations: 0 / 1.314 GB, free: 11.7 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.8328, allocations: 3.984 kB / 1.314 GB, free: 11.7 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002178/0.8331, allocations: 140.9 kB / 1.314 GB, free: 11.54 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 7.16e-05/0.8331, allocations: 81.11 kB / 1.314 GB, free: 11.45 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.826e-05/0.8332, allocations: 8.031 kB / 1.314 GB, free: 11.44 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.173e-05/0.8333, allocations: 0 / 1.314 GB, free: 11.44 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.848e-05/0.8333, allocations: 8 kB / 1.314 GB, free: 11.43 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.8333, allocations: 7.984 kB / 1.314 GB, free: 11.42 MB / 1.045 GB Notification: Performance of sorting global known variables: time 4.655e-05/0.8333, allocations: 79.22 kB / 1.314 GB, free: 11.34 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8334, allocations: 96 / 1.314 GB, free: 11.34 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002063/0.8336, allocations: 20 kB / 1.314 GB, free: 11.32 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.0004998/0.8341, allocations: 0.6711 MB / 1.315 GB, free: 10.62 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001346/0.8342, allocations: 64 kB / 1.315 GB, free: 10.56 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.8342, allocations: 4 kB / 1.315 GB, free: 10.55 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 3.931e-05/0.8343, allocations: 24 kB / 1.315 GB, free: 10.53 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002109/0.8345, allocations: 11.98 kB / 1.315 GB, free: 10.52 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/0.836, allocations: 1.448 MB / 1.316 GB, free: 8.984 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003223/0.8363, allocations: 0.6846 MB / 1.317 GB, free: 8.273 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 5.351e-05/0.8364, allocations: 12.66 kB / 1.317 GB, free: 8.262 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.892e-05/0.8364, allocations: 19.44 kB / 1.317 GB, free: 8.242 MB / 1.045 GB Notification: Performance of SimCode: time 3.1e-07/0.8364, allocations: 0 / 1.317 GB, free: 8.242 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02258/0.859, allocations: 1.683 MB / 1.319 GB, free: 6.699 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.654/8.513, allocations: 10.16 kB / 1.319 GB, free: 6.691 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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) Reference file matches