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.001085/0.001085, allocations: 108 kB / 15.6 MB, free: 132 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.001083/0.001083, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.266/1.266, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002156/0.002156, allocations: 294.8 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9105/0.9105, allocations: 169.3 MB / 0.4982 GB, free: 13.87 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001701/0.001701, allocations: 100.2 kB / 0.5953 GB, free: 28.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1319, allocations: 86.99 MB / 0.6803 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002239/0.1342, allocations: 1.267 MB / 0.6815 GB, free: 15.32 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4096/0.5438, allocations: 147 MB / 0.8251 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.231e-05/0.5439, allocations: 0 / 0.8251 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.031e-05/0.544, allocations: 4.5 kB / 0.8251 GB, free: 1.414 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.935e-05/0.544, allocations: 2.422 kB / 0.8251 GB, free: 1.414 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003492/0.5444, allocations: 96.36 kB / 0.8252 GB, free: 1.387 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.673e-05/0.5444, allocations: 41.34 kB / 0.8252 GB, free: 1.375 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.795e-05/0.5445, allocations: 6.125 kB / 0.8252 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.326e-05/0.5445, allocations: 16.72 kB / 0.8252 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.092e-05/0.5446, allocations: 17.73 kB / 0.8252 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.34e-05/0.5446, allocations: 1.656 kB / 0.8253 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002372/0.5448, allocations: 74.25 kB / 0.8253 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.455e-05/0.5449, allocations: 10.5 kB / 0.8253 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.766e-05/0.5449, allocations: 13.56 kB / 0.8253 GB, free: 1.352 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001534/0.5451, allocations: 67.08 kB / 0.8254 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.5451, allocations: 0.5625 kB / 0.8254 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.503e-06/0.5451, allocations: 0 / 0.8254 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.5451, allocations: 4.5 kB / 0.8254 GB, free: 1.34 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.0004114/0.5455, allocations: 347.3 kB / 0.8257 GB, free: 16.98 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.5455, allocations: 9.562 kB / 0.8258 GB, free: 16.98 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.692e-05/0.5456, allocations: 42.59 kB / 0.8258 GB, free: 16.94 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001824/0.5458, allocations: 9.906 kB / 0.8258 GB, free: 16.94 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.713e-05/0.5459, allocations: 167.6 kB / 0.826 GB, free: 16.74 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.5459, allocations: 5.844 kB / 0.826 GB, free: 16.74 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.33e-05/0.5459, allocations: 14.34 kB / 0.826 GB, free: 16.73 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001082/0.546, allocations: 51.62 kB / 0.826 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.181e-06/0.546, allocations: 0 / 0.826 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.5461, allocations: 4.125 kB / 0.826 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.5461, allocations: 1.75 kB / 0.826 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.415e-05/0.5461, allocations: 19.81 kB / 0.8261 GB, free: 16.69 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001575/0.5463, allocations: 168.1 kB / 0.8262 GB, free: 16.5 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 8.788e-05/0.5464, allocations: 46.81 kB / 0.8263 GB, free: 16.48 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.011e-05/0.5464, allocations: 21.42 kB / 0.8263 GB, free: 16.46 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.106e-05/0.5464, allocations: 0.6562 kB / 0.8263 GB, free: 16.46 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.315e-05/0.5465, allocations: 32.09 kB / 0.8263 GB, free: 16.43 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.5465, allocations: 1.125 kB / 0.8263 GB, free: 16.43 MB / 0.5762 GB Notification: Performance of matching and sorting (n=11): time 0.0007251/0.5472, allocations: 377.1 kB / 0.8267 GB, free: 16.16 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.286e-05/0.5472, allocations: 53 kB / 0.8267 GB, free: 16.1 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.008e-05/0.5473, allocations: 97.84 kB / 0.8268 GB, free: 16 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.904e-05/0.5473, allocations: 30.02 kB / 0.8268 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 2.301e-05/0.5474, allocations: 80.64 kB / 0.8269 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.148e-05/0.5474, allocations: 36.66 kB / 0.827 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.798e-05/0.5474, allocations: 28.44 kB / 0.827 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.715e-05/0.5475, allocations: 325.5 kB / 0.8273 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.254e-05/0.5476, allocations: 16.25 kB / 0.8273 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.149e-05/0.5476, allocations: 40.55 kB / 0.8273 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.155e-05/0.5477, allocations: 63.55 kB / 0.8274 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.21e-07/0.5477, allocations: 3.938 kB / 0.8274 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001221/0.5478, allocations: 97.73 kB / 0.8275 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.5478, allocations: 5.594 kB / 0.8275 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.5479, allocations: 0 / 0.8275 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.5479, allocations: 1.188 kB / 0.8275 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.548, allocations: 28.81 kB / 0.8275 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.511e-06/0.548, allocations: 3.422 kB / 0.8275 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.076e-05/0.548, allocations: 5.219 kB / 0.8275 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.241e-06/0.548, allocations: 2.531 kB / 0.8276 GB, free: 15.44 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.99e-05/0.5481, allocations: 121.6 kB / 0.8277 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.393e-05/0.5481, allocations: 2.312 kB / 0.8277 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.015e-05/0.5482, allocations: 11.84 kB / 0.8277 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.5482, allocations: 1.188 kB / 0.8277 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.5482, allocations: 3.312 kB / 0.8277 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.5482, allocations: 0 / 0.8277 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.852e-05/0.5483, allocations: 172.7 kB / 0.8279 GB, free: 15.13 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.5483, allocations: 4 kB / 0.8279 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.5484, allocations: 23.88 kB / 0.8279 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.5484, allocations: 1.094 kB / 0.8279 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.5484, allocations: 6.875 kB / 0.8279 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.5485, allocations: 1 kB / 0.8279 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.5485, allocations: 1.312 kB / 0.8279 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000171/0.5486, allocations: 132.5 kB / 0.828 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.406e-05/0.5487, allocations: 87.02 kB / 0.8281 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.5487, allocations: 9.109 kB / 0.8281 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.986e-05/0.5488, allocations: 4.828 kB / 0.8281 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.756e-05/0.5488, allocations: 8.719 kB / 0.8281 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.366e-06/0.5489, allocations: 3.781 kB / 0.8281 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 3.15e-05/0.5489, allocations: 80.28 kB / 0.8282 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/0.5489, allocations: 1.156 kB / 0.8282 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0001889/0.5491, allocations: 19.38 kB / 0.8282 GB, free: 14.86 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.0003643/0.5495, allocations: 0.6749 MB / 0.8289 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001178/0.5496, allocations: 55.33 kB / 0.8289 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.5496, allocations: 1.344 kB / 0.8289 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 3.695e-05/0.5496, allocations: 34.28 kB / 0.829 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002005/0.5498, allocations: 8.406 kB / 0.829 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001144/0.551, allocations: 1.451 MB / 0.8304 GB, free: 13 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002191/0.5512, allocations: 0.6855 MB / 0.8311 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 6.152e-05/0.5513, allocations: 10.19 kB / 0.8311 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.407e-05/0.5513, allocations: 21.78 kB / 0.8311 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of SimCode: time 2.6e-07/0.5513, allocations: 0 / 0.8311 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02444/0.5758, allocations: 1.654 MB / 0.8327 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.936/7.512, allocations: 16.69 kB / 0.8327 GB, free: 11.93 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)