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.001231/0.001231, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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: 196.4 kB / 16.14 MB, free: 6.707 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.196/1.196, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001936/0.001937, allocations: 287.1 kB / 290.2 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8447/0.8447, allocations: 169.2 MB / 0.4977 GB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 92.31 kB / 0.5946 GB, free: 28.53 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1226, allocations: 86.98 MB / 0.6795 GB, free: 1.086 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001992/0.1246, allocations: 1.321 MB / 0.6808 GB, free: 15.76 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.3583/0.483, allocations: 144.7 MB / 0.8221 GB, free: 1.25 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.59e-05/0.483, allocations: 0 / 0.8221 GB, free: 1.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.821e-05/0.4831, allocations: 2.484 kB / 0.8221 GB, free: 1.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.193e-05/0.4831, allocations: 6.984 kB / 0.8221 GB, free: 1.246 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002813/0.4834, allocations: 84.39 kB / 0.8222 GB, free: 1.223 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.977e-05/0.4835, allocations: 38.53 kB / 0.8223 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 2.985e-05/0.4835, allocations: 1.188 kB / 0.8223 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.089e-05/0.4836, allocations: 12.88 kB / 0.8223 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.308e-05/0.4836, allocations: 21.34 kB / 0.8223 GB, free: 1.211 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.048e-05/0.4836, allocations: 1.344 kB / 0.8223 GB, free: 1.211 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002103/0.4838, allocations: 73.27 kB / 0.8224 GB, free: 1.199 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.172e-05/0.4839, allocations: 5.969 kB / 0.8224 GB, free: 1.199 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.349e-05/0.4839, allocations: 15.72 kB / 0.8224 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001261/0.484, allocations: 69.94 kB / 0.8225 GB, free: 1.184 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.484, allocations: 0 / 0.8225 GB, free: 1.184 MB / 0.5606 GB Notification: Performance of FrontEnd: time 6.41e-07/0.484, allocations: 0 / 0.8225 GB, free: 1.184 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.226e-06/0.484, allocations: 0 / 0.8225 GB, free: 1.184 MB / 0.5606 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.0003475/0.4844, allocations: 352.6 kB / 0.8228 GB, free: 16.82 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.4844, allocations: 9.25 kB / 0.8228 GB, free: 16.82 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.782e-05/0.4845, allocations: 36.06 kB / 0.8228 GB, free: 16.79 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.4846, allocations: 11.89 kB / 0.8228 GB, free: 16.79 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.977e-05/0.4847, allocations: 180.6 kB / 0.823 GB, free: 16.57 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.998e-06/0.4847, allocations: 13.03 kB / 0.823 GB, free: 16.57 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.92e-05/0.4848, allocations: 7.344 kB / 0.823 GB, free: 16.56 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.794e-05/0.4849, allocations: 51.67 kB / 0.8231 GB, free: 16.53 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.371e-06/0.4849, allocations: 0 / 0.8231 GB, free: 16.53 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.949e-06/0.4849, allocations: 3.453 kB / 0.8231 GB, free: 16.53 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.4849, allocations: 2.344 kB / 0.8231 GB, free: 16.53 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.019e-05/0.4849, allocations: 15.16 kB / 0.8231 GB, free: 16.53 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001199/0.4851, allocations: 167.7 kB / 0.8233 GB, free: 16.34 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 6.71e-05/0.4851, allocations: 53.03 kB / 0.8233 GB, free: 16.31 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.243e-05/0.4852, allocations: 17.61 kB / 0.8233 GB, free: 16.3 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.001e-05/0.4852, allocations: 1.25 kB / 0.8233 GB, free: 16.3 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.169e-05/0.4852, allocations: 35.25 kB / 0.8234 GB, free: 16.26 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 1.021e-06/0.4852, allocations: 0 / 0.8234 GB, free: 16.26 MB / 0.5762 GB Notification: Performance of matching and sorting (n=11): time 0.0005861/0.4858, allocations: 369.5 kB / 0.8237 GB, free: 16 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.214e-05/0.4858, allocations: 56.72 kB / 0.8238 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.122e-05/0.4859, allocations: 96.88 kB / 0.8239 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.4859, allocations: 26.92 kB / 0.8239 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 2.113e-05/0.4859, allocations: 84.67 kB / 0.824 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/0.486, allocations: 36.94 kB / 0.824 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.258e-05/0.486, allocations: 32.72 kB / 0.824 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.344e-05/0.4861, allocations: 325.6 kB / 0.8243 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.21e-05/0.4861, allocations: 20.73 kB / 0.8244 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.656e-05/0.4862, allocations: 32.36 kB / 0.8244 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.779e-05/0.4862, allocations: 58.61 kB / 0.8245 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.51e-07/0.4862, allocations: 0.9062 kB / 0.8245 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001239/0.4864, allocations: 97.03 kB / 0.8245 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.4864, allocations: 8.812 kB / 0.8246 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/0.4864, allocations: 0.7188 kB / 0.8246 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.948e-06/0.4864, allocations: 8.031 kB / 0.8246 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.4865, allocations: 22.28 kB / 0.8246 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.4865, allocations: 3.641 kB / 0.8246 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.033e-05/0.4866, allocations: 6.875 kB / 0.8246 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-06/0.4866, allocations: 3.031 kB / 0.8246 GB, free: 15.28 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 6.114e-05/0.4867, allocations: 117.3 kB / 0.8247 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.462e-05/0.4867, allocations: 3.062 kB / 0.8247 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.65e-05/0.4867, allocations: 10.78 kB / 0.8247 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.105e-06/0.4867, allocations: 8.453 kB / 0.8247 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.4867, allocations: 0.8125 kB / 0.8247 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.4867, allocations: 0 / 0.8247 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.638e-05/0.4868, allocations: 173.2 kB / 0.8249 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.4868, allocations: 0 / 0.8249 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001194/0.487, allocations: 28.17 kB / 0.8249 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.487, allocations: 1.062 kB / 0.8249 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.487, allocations: 1.031 kB / 0.8249 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.487, allocations: 0.5 kB / 0.8249 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.487, allocations: 1.328 kB / 0.8249 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000183/0.4872, allocations: 147.6 kB / 0.8251 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.442e-05/0.4872, allocations: 82.17 kB / 0.8251 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.361e-05/0.4873, allocations: 1.156 kB / 0.8251 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.979e-05/0.4873, allocations: 8.078 kB / 0.8252 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.742e-05/0.4874, allocations: 8.844 kB / 0.8252 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.187e-06/0.4874, allocations: 6.344 kB / 0.8252 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 2.942e-05/0.4874, allocations: 76.44 kB / 0.8252 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4874, allocations: 4.094 kB / 0.8252 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0001879/0.4876, allocations: 19.47 kB / 0.8253 GB, free: 14.7 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.0003619/0.488, allocations: 0.6707 MB / 0.8259 GB, free: 14.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001227/0.4881, allocations: 60.23 kB / 0.826 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.4881, allocations: 0 / 0.826 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 4.665e-05/0.4882, allocations: 36.62 kB / 0.826 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001883/0.4884, allocations: 7.75 kB / 0.826 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001128/0.4895, allocations: 1.449 MB / 0.8274 GB, free: 12.83 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001827/0.4897, allocations: 0.6871 MB / 0.8281 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 6.374e-05/0.4898, allocations: 15.58 kB / 0.8281 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.226e-05/0.4898, allocations: 15.78 kB / 0.8281 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of SimCode: time 2.2e-07/0.4898, allocations: 0 / 0.8281 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.548/2.038, allocations: 1.532 MB / 0.8296 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003167/2.038, allocations: 231.5 kB / 0.8299 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.798/3.836, allocations: 6.328 kB / 0.8299 GB, free: 11.64 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 & /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)