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.008037/0.008037, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001951/0.001951, allocations: 193.6 kB / 16.67 MB, free: 5.93 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.541/1.541, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002555/0.002555, allocations: 291.7 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.082/1.082, allocations: 169.3 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004565/0.004565, allocations: 100.4 kB / 0.6809 GB, free: 7.52 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4376/0.4422, allocations: 86.97 MB / 0.7659 GB, free: 3.879 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002535/0.4448, allocations: 1.279 MB / 0.7671 GB, free: 2.594 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.1726/0.6174, allocations: 147 MB / 0.9107 GB, free: 15.02 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.17e-05/0.6175, allocations: 0 / 0.9107 GB, free: 15.02 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 2.452e-05/0.6175, allocations: 4 kB / 0.9107 GB, free: 15.01 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 5.134e-05/0.6176, allocations: 7.938 kB / 0.9107 GB, free: 15 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004628/0.6181, allocations: 95.48 kB / 0.9108 GB, free: 14.91 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 8.276e-05/0.6182, allocations: 39.84 kB / 0.9108 GB, free: 14.87 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 3.575e-05/0.6182, allocations: 0 / 0.9108 GB, free: 14.87 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 4.266e-05/0.6183, allocations: 15.92 kB / 0.9108 GB, free: 14.86 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 6.814e-05/0.6183, allocations: 11.94 kB / 0.9108 GB, free: 14.84 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 1.346e-05/0.6184, allocations: 4 kB / 0.9109 GB, free: 14.84 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002661/0.6186, allocations: 79.81 kB / 0.9109 GB, free: 14.76 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 1.574e-05/0.6187, allocations: 8 kB / 0.9109 GB, free: 14.75 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 3.92e-05/0.6187, allocations: 23.91 kB / 0.911 GB, free: 14.73 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.0001593/0.6189, allocations: 61.38 kB / 0.911 GB, free: 14.68 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.6189, allocations: 0 / 0.911 GB, free: 14.68 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.243e-06/0.6189, allocations: 0 / 0.911 GB, free: 14.68 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 4.058e-06/0.6189, allocations: 0 / 0.911 GB, free: 14.68 MB / 0.6856 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.0004652/0.6194, allocations: 358.8 kB / 0.9114 GB, free: 14.28 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.6194, allocations: 8.031 kB / 0.9114 GB, free: 14.27 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.159e-05/0.6195, allocations: 30.75 kB / 0.9114 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000191/0.6197, allocations: 20.92 kB / 0.9114 GB, free: 14.21 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.6198, allocations: 172.1 kB / 0.9116 GB, free: 14.01 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.6198, allocations: 0 / 0.9116 GB, free: 14.01 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.785e-05/0.6199, allocations: 4 kB / 0.9116 GB, free: 14 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001275/0.62, allocations: 53.67 kB / 0.9116 GB, free: 13.95 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.62, allocations: 0 / 0.9116 GB, free: 13.95 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.62, allocations: 0 / 0.9116 GB, free: 13.95 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.62, allocations: 0 / 0.9116 GB, free: 13.95 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.223e-05/0.6201, allocations: 19.98 kB / 0.9117 GB, free: 13.93 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002043/0.6203, allocations: 177.5 kB / 0.9118 GB, free: 13.7 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001552/0.6205, allocations: 50.5 kB / 0.9119 GB, free: 13.64 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.147e-05/0.6205, allocations: 16.84 kB / 0.9119 GB, free: 13.62 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 1.336e-05/0.6205, allocations: 7.938 kB / 0.9119 GB, free: 13.62 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/0.6206, allocations: 34.56 kB / 0.9119 GB, free: 13.57 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.6206, allocations: 0 / 0.9119 GB, free: 13.57 MB / 0.6856 GB Notification: Performance of matching and sorting (n=11): time 0.0007698/0.6213, allocations: 370.1 kB / 0.9123 GB, free: 13.16 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.889e-05/0.6214, allocations: 55.39 kB / 0.9123 GB, free: 13.09 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.311e-05/0.6215, allocations: 97.8 kB / 0.9124 GB, free: 12.99 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 3.015e-05/0.6215, allocations: 29.7 kB / 0.9125 GB, free: 12.95 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 3.794e-05/0.6216, allocations: 80.38 kB / 0.9125 GB, free: 12.87 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 4.535e-05/0.6216, allocations: 39.67 kB / 0.9126 GB, free: 12.83 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.874e-05/0.6217, allocations: 29.84 kB / 0.9126 GB, free: 12.8 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001567/0.6218, allocations: 326.8 kB / 0.9129 GB, free: 12.47 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.872e-05/0.6219, allocations: 16 kB / 0.9129 GB, free: 12.45 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.114e-05/0.6219, allocations: 33.7 kB / 0.913 GB, free: 12.41 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.901e-05/0.622, allocations: 62.23 kB / 0.913 GB, free: 12.35 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.622, allocations: 0 / 0.913 GB, free: 12.35 MB / 0.6856 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001566/0.6222, allocations: 97.56 kB / 0.9131 GB, free: 12.25 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.6222, allocations: 4 kB / 0.9131 GB, free: 12.24 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.6222, allocations: 4 kB / 0.9131 GB, free: 12.24 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.6223, allocations: 4 kB / 0.9131 GB, free: 12.23 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.6224, allocations: 23.98 kB / 0.9131 GB, free: 12.21 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.6224, allocations: 3.938 kB / 0.9131 GB, free: 12.21 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.87e-05/0.6224, allocations: 4 kB / 0.9132 GB, free: 12.2 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.594e-06/0.6225, allocations: 3.938 kB / 0.9132 GB, free: 12.2 MB / 0.6856 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.861e-05/0.6226, allocations: 116.2 kB / 0.9133 GB, free: 12.08 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.898e-05/0.6226, allocations: 11.89 kB / 0.9133 GB, free: 12.07 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.134e-05/0.6226, allocations: 19.97 kB / 0.9133 GB, free: 12.05 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.6227, allocations: 3.984 kB / 0.9133 GB, free: 12.04 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.6227, allocations: 7.984 kB / 0.9133 GB, free: 12.04 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.6227, allocations: 0 / 0.9133 GB, free: 12.04 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001682/0.6228, allocations: 165.6 kB / 0.9135 GB, free: 11.82 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.6229, allocations: 3.984 kB / 0.9135 GB, free: 11.82 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001259/0.623, allocations: 20 kB / 0.9135 GB, free: 11.8 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.623, allocations: 3.938 kB / 0.9135 GB, free: 11.8 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.623, allocations: 4 kB / 0.9135 GB, free: 11.79 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.623, allocations: 0 / 0.9135 GB, free: 11.79 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.623, allocations: 4 kB / 0.9135 GB, free: 11.79 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002208/0.6233, allocations: 133 kB / 0.9136 GB, free: 11.64 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 9.217e-05/0.6234, allocations: 89.06 kB / 0.9137 GB, free: 11.54 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.755e-05/0.6234, allocations: 4.031 kB / 0.9137 GB, free: 11.53 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.577e-05/0.6235, allocations: 4 kB / 0.9137 GB, free: 11.53 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.481e-05/0.6235, allocations: 8 kB / 0.9137 GB, free: 11.52 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.876e-06/0.6235, allocations: 3.984 kB / 0.9137 GB, free: 11.52 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 4.155e-05/0.6236, allocations: 91.16 kB / 0.9138 GB, free: 11.43 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6236, allocations: 0 / 0.9138 GB, free: 11.43 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0002798/0.6239, allocations: 16 kB / 0.9138 GB, free: 11.41 MB / 0.6856 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.0005255/0.6244, allocations: 0.6671 MB / 0.9145 GB, free: 10.71 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0001518/0.6246, allocations: 67.88 kB / 0.9146 GB, free: 10.64 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.6246, allocations: 4.094 kB / 0.9146 GB, free: 10.64 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 4.427e-05/0.6246, allocations: 27.94 kB / 0.9146 GB, free: 10.61 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002873/0.6249, allocations: 14.97 kB / 0.9146 GB, free: 10.6 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00167/0.6266, allocations: 1.442 MB / 0.916 GB, free: 9.074 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003344/0.6269, allocations: 0.6884 MB / 0.9167 GB, free: 8.359 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 5.237e-05/0.627, allocations: 8.672 kB / 0.9167 GB, free: 8.352 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.899e-05/0.6271, allocations: 19.42 kB / 0.9167 GB, free: 8.332 MB / 0.6856 GB Notification: Performance of SimCode: time 5.81e-07/0.6271, allocations: 0 / 0.9167 GB, free: 8.332 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02606/0.6531, allocations: 1.713 MB / 0.9184 GB, free: 6.77 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.617/8.27, allocations: 4.484 kB / 0.9184 GB, free: 6.766 MB / 0.6856 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)