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.00122/0.00122, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001368/0.001368, allocations: 190.7 kB / 16.25 MB, free: 6.625 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.233/1.233, allocations: 222.9 MB / 239.9 MB, free: 4.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6846/0.6846, allocations: 132.2 MB / 422.3 MB, free: 1.941 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002122/0.002122, allocations: 56.62 kB / 0.5014 GB, free: 9.004 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1338, allocations: 80.21 MB / 0.5797 GB, free: 9.016 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002268/0.1361, allocations: 1.337 MB / 0.581 GB, free: 7.664 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.3499/0.486, allocations: 144.8 MB / 0.7224 GB, free: 7.762 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.209e-05/0.4861, allocations: 4 kB / 0.7224 GB, free: 7.758 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.296e-05/0.4862, allocations: 5.203 kB / 0.7224 GB, free: 7.754 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 4.704e-05/0.4862, allocations: 2.516 kB / 0.7224 GB, free: 7.754 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.000416/0.4866, allocations: 87.02 kB / 0.7225 GB, free: 7.715 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 6.538e-05/0.4867, allocations: 35.39 kB / 0.7226 GB, free: 7.699 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.333e-05/0.4867, allocations: 2.859 kB / 0.7226 GB, free: 7.699 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.504e-05/0.4868, allocations: 11.36 kB / 0.7226 GB, free: 7.699 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.329e-05/0.4868, allocations: 20.42 kB / 0.7226 GB, free: 7.688 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.065e-05/0.4869, allocations: 2.594 kB / 0.7226 GB, free: 7.688 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002406/0.4871, allocations: 79.45 kB / 0.7227 GB, free: 7.656 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.494e-05/0.4871, allocations: 7.609 kB / 0.7227 GB, free: 7.652 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.861e-05/0.4872, allocations: 16 kB / 0.7227 GB, free: 7.645 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001545/0.4873, allocations: 64.64 kB / 0.7228 GB, free: 7.625 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.4873, allocations: 0.7031 kB / 0.7228 GB, free: 7.625 MB / 0.545 GB Notification: Performance of FrontEnd: time 9.32e-07/0.4873, allocations: 0 / 0.7228 GB, free: 7.625 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.4873, allocations: 0 / 0.7228 GB, free: 7.625 MB / 0.545 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.0004637/0.4878, allocations: 358.8 kB / 0.7231 GB, free: 7.254 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.4879, allocations: 13.66 kB / 0.7231 GB, free: 7.25 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.896e-05/0.4879, allocations: 38.11 kB / 0.7231 GB, free: 7.207 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000173/0.4881, allocations: 14.53 kB / 0.7232 GB, free: 7.203 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.785e-05/0.4882, allocations: 162.7 kB / 0.7233 GB, free: 7.008 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.4882, allocations: 6 kB / 0.7233 GB, free: 7.004 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.41e-05/0.4882, allocations: 4.859 kB / 0.7233 GB, free: 7.004 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001164/0.4884, allocations: 55.23 kB / 0.7234 GB, free: 6.961 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.672e-06/0.4884, allocations: 0 / 0.7234 GB, free: 6.961 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.4884, allocations: 1.797 kB / 0.7234 GB, free: 6.961 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.271e-06/0.4884, allocations: 9.156 kB / 0.7234 GB, free: 6.953 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.777e-05/0.4885, allocations: 16.52 kB / 0.7234 GB, free: 6.949 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001618/0.4886, allocations: 182.2 kB / 0.7236 GB, free: 6.734 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 8.254e-05/0.4887, allocations: 48.27 kB / 0.7236 GB, free: 6.703 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.782e-05/0.4888, allocations: 17 kB / 0.7236 GB, free: 6.691 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.122e-05/0.4888, allocations: 1.375 kB / 0.7236 GB, free: 6.691 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.4888, allocations: 40.61 kB / 0.7237 GB, free: 6.645 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 9.71e-07/0.4888, allocations: 0 / 0.7237 GB, free: 6.645 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.0006857/0.4895, allocations: 370.9 kB / 0.724 GB, free: 6.344 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.982e-05/0.4895, allocations: 54.45 kB / 0.7241 GB, free: 6.281 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.128e-05/0.4896, allocations: 91.86 kB / 0.7242 GB, free: 6.184 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/0.4897, allocations: 31.78 kB / 0.7242 GB, free: 6.148 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 2.67e-05/0.4897, allocations: 84.27 kB / 0.7243 GB, free: 6.062 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.895e-05/0.4897, allocations: 39.64 kB / 0.7243 GB, free: 6.031 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.186e-05/0.4898, allocations: 27.34 kB / 0.7243 GB, free: 6.008 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.4899, allocations: 322.9 kB / 0.7247 GB, free: 5.688 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.609e-05/0.4899, allocations: 16.91 kB / 0.7247 GB, free: 5.684 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.919e-05/0.49, allocations: 36.72 kB / 0.7247 GB, free: 5.66 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.184e-05/0.4901, allocations: 57.53 kB / 0.7248 GB, free: 5.625 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.52e-07/0.4901, allocations: 5.062 kB / 0.7248 GB, free: 5.621 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001296/0.4902, allocations: 90.08 kB / 0.7249 GB, free: 5.57 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.4903, allocations: 5.875 kB / 0.7249 GB, free: 5.57 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.4903, allocations: 4.688 kB / 0.7249 GB, free: 5.566 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.4903, allocations: 1.25 kB / 0.7249 GB, free: 5.566 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.4904, allocations: 29.25 kB / 0.7249 GB, free: 5.559 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.4904, allocations: 3.781 kB / 0.7249 GB, free: 5.559 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.037e-05/0.4904, allocations: 1.062 kB / 0.7249 GB, free: 5.559 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-06/0.4905, allocations: 2.891 kB / 0.7249 GB, free: 5.559 MB / 0.545 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.179e-05/0.4905, allocations: 122 kB / 0.725 GB, free: 5.434 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.64e-05/0.4906, allocations: 7.531 kB / 0.725 GB, free: 5.43 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.342e-05/0.4906, allocations: 12.58 kB / 0.725 GB, free: 5.422 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.4906, allocations: 0.9375 kB / 0.725 GB, free: 5.422 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.4906, allocations: 1.734 kB / 0.725 GB, free: 5.422 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.4906, allocations: 0.6094 kB / 0.725 GB, free: 5.422 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000129/0.4908, allocations: 177.7 kB / 0.7252 GB, free: 5.219 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.4908, allocations: 0.7969 kB / 0.7252 GB, free: 5.219 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.4909, allocations: 24.58 kB / 0.7252 GB, free: 5.215 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.4909, allocations: 1.25 kB / 0.7252 GB, free: 5.215 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.4909, allocations: 9.078 kB / 0.7252 GB, free: 5.207 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.4909, allocations: 1.188 kB / 0.7252 GB, free: 5.207 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.4909, allocations: 0 / 0.7252 GB, free: 5.207 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001834/0.4911, allocations: 132.1 kB / 0.7254 GB, free: 5.117 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.037e-05/0.4912, allocations: 94.52 kB / 0.7255 GB, free: 5.012 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.4912, allocations: 2.109 kB / 0.7255 GB, free: 5.012 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.215e-05/0.4913, allocations: 3.578 kB / 0.7255 GB, free: 5.012 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.941e-05/0.4913, allocations: 9.828 kB / 0.7255 GB, free: 5.008 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.905e-06/0.4913, allocations: 6.906 kB / 0.7255 GB, free: 5.004 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.113e-05/0.4914, allocations: 81.42 kB / 0.7256 GB, free: 4.926 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.9e-07/0.4914, allocations: 0 / 0.7256 GB, free: 4.926 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000206/0.4916, allocations: 19.53 kB / 0.7256 GB, free: 4.918 MB / 0.545 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.0004866/0.4921, allocations: 0.6682 MB / 0.7262 GB, free: 4.297 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000133/0.4922, allocations: 57.67 kB / 0.7263 GB, free: 4.281 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4922, allocations: 0.9688 kB / 0.7263 GB, free: 4.281 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 3.818e-05/0.4923, allocations: 29.41 kB / 0.7263 GB, free: 4.273 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002035/0.4925, allocations: 7.953 kB / 0.7263 GB, free: 4.27 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/0.4939, allocations: 1.463 MB / 0.7277 GB, free: 2.945 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002585/0.4941, allocations: 0.6874 MB / 0.7284 GB, free: 2.25 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.902e-05/0.4942, allocations: 13.47 kB / 0.7284 GB, free: 2.242 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.139e-05/0.4943, allocations: 20.55 kB / 0.7285 GB, free: 2.23 MB / 0.545 GB Notification: Performance of SimCode: time 2.5e-07/0.4943, allocations: 5.094 kB / 0.7285 GB, free: 2.227 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2878/0.782, allocations: 1.553 MB / 0.73 GB, free: 2.012 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002912/0.7824, allocations: 211.8 kB / 0.7302 GB, free: 1.762 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.805/2.588, allocations: 0 / 0.7302 GB, free: 1.762 MB / 0.545 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)