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.001201/0.001201, allocations: 108 kB / 15.61 MB, free: 152 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.00136/0.00136, allocations: 193.2 kB / 16.53 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.197/1.197, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7077/0.7077, allocations: 132.2 MB / 422.6 MB, free: 1.785 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 60.3 kB / 0.5019 GB, free: 3.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3388, allocations: 80.2 MB / 0.5802 GB, free: 4.57 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002073/0.3409, allocations: 1.277 MB / 0.5814 GB, free: 3.664 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.1419/0.4828, allocations: 147 MB / 0.725 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.201e-05/0.4829, allocations: 0 / 0.725 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.714e-05/0.4829, allocations: 7.984 kB / 0.725 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.337e-05/0.483, allocations: 3.938 kB / 0.725 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.4833, allocations: 95.55 kB / 0.7251 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.873e-05/0.4834, allocations: 35.91 kB / 0.7251 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.385e-05/0.4834, allocations: 7.938 kB / 0.7251 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.453e-05/0.4835, allocations: 15.92 kB / 0.7251 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.59e-05/0.4835, allocations: 11.98 kB / 0.7252 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.002e-05/0.4835, allocations: 0 / 0.7252 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002205/0.4838, allocations: 87.77 kB / 0.7252 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.357e-05/0.4838, allocations: 7.922 kB / 0.7252 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.519e-05/0.4838, allocations: 19.92 kB / 0.7253 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001303/0.484, allocations: 62.19 kB / 0.7253 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.484, allocations: 3.938 kB / 0.7253 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.062e-06/0.484, allocations: 0 / 0.7253 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.484, allocations: 0 / 0.7253 GB, free: 12.39 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.0003225/0.4843, allocations: 355.4 kB / 0.7257 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 2.978e-05/0.4843, allocations: 8.031 kB / 0.7257 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.328e-05/0.4844, allocations: 42.73 kB / 0.7257 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001636/0.4845, allocations: 8.938 kB / 0.7257 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.113e-05/0.4846, allocations: 164.1 kB / 0.7259 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.438e-06/0.4847, allocations: 8 kB / 0.7259 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.004e-05/0.4847, allocations: 4 kB / 0.7259 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001048/0.4848, allocations: 53.67 kB / 0.7259 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.4848, allocations: 3.938 kB / 0.7259 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.4848, allocations: 0 / 0.7259 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.596e-06/0.4848, allocations: 4 kB / 0.7259 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.287e-05/0.4849, allocations: 19.98 kB / 0.726 GB, free: 11.63 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001375/0.485, allocations: 173.4 kB / 0.7261 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 7.344e-05/0.4851, allocations: 50.62 kB / 0.7262 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.612e-05/0.4851, allocations: 16.86 kB / 0.7262 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 6.673e-06/0.4851, allocations: 0 / 0.7262 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.355e-05/0.4852, allocations: 34.5 kB / 0.7262 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 9.32e-07/0.4852, allocations: 4 kB / 0.7262 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.0005949/0.4858, allocations: 373.4 kB / 0.7266 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.008e-05/0.4858, allocations: 55.41 kB / 0.7266 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.451e-05/0.4859, allocations: 89.86 kB / 0.7267 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.4859, allocations: 25.7 kB / 0.7268 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.342e-05/0.4859, allocations: 88.14 kB / 0.7268 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.405e-05/0.486, allocations: 47.62 kB / 0.7269 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.676e-05/0.486, allocations: 25.72 kB / 0.7269 GB, free: 10.51 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.914e-05/0.4861, allocations: 318.8 kB / 0.7272 GB, free: 10.19 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.322e-05/0.4861, allocations: 23.98 kB / 0.7272 GB, free: 10.16 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.123e-05/0.4862, allocations: 33.7 kB / 0.7273 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.568e-05/0.4862, allocations: 61.64 kB / 0.7273 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.61e-07/0.4862, allocations: 0 / 0.7273 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001135/0.4864, allocations: 97.61 kB / 0.7274 GB, free: 9.957 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/0.4864, allocations: 10.44 kB / 0.7274 GB, free: 9.949 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.4864, allocations: 4 kB / 0.7274 GB, free: 9.945 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.038e-05/0.4864, allocations: 3.984 kB / 0.7274 GB, free: 9.941 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.4865, allocations: 16 kB / 0.7274 GB, free: 9.926 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.067e-06/0.4865, allocations: 4 kB / 0.7275 GB, free: 9.922 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.15e-05/0.4866, allocations: 4 kB / 0.7275 GB, free: 9.918 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.4866, allocations: 7.938 kB / 0.7275 GB, free: 9.91 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.525e-05/0.4866, allocations: 117.8 kB / 0.7276 GB, free: 9.785 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.435e-05/0.4867, allocations: 11.89 kB / 0.7276 GB, free: 9.773 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.806e-05/0.4867, allocations: 11.97 kB / 0.7276 GB, free: 9.766 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.644e-06/0.4867, allocations: 4 kB / 0.7276 GB, free: 9.762 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.4867, allocations: 0 / 0.7276 GB, free: 9.762 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.4867, allocations: 0 / 0.7276 GB, free: 9.762 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001037/0.4868, allocations: 177.5 kB / 0.7278 GB, free: 9.539 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.4868, allocations: 0 / 0.7278 GB, free: 9.539 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000105/0.4869, allocations: 16 kB / 0.7278 GB, free: 9.523 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.4869, allocations: 0 / 0.7278 GB, free: 9.523 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.487, allocations: 7.984 kB / 0.7278 GB, free: 9.516 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.487, allocations: 0 / 0.7278 GB, free: 9.516 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.487, allocations: 8 kB / 0.7278 GB, free: 9.508 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001637/0.4871, allocations: 136 kB / 0.7279 GB, free: 9.359 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.307e-05/0.4872, allocations: 85.05 kB / 0.728 GB, free: 9.258 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.554e-05/0.4872, allocations: 8 kB / 0.728 GB, free: 9.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.477e-05/0.4873, allocations: 0 / 0.728 GB, free: 9.25 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.787e-05/0.4873, allocations: 8.078 kB / 0.728 GB, free: 9.242 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.268e-06/0.4873, allocations: 11.94 kB / 0.728 GB, free: 9.23 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.623e-05/0.4874, allocations: 83.22 kB / 0.7281 GB, free: 9.148 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.4874, allocations: 0 / 0.7281 GB, free: 9.148 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001847/0.4876, allocations: 16 kB / 0.7281 GB, free: 9.133 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.0003305/0.4879, allocations: 0.667 MB / 0.7288 GB, free: 8.438 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001195/0.488, allocations: 67.94 kB / 0.7289 GB, free: 8.371 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.488, allocations: 0 / 0.7289 GB, free: 8.371 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 3.497e-05/0.4881, allocations: 27.98 kB / 0.7289 GB, free: 8.344 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001841/0.4883, allocations: 11.5 kB / 0.7289 GB, free: 8.336 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001106/0.4894, allocations: 1.431 MB / 0.7303 GB, free: 6.816 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000182/0.4896, allocations: 0.6885 MB / 0.731 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.114e-05/0.4896, allocations: 12.61 kB / 0.731 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.549e-05/0.4897, allocations: 19.42 kB / 0.731 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of SimCode: time 2.01e-07/0.4897, allocations: 0 / 0.731 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4033/0.893, allocations: 1.643 MB / 0.7326 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.896/8.789, allocations: 6.125 kB / 0.7326 GB, free: 4.547 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)