Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_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.005666/0.005666, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.001319/0.001319, allocations: 193.9 kB / 16.67 MB, free: 5.969 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.461/1.461, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8447/0.8447, allocations: 132.2 MB / 422.7 MB, free: 1.691 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 63.25 kB / 0.5808 GB, free: 1.152 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1535/0.1554, allocations: 80.21 MB / 0.6592 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002552/0.158, allocations: 1.275 MB / 0.6604 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.1679/0.3259, allocations: 147 MB / 0.804 GB, free: 9.164 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.033e-05/0.3259, allocations: 0 / 0.804 GB, free: 9.164 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 2.441e-05/0.326, allocations: 0 / 0.804 GB, free: 9.164 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 4.838e-05/0.3261, allocations: 3.938 kB / 0.804 GB, free: 9.16 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003816/0.3264, allocations: 95.56 kB / 0.8041 GB, free: 9.066 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 8.151e-05/0.3265, allocations: 31.91 kB / 0.8041 GB, free: 9.035 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 3.566e-05/0.3266, allocations: 3.984 kB / 0.8041 GB, free: 9.031 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 3.885e-05/0.3266, allocations: 15.94 kB / 0.8041 GB, free: 9.016 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 6.045e-05/0.3267, allocations: 15.92 kB / 0.8041 GB, free: 9 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 1.563e-05/0.3267, allocations: 0 / 0.8041 GB, free: 9 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002712/0.327, allocations: 87.75 kB / 0.8042 GB, free: 8.914 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 1.242e-05/0.327, allocations: 0 / 0.8042 GB, free: 8.914 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 3.61e-05/0.3271, allocations: 23.91 kB / 0.8042 GB, free: 8.891 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.0001671/0.3272, allocations: 72.05 kB / 0.8043 GB, free: 8.82 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.3272, allocations: 0 / 0.8043 GB, free: 8.82 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.443e-06/0.3272, allocations: 0 / 0.8043 GB, free: 8.82 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 4.528e-06/0.3273, allocations: 0 / 0.8043 GB, free: 8.82 MB / 0.6387 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.0004421/0.3277, allocations: 355.3 kB / 0.8047 GB, free: 8.426 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.3277, allocations: 8.031 kB / 0.8047 GB, free: 8.418 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.25e-05/0.3278, allocations: 34.75 kB / 0.8047 GB, free: 8.375 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001896/0.328, allocations: 12.92 kB / 0.8047 GB, free: 8.363 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001283/0.3281, allocations: 172.1 kB / 0.8049 GB, free: 8.156 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.3281, allocations: 4 kB / 0.8049 GB, free: 8.152 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.415e-05/0.3282, allocations: 15.92 kB / 0.8049 GB, free: 8.137 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001217/0.3283, allocations: 53.61 kB / 0.8049 GB, free: 8.078 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.3283, allocations: 0 / 0.8049 GB, free: 8.078 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.859e-06/0.3283, allocations: 0 / 0.8049 GB, free: 8.078 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.3283, allocations: 0 / 0.8049 GB, free: 8.078 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.938e-05/0.3284, allocations: 19.98 kB / 0.805 GB, free: 8.059 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001911/0.3286, allocations: 169.6 kB / 0.8051 GB, free: 7.844 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001018/0.3287, allocations: 54.62 kB / 0.8052 GB, free: 7.781 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.997e-05/0.3287, allocations: 16.78 kB / 0.8052 GB, free: 7.762 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 1.552e-05/0.3288, allocations: 4 kB / 0.8052 GB, free: 7.758 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.225e-05/0.3288, allocations: 38.5 kB / 0.8052 GB, free: 7.711 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.3288, allocations: 0 / 0.8052 GB, free: 7.711 MB / 0.6387 GB Notification: Performance of matching and sorting (n=11): time 0.0007462/0.3295, allocations: 362.2 kB / 0.8056 GB, free: 7.305 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.24e-05/0.3296, allocations: 51.41 kB / 0.8056 GB, free: 7.242 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.062e-05/0.3297, allocations: 97.84 kB / 0.8057 GB, free: 7.137 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 1.963e-05/0.3297, allocations: 29.7 kB / 0.8057 GB, free: 7.102 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 4.625e-05/0.3298, allocations: 80.14 kB / 0.8058 GB, free: 7.02 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 4.248e-05/0.3298, allocations: 39.8 kB / 0.8059 GB, free: 6.98 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.598e-05/0.3299, allocations: 33.7 kB / 0.8059 GB, free: 6.941 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001415/0.33, allocations: 318.9 kB / 0.8062 GB, free: 6.621 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.326e-05/0.3301, allocations: 23.98 kB / 0.8062 GB, free: 6.598 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.423e-05/0.3301, allocations: 39.39 kB / 0.8063 GB, free: 6.555 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.285e-05/0.3302, allocations: 62.23 kB / 0.8063 GB, free: 6.488 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.42e-07/0.3302, allocations: 0 / 0.8063 GB, free: 6.488 MB / 0.6387 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001432/0.3304, allocations: 97.56 kB / 0.8064 GB, free: 6.387 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.3304, allocations: 4 kB / 0.8064 GB, free: 6.383 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.3304, allocations: 0 / 0.8064 GB, free: 6.383 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/0.3304, allocations: 8 kB / 0.8064 GB, free: 6.375 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.3305, allocations: 27.98 kB / 0.8064 GB, free: 6.348 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.3306, allocations: 7.938 kB / 0.8065 GB, free: 6.34 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.067e-05/0.3306, allocations: 0 / 0.8065 GB, free: 6.34 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.3306, allocations: 7.938 kB / 0.8065 GB, free: 6.332 MB / 0.6387 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.596e-05/0.3307, allocations: 113.8 kB / 0.8066 GB, free: 6.211 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.58e-05/0.3307, allocations: 8 kB / 0.8066 GB, free: 6.203 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.578e-05/0.3308, allocations: 7.969 kB / 0.8066 GB, free: 6.191 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.3308, allocations: 4 kB / 0.8066 GB, free: 6.188 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.3308, allocations: 0 / 0.8066 GB, free: 6.188 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3308, allocations: 4 kB / 0.8066 GB, free: 6.184 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001497/0.3309, allocations: 169.6 kB / 0.8068 GB, free: 5.969 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.3309, allocations: 0 / 0.8068 GB, free: 5.969 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.3311, allocations: 23.98 kB / 0.8068 GB, free: 5.945 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3311, allocations: 0 / 0.8068 GB, free: 5.945 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.3311, allocations: 7.938 kB / 0.8068 GB, free: 5.938 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.3311, allocations: 4 kB / 0.8068 GB, free: 5.934 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.3311, allocations: 0 / 0.8068 GB, free: 5.934 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002136/0.3313, allocations: 143.8 kB / 0.8069 GB, free: 5.777 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 8.141e-05/0.3314, allocations: 89.09 kB / 0.807 GB, free: 5.672 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.3314, allocations: 0 / 0.807 GB, free: 5.672 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.268e-05/0.3315, allocations: 7.984 kB / 0.807 GB, free: 5.664 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.82e-05/0.3316, allocations: 8 kB / 0.807 GB, free: 5.656 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.336e-06/0.3316, allocations: 4 kB / 0.807 GB, free: 5.652 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 4.069e-05/0.3316, allocations: 79.22 kB / 0.8071 GB, free: 5.574 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3316, allocations: 0 / 0.8071 GB, free: 5.574 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0002043/0.3318, allocations: 16 kB / 0.8071 GB, free: 5.559 MB / 0.6387 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.0005135/0.3323, allocations: 0.671 MB / 0.8078 GB, free: 4.855 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0001416/0.3325, allocations: 59.95 kB / 0.8078 GB, free: 4.797 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3325, allocations: 0 / 0.8078 GB, free: 4.797 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 4.301e-05/0.3326, allocations: 27.98 kB / 0.8079 GB, free: 4.77 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002274/0.3328, allocations: 12.19 kB / 0.8079 GB, free: 4.758 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001526/0.3343, allocations: 1.448 MB / 0.8093 GB, free: 3.223 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.3347, allocations: 0.6885 MB / 0.81 GB, free: 2.508 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 5.341e-05/0.3347, allocations: 8.672 kB / 0.81 GB, free: 2.5 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.544e-05/0.3348, allocations: 15.44 kB / 0.81 GB, free: 2.484 MB / 0.6387 GB Notification: Performance of SimCode: time 2.51e-07/0.3348, allocations: 0 / 0.81 GB, free: 2.484 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02346/0.3582, allocations: 1.68 MB / 0.8116 GB, free: 0.9414 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.647/8.006, allocations: 7.234 kB / 0.8116 GB, free: 0.9414 MB / 0.6387 GB (rm -f IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)