Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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: "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_9_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.007948/0.007948, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.00198/0.00198, allocations: 192.2 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.355/1.355, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.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.204/2.204, allocations: 390.3 MB / 0.6648 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 59.89 kB / 0.9504 GB, free: 8.148 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6429/0.6442, allocations: 140.4 MB / 1.087 GB, free: 5.25 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002092/0.6463, allocations: 1.28 MB / 1.089 GB, free: 4.355 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1512/0.7976, allocations: 147 MB / 1.232 GB, free: 6.074 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.338e-05/0.7976, allocations: 0 / 1.232 GB, free: 6.074 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.353e-05/0.7977, allocations: 5.141 kB / 1.232 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.743e-05/0.7978, allocations: 7.922 kB / 1.232 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004348/0.7982, allocations: 91.34 kB / 1.232 GB, free: 5.996 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.221e-05/0.7983, allocations: 31.89 kB / 1.232 GB, free: 5.98 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.533e-05/0.7983, allocations: 6.516 kB / 1.232 GB, free: 5.977 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.136e-05/0.7984, allocations: 20.14 kB / 1.232 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.498e-05/0.7984, allocations: 12.42 kB / 1.232 GB, free: 5.957 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.146e-05/0.7985, allocations: 2.312 kB / 1.232 GB, free: 5.957 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002559/0.7987, allocations: 86.41 kB / 1.232 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.765e-05/0.7987, allocations: 10.16 kB / 1.233 GB, free: 5.898 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.804e-05/0.7988, allocations: 18.19 kB / 1.233 GB, free: 5.887 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.00015/0.7989, allocations: 64.55 kB / 1.233 GB, free: 5.859 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.799, allocations: 4 kB / 1.233 GB, free: 5.855 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.172e-06/0.799, allocations: 5.375 kB / 1.233 GB, free: 5.852 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.148e-06/0.799, allocations: 0 / 1.233 GB, free: 5.852 MB / 0.9669 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.0003446/0.7993, allocations: 348.7 kB / 1.233 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.7994, allocations: 14.17 kB / 1.233 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.565e-05/0.7994, allocations: 36.19 kB / 1.233 GB, free: 5.434 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001828/0.7996, allocations: 12.67 kB / 1.233 GB, free: 5.43 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.796e-05/0.7997, allocations: 169.4 kB / 1.233 GB, free: 5.227 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.7997, allocations: 1.344 kB / 1.233 GB, free: 5.227 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.491e-05/0.7997, allocations: 7.531 kB / 1.233 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001141/0.7999, allocations: 56.7 kB / 1.233 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.7999, allocations: 5.266 kB / 1.233 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.7999, allocations: 4 kB / 1.233 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.7999, allocations: 1.469 kB / 1.233 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.551e-05/0.8, allocations: 12.8 kB / 1.233 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001555/0.8001, allocations: 172.8 kB / 1.233 GB, free: 4.949 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 8.805e-05/0.8002, allocations: 47.84 kB / 1.233 GB, free: 4.914 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.808e-05/0.8002, allocations: 15.23 kB / 1.233 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.233e-05/0.8003, allocations: 5.375 kB / 1.233 GB, free: 4.898 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/0.8003, allocations: 35.84 kB / 1.233 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.8003, allocations: 0 / 1.233 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0006974/0.801, allocations: 374.8 kB / 1.234 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.308e-05/0.801, allocations: 52.69 kB / 1.234 GB, free: 4.465 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.649e-05/0.8011, allocations: 99.27 kB / 1.234 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.598e-05/0.8011, allocations: 26.95 kB / 1.234 GB, free: 4.328 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.711e-05/0.8012, allocations: 81.48 kB / 1.234 GB, free: 4.246 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.808e-05/0.8012, allocations: 43.3 kB / 1.234 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.316e-05/0.8013, allocations: 30.67 kB / 1.234 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.077e-05/0.8014, allocations: 315.8 kB / 1.234 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.696e-05/0.8014, allocations: 19.42 kB / 1.234 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.79e-05/0.8014, allocations: 40.02 kB / 1.235 GB, free: 3.824 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.99e-05/0.8015, allocations: 60.23 kB / 1.235 GB, free: 3.785 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.61e-07/0.8015, allocations: 0 / 1.235 GB, free: 3.785 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001393/0.8017, allocations: 102.2 kB / 1.235 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.8017, allocations: 4.438 kB / 1.235 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.8017, allocations: 1.031 kB / 1.235 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.8017, allocations: 1.312 kB / 1.235 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.8019, allocations: 17.69 kB / 1.235 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.8019, allocations: 6.609 kB / 1.235 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.542e-05/0.8019, allocations: 7.922 kB / 1.235 GB, free: 3.707 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.124e-05/0.8019, allocations: 19.38 kB / 1.235 GB, free: 3.691 MB / 0.9669 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.93e-05/0.802, allocations: 117.2 kB / 1.235 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.581e-05/0.802, allocations: 2.188 kB / 1.235 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.202e-05/0.8021, allocations: 9.188 kB / 1.235 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.8021, allocations: 1.156 kB / 1.235 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.8021, allocations: 0 / 1.235 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.8021, allocations: 1.062 kB / 1.235 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001236/0.8022, allocations: 179.7 kB / 1.235 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.8022, allocations: 3.938 kB / 1.235 GB, free: 3.344 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001297/0.8024, allocations: 26.83 kB / 1.235 GB, free: 3.336 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.8024, allocations: 0 / 1.235 GB, free: 3.336 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.275e-06/0.8024, allocations: 0.8125 kB / 1.235 GB, free: 3.336 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.8024, allocations: 1.062 kB / 1.235 GB, free: 3.336 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.8024, allocations: 0 / 1.235 GB, free: 3.336 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001943/0.8026, allocations: 135.9 kB / 1.235 GB, free: 3.23 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.086e-05/0.8027, allocations: 88.53 kB / 1.235 GB, free: 3.129 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.666e-05/0.8027, allocations: 0.9062 kB / 1.235 GB, free: 3.129 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.033e-05/0.8028, allocations: 11.28 kB / 1.235 GB, free: 3.121 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.923e-05/0.8028, allocations: 6.359 kB / 1.235 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.047e-06/0.8028, allocations: 3.281 kB / 1.235 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.313e-05/0.8029, allocations: 84.31 kB / 1.235 GB, free: 3.035 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8029, allocations: 0 / 1.235 GB, free: 3.035 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002074/0.8031, allocations: 16.5 kB / 1.235 GB, free: 3.031 MB / 0.9669 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.0004006/0.8035, allocations: 0.6765 MB / 1.236 GB, free: 2.387 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001235/0.8036, allocations: 51.27 kB / 1.236 GB, free: 2.371 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.8036, allocations: 1.219 kB / 1.236 GB, free: 2.371 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 4.063e-05/0.8037, allocations: 34.55 kB / 1.236 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002113/0.8039, allocations: 4.344 kB / 1.236 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001245/0.8052, allocations: 1.455 MB / 1.238 GB, free: 0.9844 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002086/0.8054, allocations: 0.6885 MB / 1.238 GB, free: 288 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 5.642e-05/0.8054, allocations: 12.25 kB / 1.238 GB, free: 280 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.889e-05/0.8055, allocations: 15.66 kB / 1.238 GB, free: 268 kB / 0.9669 GB Notification: Performance of SimCode: time 2.31e-07/0.8055, allocations: 0 / 1.238 GB, free: 268 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01681/0.8223, allocations: 1.68 MB / 1.24 GB, free: 15.37 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.107/7.929, allocations: 7.688 kB / 1.24 GB, free: 15.36 MB / 0.9825 GB (rm -f Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches