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.001333/0.001333, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001372/0.001372, allocations: 195.9 kB / 16.14 MB, free: 6.664 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.167/1.167, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6688/0.6688, allocations: 132.2 MB / 422.1 MB, free: 2.051 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001339, allocations: 59.66 kB / 0.5012 GB, free: 4.254 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3222, allocations: 80.21 MB / 0.5795 GB, free: 4.574 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002094/0.3244, allocations: 1.343 MB / 0.5808 GB, free: 3.629 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.1303/0.4547, allocations: 144.7 MB / 0.7221 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.93e-05/0.4548, allocations: 0 / 0.7221 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.821e-05/0.4548, allocations: 0 / 0.7221 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.352e-05/0.4549, allocations: 3.938 kB / 0.7221 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002948/0.4552, allocations: 79.69 kB / 0.7222 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.763e-05/0.4552, allocations: 31.92 kB / 0.7222 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.173e-05/0.4553, allocations: 4 kB / 0.7222 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.209e-05/0.4553, allocations: 19.86 kB / 0.7222 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.519e-05/0.4553, allocations: 11.98 kB / 0.7223 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.044e-05/0.4554, allocations: 0 / 0.7223 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002115/0.4556, allocations: 79.81 kB / 0.7223 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.281e-05/0.4556, allocations: 7.938 kB / 0.7223 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.77e-05/0.4556, allocations: 23.91 kB / 0.7224 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001223/0.4558, allocations: 58.2 kB / 0.7224 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.4558, allocations: 0 / 0.7224 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of FrontEnd: time 9.91e-07/0.4558, allocations: 4 kB / 0.7224 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.619e-06/0.4558, allocations: 0 / 0.7224 GB, free: 14.9 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.0003181/0.4561, allocations: 363.4 kB / 0.7228 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.144e-05/0.4561, allocations: 8.031 kB / 0.7228 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.614e-05/0.4562, allocations: 30.75 kB / 0.7228 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001568/0.4563, allocations: 12.92 kB / 0.7228 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.152e-05/0.4564, allocations: 168.1 kB / 0.723 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.077e-06/0.4564, allocations: 8 kB / 0.723 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.777e-05/0.4565, allocations: 4 kB / 0.723 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.766e-05/0.4566, allocations: 61.59 kB / 0.7231 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.209e-06/0.4566, allocations: 0 / 0.7231 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.796e-06/0.4566, allocations: 0 / 0.7231 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.367e-06/0.4566, allocations: 0 / 0.7231 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.033e-05/0.4566, allocations: 15.98 kB / 0.7231 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001344/0.4568, allocations: 169.5 kB / 0.7232 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 7.698e-05/0.4569, allocations: 62.5 kB / 0.7233 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.462e-05/0.4569, allocations: 16.84 kB / 0.7233 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.009e-05/0.4569, allocations: 4.234 kB / 0.7233 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.781e-05/0.4569, allocations: 30.56 kB / 0.7233 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 9.62e-07/0.4569, allocations: 0 / 0.7233 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.0005917/0.4575, allocations: 366.1 kB / 0.7237 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.43e-05/0.4576, allocations: 55.41 kB / 0.7237 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.781e-05/0.4576, allocations: 105.8 kB / 0.7238 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.4576, allocations: 25.7 kB / 0.7239 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.004e-05/0.4577, allocations: 80.14 kB / 0.7239 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.33e-05/0.4577, allocations: 47.34 kB / 0.724 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.579e-05/0.4577, allocations: 25.72 kB / 0.724 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.195e-05/0.4578, allocations: 318.8 kB / 0.7243 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.401e-05/0.4579, allocations: 28.11 kB / 0.7243 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.942e-05/0.4579, allocations: 36.27 kB / 0.7244 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.386e-05/0.458, allocations: 66.23 kB / 0.7244 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.41e-07/0.458, allocations: 0 / 0.7244 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001149/0.4581, allocations: 93.61 kB / 0.7245 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/0.4581, allocations: 4 kB / 0.7245 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.116e-06/0.4581, allocations: 0 / 0.7245 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.215e-06/0.4582, allocations: 0 / 0.7245 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.637e-05/0.4583, allocations: 23.98 kB / 0.7246 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.4583, allocations: 8 kB / 0.7246 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.104e-05/0.4583, allocations: 8 kB / 0.7246 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.4583, allocations: 3.938 kB / 0.7246 GB, free: 12.41 MB / 0.5606 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.354e-05/0.4584, allocations: 117.8 kB / 0.7247 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.464e-05/0.4584, allocations: 7.906 kB / 0.7247 GB, free: 12.28 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.685e-05/0.4584, allocations: 11.97 kB / 0.7247 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.4584, allocations: 0 / 0.7247 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.4585, allocations: 0 / 0.7247 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.4585, allocations: 7.984 kB / 0.7247 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.852e-05/0.4586, allocations: 169.6 kB / 0.7249 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.4586, allocations: 0 / 0.7249 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.4587, allocations: 23.98 kB / 0.7249 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.4587, allocations: 3.938 kB / 0.7249 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.4587, allocations: 0 / 0.7249 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.4587, allocations: 0 / 0.7249 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.4587, allocations: 0 / 0.7249 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001636/0.4589, allocations: 140.8 kB / 0.725 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.4e-05/0.4589, allocations: 89.02 kB / 0.7251 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.369e-05/0.459, allocations: 4 kB / 0.7251 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.951e-05/0.4591, allocations: 7.984 kB / 0.7251 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.768e-05/0.4591, allocations: 4 kB / 0.7251 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.4591, allocations: 0 / 0.7251 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.597e-05/0.4591, allocations: 87.22 kB / 0.7252 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.172e-06/0.4591, allocations: 0 / 0.7252 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001745/0.4593, allocations: 15.94 kB / 0.7252 GB, free: 11.64 MB / 0.5606 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.0003353/0.4596, allocations: 0.6749 MB / 0.7259 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001021/0.4598, allocations: 59.91 kB / 0.726 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.4598, allocations: 0 / 0.726 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 3.299e-05/0.4598, allocations: 23.98 kB / 0.726 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000189/0.46, allocations: 11.94 kB / 0.726 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.4611, allocations: 1.455 MB / 0.7274 GB, free: 9.305 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001779/0.4613, allocations: 0.6848 MB / 0.7281 GB, free: 8.594 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.309e-05/0.4613, allocations: 16.59 kB / 0.7281 GB, free: 8.578 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.327e-05/0.4614, allocations: 15.44 kB / 0.7281 GB, free: 8.562 MB / 0.5606 GB Notification: Performance of SimCode: time 1.91e-07/0.4614, allocations: 0 / 0.7281 GB, free: 8.562 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.36/2.821, allocations: 1.511 MB / 0.7296 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002465/2.821, allocations: 200.4 kB / 0.7298 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.562/4.384, allocations: 3.938 kB / 0.7298 GB, free: 6.941 MB / 0.5606 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 IDEAS_IDEAS_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > IDEAS_IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)