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.007885/0.007884, allocations: 101.2 kB / 15.73 MB, free: 6.062 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.001336/0.001336, allocations: 193.8 kB / 16.67 MB, free: 5.977 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.351/1.351, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7704/0.7704, allocations: 132.2 MB / 422.7 MB, free: 6.566 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 60.83 kB / 0.5808 GB, free: 24.25 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.1462, allocations: 80.2 MB / 0.6592 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002255/0.1485, allocations: 1.276 MB / 0.6604 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5727/0.7212, allocations: 147 MB / 0.804 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.5e-05/0.7213, allocations: 0 / 0.804 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 2.398e-05/0.7214, allocations: 0 / 0.804 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 6.847e-05/0.7214, allocations: 7.688 kB / 0.804 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004613/0.7219, allocations: 96.3 kB / 0.8041 GB, free: 11.67 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 8.76e-05/0.722, allocations: 27.56 kB / 0.8041 GB, free: 11.67 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 5.114e-05/0.7221, allocations: 5.812 kB / 0.8041 GB, free: 11.67 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 5.125e-05/0.7221, allocations: 13.86 kB / 0.8041 GB, free: 11.67 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 7.607e-05/0.7222, allocations: 23.45 kB / 0.8041 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 1.383e-05/0.7222, allocations: 1.312 kB / 0.8041 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002607/0.7225, allocations: 84.02 kB / 0.8042 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 1.597e-05/0.7225, allocations: 3.375 kB / 0.8042 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 3.16e-05/0.7225, allocations: 18.67 kB / 0.8042 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0001664/0.7227, allocations: 62.77 kB / 0.8043 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.7227, allocations: 0 / 0.8043 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.493e-06/0.7227, allocations: 0 / 0.8043 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.7227, allocations: 0 / 0.8043 GB, free: 11.64 MB / 0.5919 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.7232, allocations: 359.4 kB / 0.8046 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.7233, allocations: 13.66 kB / 0.8047 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.583e-05/0.7233, allocations: 34.77 kB / 0.8047 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001872/0.7235, allocations: 14.5 kB / 0.8047 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.7236, allocations: 164.5 kB / 0.8049 GB, free: 11.03 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.863e-05/0.7236, allocations: 9.375 kB / 0.8049 GB, free: 11.03 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.937e-05/0.7237, allocations: 3.531 kB / 0.8049 GB, free: 11.03 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001376/0.7238, allocations: 54.39 kB / 0.8049 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.7238, allocations: 0 / 0.8049 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.7239, allocations: 5.125 kB / 0.8049 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.7239, allocations: 1.25 kB / 0.8049 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.036e-05/0.7239, allocations: 17.7 kB / 0.8049 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002049/0.7241, allocations: 168.5 kB / 0.8051 GB, free: 10.79 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001008/0.7243, allocations: 48.53 kB / 0.8051 GB, free: 10.77 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.265e-05/0.7243, allocations: 17.23 kB / 0.8052 GB, free: 10.76 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/0.7243, allocations: 4.969 kB / 0.8052 GB, free: 10.76 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.7244, allocations: 38.91 kB / 0.8052 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.7244, allocations: 0 / 0.8052 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of matching and sorting (n=11): time 0.0007525/0.7251, allocations: 371.7 kB / 0.8056 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.105e-05/0.7252, allocations: 52.81 kB / 0.8056 GB, free: 10.39 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.161e-05/0.7252, allocations: 97.77 kB / 0.8057 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.7253, allocations: 30.42 kB / 0.8057 GB, free: 10.26 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 3.49e-05/0.7253, allocations: 84.14 kB / 0.8058 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.291e-05/0.7254, allocations: 36.38 kB / 0.8059 GB, free: 10.15 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.889e-05/0.7254, allocations: 31.92 kB / 0.8059 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.7255, allocations: 318.2 kB / 0.8062 GB, free: 9.82 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.205e-05/0.7256, allocations: 20.22 kB / 0.8062 GB, free: 9.82 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.19e-05/0.7257, allocations: 37.38 kB / 0.8062 GB, free: 9.805 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.765e-05/0.7258, allocations: 63.48 kB / 0.8063 GB, free: 9.781 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.91e-07/0.7258, allocations: 1.438 kB / 0.8063 GB, free: 9.781 MB / 0.5919 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001502/0.7259, allocations: 98.61 kB / 0.8064 GB, free: 9.742 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.7259, allocations: 6.281 kB / 0.8064 GB, free: 9.742 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.726, allocations: 0 / 0.8064 GB, free: 9.742 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.726, allocations: 1.469 kB / 0.8064 GB, free: 9.742 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001115/0.7261, allocations: 21.3 kB / 0.8064 GB, free: 9.742 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.7261, allocations: 1.438 kB / 0.8064 GB, free: 9.742 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.06e-05/0.7261, allocations: 5.641 kB / 0.8064 GB, free: 9.742 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.7262, allocations: 11.28 kB / 0.8064 GB, free: 9.738 MB / 0.5919 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.617e-05/0.7262, allocations: 123.6 kB / 0.8066 GB, free: 9.613 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.374e-05/0.7263, allocations: 2.469 kB / 0.8066 GB, free: 9.613 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.904e-05/0.7263, allocations: 12.03 kB / 0.8066 GB, free: 9.605 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.7263, allocations: 3.844 kB / 0.8066 GB, free: 9.605 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.7263, allocations: 0 / 0.8066 GB, free: 9.605 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.7263, allocations: 0 / 0.8066 GB, free: 9.605 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001316/0.7265, allocations: 175.2 kB / 0.8067 GB, free: 9.414 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.7265, allocations: 1.344 kB / 0.8067 GB, free: 9.414 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/0.7266, allocations: 19.72 kB / 0.8068 GB, free: 9.414 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.7266, allocations: 5.344 kB / 0.8068 GB, free: 9.41 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.998e-06/0.7266, allocations: 1.469 kB / 0.8068 GB, free: 9.41 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.7266, allocations: 1.172 kB / 0.8068 GB, free: 9.41 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.7266, allocations: 1.875 kB / 0.8068 GB, free: 9.41 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002124/0.7269, allocations: 146 kB / 0.8069 GB, free: 9.328 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.607e-05/0.7269, allocations: 86.02 kB / 0.807 GB, free: 9.23 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.456e-05/0.727, allocations: 4.688 kB / 0.807 GB, free: 9.23 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.523e-05/0.727, allocations: 4.328 kB / 0.807 GB, free: 9.23 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.349e-05/0.7271, allocations: 10.66 kB / 0.807 GB, free: 9.227 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.388e-06/0.7271, allocations: 5.375 kB / 0.807 GB, free: 9.227 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 3.1e-05/0.7271, allocations: 76.19 kB / 0.8071 GB, free: 9.152 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7271, allocations: 0 / 0.8071 GB, free: 9.152 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0001948/0.7273, allocations: 20.59 kB / 0.8071 GB, free: 9.148 MB / 0.5919 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.0004725/0.7278, allocations: 0.6707 MB / 0.8078 GB, free: 8.547 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0001541/0.728, allocations: 53.03 kB / 0.8078 GB, free: 8.547 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.728, allocations: 3.938 kB / 0.8078 GB, free: 8.543 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 4.137e-05/0.728, allocations: 23.73 kB / 0.8078 GB, free: 8.543 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002558/0.7283, allocations: 12.36 kB / 0.8079 GB, free: 8.543 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001273/0.7296, allocations: 1.446 MB / 0.8093 GB, free: 7.301 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002273/0.7298, allocations: 0.6879 MB / 0.8099 GB, free: 6.605 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 6.37e-05/0.7299, allocations: 9.609 kB / 0.8099 GB, free: 6.602 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.106e-05/0.7299, allocations: 16.19 kB / 0.81 GB, free: 6.594 MB / 0.5919 GB Notification: Performance of SimCode: time 2.31e-07/0.7299, allocations: 4 kB / 0.81 GB, free: 6.59 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01769/0.7476, allocations: 1.683 MB / 0.8116 GB, free: 6.227 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.175/7.923, allocations: 3.828 kB / 0.8116 GB, free: 6.227 MB / 0.5919 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)