Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_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.001598/0.001598, allocations: 108 kB / 15.61 MB, free: 152 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.001712/0.001712, allocations: 192.6 kB / 16.53 MB, free: 6.664 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.356/1.356, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002501/0.002501, allocations: 282.8 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.023/1.023, allocations: 178.6 MB / 0.5073 GB, free: 4.59 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002678/0.002678, allocations: 101.8 kB / 0.6065 GB, free: 24.82 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1415, allocations: 89.15 MB / 0.6936 GB, free: 4.223 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002362/0.1439, allocations: 1.262 MB / 0.6948 GB, free: 2.957 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.3937/0.5376, allocations: 147 MB / 0.8384 GB, free: 13.22 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.131e-05/0.5377, allocations: 0 / 0.8384 GB, free: 13.22 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 1.908e-05/0.5378, allocations: 3.984 kB / 0.8384 GB, free: 13.22 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 5.235e-05/0.5378, allocations: 9.422 kB / 0.8384 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004002/0.5382, allocations: 102 kB / 0.8385 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 6.14e-05/0.5383, allocations: 30.89 kB / 0.8385 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.215e-05/0.5383, allocations: 2.875 kB / 0.8385 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 4.507e-05/0.5384, allocations: 23.66 kB / 0.8386 GB, free: 13.11 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 5.07e-05/0.5385, allocations: 9.297 kB / 0.8386 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.214e-05/0.5385, allocations: 3 kB / 0.8386 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002457/0.5387, allocations: 76.67 kB / 0.8386 GB, free: 13.06 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 1.895e-05/0.5388, allocations: 14.17 kB / 0.8386 GB, free: 13.05 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.593e-05/0.5388, allocations: 10.53 kB / 0.8387 GB, free: 13.04 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.000151/0.5389, allocations: 71.2 kB / 0.8387 GB, free: 13.01 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.539, allocations: 4 kB / 0.8387 GB, free: 13 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.493e-06/0.539, allocations: 0.9375 kB / 0.8387 GB, free: 13 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.857e-06/0.539, allocations: 0 / 0.8387 GB, free: 13 MB / 0.5762 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.0004119/0.5394, allocations: 346.3 kB / 0.8391 GB, free: 12.64 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.5394, allocations: 10.03 kB / 0.8391 GB, free: 12.64 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.064e-05/0.5395, allocations: 44.06 kB / 0.8391 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001742/0.5396, allocations: 13.12 kB / 0.8391 GB, free: 12.58 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.5398, allocations: 165.3 kB / 0.8393 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.949e-06/0.5398, allocations: 10.28 kB / 0.8393 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.78e-05/0.5398, allocations: 11.14 kB / 0.8393 GB, free: 12.37 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001098/0.5399, allocations: 44.91 kB / 0.8393 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.54, allocations: 0 / 0.8393 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.54, allocations: 1.031 kB / 0.8393 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.54, allocations: 1.125 kB / 0.8393 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.55e-05/0.54, allocations: 18.05 kB / 0.8394 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001848/0.5402, allocations: 173.2 kB / 0.8395 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 9.062e-05/0.5403, allocations: 56.41 kB / 0.8396 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.634e-05/0.5404, allocations: 12.48 kB / 0.8396 GB, free: 12.06 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 9.688e-06/0.5404, allocations: 5.406 kB / 0.8396 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.5404, allocations: 31.66 kB / 0.8396 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.5404, allocations: 1.688 kB / 0.8396 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of matching and sorting (n=11): time 0.0007075/0.5411, allocations: 380.1 kB / 0.84 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.606e-05/0.5412, allocations: 52.78 kB / 0.84 GB, free: 11.62 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.798e-05/0.5412, allocations: 94.92 kB / 0.8401 GB, free: 11.52 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.927e-05/0.5413, allocations: 30.83 kB / 0.8402 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 3.6e-05/0.5413, allocations: 81.05 kB / 0.8402 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.148e-05/0.5414, allocations: 35.39 kB / 0.8403 GB, free: 11.37 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.597e-05/0.5414, allocations: 31.11 kB / 0.8403 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000129/0.5415, allocations: 320.1 kB / 0.8406 GB, free: 11.02 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.617e-05/0.5416, allocations: 22.14 kB / 0.8406 GB, free: 11.01 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.27e-05/0.5416, allocations: 37.27 kB / 0.8407 GB, free: 10.98 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.084e-05/0.5417, allocations: 57.39 kB / 0.8407 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/0.5417, allocations: 0 / 0.8407 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001442/0.5419, allocations: 101.6 kB / 0.8408 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/0.5419, allocations: 5.938 kB / 0.8408 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.5419, allocations: 3.984 kB / 0.8408 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.5419, allocations: 2.625 kB / 0.8408 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.5421, allocations: 20.47 kB / 0.8409 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.5421, allocations: 10.5 kB / 0.8409 GB, free: 10.87 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.121e-05/0.5421, allocations: 0 / 0.8409 GB, free: 10.87 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.5421, allocations: 4.594 kB / 0.8409 GB, free: 10.87 MB / 0.5762 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.507e-05/0.5422, allocations: 123.3 kB / 0.841 GB, free: 10.74 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.451e-05/0.5422, allocations: 4.094 kB / 0.841 GB, free: 10.74 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.901e-05/0.5423, allocations: 10.5 kB / 0.841 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.5423, allocations: 0 / 0.841 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.5423, allocations: 0 / 0.841 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.5423, allocations: 10.38 kB / 0.841 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001413/0.5424, allocations: 173.7 kB / 0.8412 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.5424, allocations: 3.188 kB / 0.8412 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001137/0.5426, allocations: 19.25 kB / 0.8412 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.5426, allocations: 10.36 kB / 0.8412 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.333e-06/0.5426, allocations: 0 / 0.8412 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.5426, allocations: 0 / 0.8412 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.5426, allocations: 2.812 kB / 0.8412 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001922/0.5428, allocations: 141.3 kB / 0.8413 GB, free: 10.39 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.12e-05/0.5429, allocations: 87.2 kB / 0.8414 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.381e-05/0.5429, allocations: 2.656 kB / 0.8414 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.566e-05/0.543, allocations: 4 kB / 0.8414 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.196e-05/0.543, allocations: 11.2 kB / 0.8414 GB, free: 10.28 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.543, allocations: 4.812 kB / 0.8414 GB, free: 10.28 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 3.565e-05/0.5431, allocations: 75.28 kB / 0.8415 GB, free: 10.21 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5431, allocations: 0 / 0.8415 GB, free: 10.21 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0001936/0.5433, allocations: 20.72 kB / 0.8415 GB, free: 10.2 MB / 0.5762 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.0004562/0.5437, allocations: 0.6745 MB / 0.8422 GB, free: 9.559 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001324/0.5439, allocations: 55.5 kB / 0.8423 GB, free: 9.539 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.5439, allocations: 1.156 kB / 0.8423 GB, free: 9.539 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 4.454e-05/0.5439, allocations: 34.02 kB / 0.8423 GB, free: 9.523 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002083/0.5441, allocations: 12.47 kB / 0.8423 GB, free: 9.516 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001394/0.5455, allocations: 1.436 MB / 0.8437 GB, free: 8.168 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000293/0.5458, allocations: 0.6928 MB / 0.8444 GB, free: 7.461 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 6.304e-05/0.5459, allocations: 8.266 kB / 0.8444 GB, free: 7.457 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.839e-05/0.546, allocations: 19.02 kB / 0.8444 GB, free: 7.441 MB / 0.5762 GB Notification: Performance of SimCode: time 2.6e-07/0.546, allocations: 1.812 kB / 0.8444 GB, free: 7.441 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02337/0.5693, allocations: 1.663 MB / 0.846 GB, free: 6.582 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.362/7.931, allocations: 6.562 kB / 0.846 GB, free: 6.578 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)