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: translateModel(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") translateModel(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001514/0.001514, allocations: 100.8 kB / 16.27 MB, free: 5.996 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.001492/0.001492, allocations: 189.5 kB / 17.2 MB, free: 5.605 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.302/1.302, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00244/0.00244, allocations: 289.8 kB / 291.3 MB, free: 14.54 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.14/1.14, allocations: 178.5 MB / 0.5079 GB, free: 12.74 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002633/0.002633, allocations: 95.84 kB / 0.6071 GB, free: 9.301 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.167/0.1697, allocations: 89.14 MB / 0.6941 GB, free: 84 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002329/0.172, allocations: 1.286 MB / 0.6954 GB, free: 14.78 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.4227/0.5948, allocations: 147 MB / 0.839 GB, free: 13.52 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.489e-05/0.5949, allocations: 0 / 0.839 GB, free: 13.52 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.778e-05/0.5949, allocations: 4.828 kB / 0.839 GB, free: 13.51 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.924e-05/0.595, allocations: 5.25 kB / 0.839 GB, free: 13.51 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004088/0.5954, allocations: 92.72 kB / 0.8391 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 6.746e-05/0.5955, allocations: 35.8 kB / 0.8391 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.961e-05/0.5955, allocations: 7.141 kB / 0.8391 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.532e-05/0.5956, allocations: 22.25 kB / 0.8391 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.271e-05/0.5956, allocations: 13.14 kB / 0.8391 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.166e-05/0.5957, allocations: 1.281 kB / 0.8391 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002443/0.5959, allocations: 79.72 kB / 0.8392 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.75e-05/0.5959, allocations: 11.08 kB / 0.8392 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.719e-05/0.596, allocations: 8.688 kB / 0.8392 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001599/0.5961, allocations: 68.28 kB / 0.8393 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.5961, allocations: 1.531 kB / 0.8393 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.633e-06/0.5962, allocations: 4 kB / 0.8393 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.5962, allocations: 0 / 0.8393 GB, free: 13.36 MB / 0.6075 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.0004056/0.5966, allocations: 356.3 kB / 0.8396 GB, free: 12.99 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.197e-05/0.5966, allocations: 8.875 kB / 0.8396 GB, free: 12.99 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001788/0.5968, allocations: 13.09 kB / 0.8397 GB, free: 12.99 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001187/0.5969, allocations: 166.3 kB / 0.8398 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.5969, allocations: 5.781 kB / 0.8398 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.104e-05/0.597, allocations: 6.656 kB / 0.8398 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001213/0.5971, allocations: 58.62 kB / 0.8399 GB, free: 12.74 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.242e-06/0.5971, allocations: 1.156 kB / 0.8399 GB, free: 12.74 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.5971, allocations: 0 / 0.8399 GB, free: 12.74 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.808e-06/0.5971, allocations: 1.844 kB / 0.8399 GB, free: 12.74 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.753e-05/0.5972, allocations: 20.39 kB / 0.8399 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001758/0.5974, allocations: 162.8 kB / 0.8401 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 8.82e-05/0.5975, allocations: 52.47 kB / 0.8401 GB, free: 12.5 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.164e-05/0.5975, allocations: 19.55 kB / 0.8401 GB, free: 12.49 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 7.394e-06/0.5975, allocations: 5.375 kB / 0.8401 GB, free: 12.49 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.5976, allocations: 32.33 kB / 0.8402 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 9.62e-07/0.5976, allocations: 0 / 0.8402 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0007284/0.5983, allocations: 381.4 kB / 0.8405 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.806e-05/0.5983, allocations: 52.56 kB / 0.8406 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.766e-05/0.5984, allocations: 96.16 kB / 0.8407 GB, free: 11.97 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.5984, allocations: 26.8 kB / 0.8407 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.592e-05/0.5985, allocations: 85.3 kB / 0.8408 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.984e-05/0.5985, allocations: 35.84 kB / 0.8408 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.804e-05/0.5986, allocations: 28.92 kB / 0.8408 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.5987, allocations: 321.7 kB / 0.8411 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.965e-05/0.5988, allocations: 16.98 kB / 0.8412 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.436e-05/0.5988, allocations: 40.81 kB / 0.8412 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.864e-05/0.5989, allocations: 62.98 kB / 0.8413 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.21e-07/0.5989, allocations: 1.469 kB / 0.8413 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001376/0.5991, allocations: 91.02 kB / 0.8413 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.5991, allocations: 6.844 kB / 0.8414 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.748e-06/0.5991, allocations: 0.7031 kB / 0.8414 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.5991, allocations: 1.188 kB / 0.8414 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.5992, allocations: 25.73 kB / 0.8414 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.391e-06/0.5992, allocations: 1.156 kB / 0.8414 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.384e-05/0.5993, allocations: 9.188 kB / 0.8414 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.858e-06/0.5993, allocations: 8.062 kB / 0.8414 GB, free: 11.35 MB / 0.6075 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.345e-05/0.5994, allocations: 118.6 kB / 0.8415 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.546e-05/0.5994, allocations: 3.406 kB / 0.8415 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.487e-05/0.5995, allocations: 12.62 kB / 0.8415 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.5995, allocations: 2.188 kB / 0.8415 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.5995, allocations: 0.7031 kB / 0.8415 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.5995, allocations: 0.5156 kB / 0.8415 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001458/0.5996, allocations: 175.6 kB / 0.8417 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.5997, allocations: 4.656 kB / 0.8417 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.5998, allocations: 25.36 kB / 0.8417 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.5998, allocations: 0 / 0.8417 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/0.5998, allocations: 2.484 kB / 0.8417 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.5998, allocations: 1.031 kB / 0.8417 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.5998, allocations: 0 / 0.8417 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001992/0.6, allocations: 141.3 kB / 0.8419 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.263e-05/0.6001, allocations: 87.16 kB / 0.8419 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.605e-05/0.6001, allocations: 9.922 kB / 0.842 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.247e-05/0.6002, allocations: 3.984 kB / 0.842 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.991e-05/0.6002, allocations: 4.875 kB / 0.842 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.6003, allocations: 8.234 kB / 0.842 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.893e-05/0.6003, allocations: 80.34 kB / 0.842 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6003, allocations: 0 / 0.842 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0001951/0.6005, allocations: 18.06 kB / 0.8421 GB, free: 10.72 MB / 0.6075 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.0001052/0.6006, allocations: 106.6 kB / 0.8422 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001405/0.6008, allocations: 66.62 kB / 0.8422 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.6008, allocations: 0 / 0.8422 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 4.191e-05/0.6008, allocations: 31.06 kB / 0.8423 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002104/0.601, allocations: 7.938 kB / 0.8423 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005902/0.6016, allocations: 341 kB / 0.8426 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002989/0.602, allocations: 0.686 MB / 0.8433 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.162e-05/0.602, allocations: 13.22 kB / 0.8433 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of SimCode: time 4e-07/0.602, allocations: 4 kB / 0.8433 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of Templates: time 0.002379/0.6044, allocations: 0.8194 MB / 0.8441 GB, free: 9.562 MB / 0.6075 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (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 & ./BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)