Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_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.004801/0.004801, allocations: 103 kB / 15.73 MB, free: 6.043 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.001073/0.001073, allocations: 194.1 kB / 16.68 MB, free: 5.965 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.294/1.294, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002505/0.002505, allocations: 279 kB / 290.8 MB, free: 1.781 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9014/0.9014, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 87.86 kB / 0.6809 GB, free: 32 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1629/0.1647, allocations: 86.97 MB / 0.7659 GB, free: 8.977 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002474/0.1672, allocations: 1.278 MB / 0.7671 GB, free: 7.688 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.5189/0.6862, allocations: 147 MB / 0.9107 GB, free: 14.99 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.931e-05/0.6862, allocations: 0 / 0.9107 GB, free: 14.99 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 2.134e-05/0.6863, allocations: 9.234 kB / 0.9107 GB, free: 14.98 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 5.233e-05/0.6864, allocations: 7.938 kB / 0.9107 GB, free: 14.97 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004554/0.6868, allocations: 94.55 kB / 0.9108 GB, free: 14.88 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 7.45e-05/0.6869, allocations: 27.92 kB / 0.9108 GB, free: 14.86 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 3.62e-05/0.6869, allocations: 7.984 kB / 0.9108 GB, free: 14.85 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 4.262e-05/0.687, allocations: 19.92 kB / 0.9108 GB, free: 14.83 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 5.522e-05/0.6871, allocations: 11.92 kB / 0.9108 GB, free: 14.82 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 1.248e-05/0.6871, allocations: 4 kB / 0.9108 GB, free: 14.81 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002514/0.6873, allocations: 79.81 kB / 0.9109 GB, free: 14.74 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 1.923e-05/0.6874, allocations: 8 kB / 0.9109 GB, free: 14.73 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 3.275e-05/0.6874, allocations: 19.86 kB / 0.9109 GB, free: 14.71 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.0001669/0.6876, allocations: 66.83 kB / 0.911 GB, free: 14.65 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.6876, allocations: 4 kB / 0.911 GB, free: 14.64 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.944e-06/0.6876, allocations: 1.875 kB / 0.911 GB, free: 14.64 MB / 0.67 GB Notification: Performance of Transformations before backend: time 9.477e-06/0.6876, allocations: 0 / 0.911 GB, free: 14.64 MB / 0.67 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.0004148/0.688, allocations: 357.8 kB / 0.9114 GB, free: 14.25 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.6881, allocations: 12.03 kB / 0.9114 GB, free: 14.24 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.272e-05/0.6881, allocations: 34.75 kB / 0.9114 GB, free: 14.2 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001945/0.6883, allocations: 8.938 kB / 0.9114 GB, free: 14.19 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001115/0.6884, allocations: 168.3 kB / 0.9116 GB, free: 13.98 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.78e-05/0.6885, allocations: 11.94 kB / 0.9116 GB, free: 13.97 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.56e-05/0.6885, allocations: 8 kB / 0.9116 GB, free: 13.96 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001192/0.6886, allocations: 45.69 kB / 0.9116 GB, free: 13.91 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.904e-06/0.6886, allocations: 0 / 0.9116 GB, free: 13.91 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.6887, allocations: 0 / 0.9116 GB, free: 13.91 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.6887, allocations: 0 / 0.9116 GB, free: 13.91 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.925e-05/0.6887, allocations: 23.91 kB / 0.9117 GB, free: 13.89 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000168/0.6889, allocations: 169.5 kB / 0.9118 GB, free: 13.68 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 8.587e-05/0.689, allocations: 50.56 kB / 0.9119 GB, free: 13.62 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.872e-05/0.689, allocations: 16.86 kB / 0.9119 GB, free: 13.6 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.6891, allocations: 0 / 0.9119 GB, free: 13.6 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.6891, allocations: 42.72 kB / 0.9119 GB, free: 13.55 MB / 0.67 GB Notification: Performance of pre-optimization done (n=7): time 2.344e-06/0.6891, allocations: 0 / 0.9119 GB, free: 13.55 MB / 0.67 GB Notification: Performance of matching and sorting (n=11): time 0.0007324/0.6898, allocations: 374.1 kB / 0.9123 GB, free: 13.13 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.321e-05/0.6899, allocations: 51.41 kB / 0.9123 GB, free: 13.07 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.354e-05/0.6899, allocations: 93.86 kB / 0.9124 GB, free: 12.96 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.69, allocations: 29.7 kB / 0.9124 GB, free: 12.93 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 2.783e-05/0.69, allocations: 80.14 kB / 0.9125 GB, free: 12.85 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 4.29e-05/0.6901, allocations: 39.36 kB / 0.9126 GB, free: 12.81 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.293e-05/0.6901, allocations: 29.7 kB / 0.9126 GB, free: 12.77 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001002/0.6902, allocations: 322.9 kB / 0.9129 GB, free: 12.45 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.659e-05/0.6902, allocations: 19.98 kB / 0.9129 GB, free: 12.43 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.753e-05/0.6903, allocations: 41.69 kB / 0.913 GB, free: 12.38 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.785e-05/0.6904, allocations: 60.7 kB / 0.913 GB, free: 12.32 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.91e-07/0.6904, allocations: 0 / 0.913 GB, free: 12.32 MB / 0.67 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001327/0.6905, allocations: 97.66 kB / 0.9131 GB, free: 12.22 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.6906, allocations: 4 kB / 0.9131 GB, free: 12.21 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.6906, allocations: 3.938 kB / 0.9131 GB, free: 12.21 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.6906, allocations: 0 / 0.9131 GB, free: 12.21 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.6907, allocations: 24 kB / 0.9131 GB, free: 12.19 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.6907, allocations: 7.922 kB / 0.9131 GB, free: 12.18 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.12e-05/0.6908, allocations: 4 kB / 0.9131 GB, free: 12.18 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.6908, allocations: 0 / 0.9131 GB, free: 12.18 MB / 0.67 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.114e-05/0.6909, allocations: 122.4 kB / 0.9133 GB, free: 12.05 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.985e-05/0.6909, allocations: 7.906 kB / 0.9133 GB, free: 12.04 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.357e-05/0.6909, allocations: 11.91 kB / 0.9133 GB, free: 12.03 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.6909, allocations: 0 / 0.9133 GB, free: 12.03 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.6909, allocations: 0 / 0.9133 GB, free: 12.03 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.6909, allocations: 8 kB / 0.9133 GB, free: 12.02 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001261/0.6911, allocations: 170.5 kB / 0.9135 GB, free: 11.81 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.6911, allocations: 0 / 0.9135 GB, free: 11.81 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.6912, allocations: 27.98 kB / 0.9135 GB, free: 11.78 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.6912, allocations: 0 / 0.9135 GB, free: 11.78 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-06/0.6912, allocations: 0 / 0.9135 GB, free: 11.78 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.6912, allocations: 0 / 0.9135 GB, free: 11.78 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.6912, allocations: 2 kB / 0.9135 GB, free: 11.78 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001853/0.6914, allocations: 141.9 kB / 0.9136 GB, free: 11.62 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 6.18e-05/0.6915, allocations: 89.05 kB / 0.9137 GB, free: 11.52 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.347e-05/0.6915, allocations: 96 / 0.9137 GB, free: 11.52 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.12e-05/0.6916, allocations: 8 kB / 0.9137 GB, free: 11.51 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.763e-05/0.6916, allocations: 11.97 kB / 0.9137 GB, free: 11.5 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.703e-06/0.6916, allocations: 0 / 0.9137 GB, free: 11.5 MB / 0.67 GB Notification: Performance of sorting global known variables: time 3.024e-05/0.6917, allocations: 79.28 kB / 0.9138 GB, free: 11.42 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.1e-07/0.6917, allocations: 0 / 0.9138 GB, free: 11.42 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.000195/0.6919, allocations: 19.94 kB / 0.9138 GB, free: 11.4 MB / 0.67 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.0003963/0.6923, allocations: 0.6802 MB / 0.9145 GB, free: 10.69 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0001232/0.6924, allocations: 48.03 kB / 0.9145 GB, free: 10.64 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.6924, allocations: 0 / 0.9145 GB, free: 10.64 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 3.977e-05/0.6925, allocations: 31.92 kB / 0.9146 GB, free: 10.61 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002146/0.6927, allocations: 8 kB / 0.9146 GB, free: 10.61 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001283/0.694, allocations: 1.454 MB / 0.916 GB, free: 9.078 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.6942, allocations: 0.6846 MB / 0.9167 GB, free: 8.367 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 5.167e-05/0.6943, allocations: 12.66 kB / 0.9167 GB, free: 8.355 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.32e-05/0.6943, allocations: 15.44 kB / 0.9167 GB, free: 8.34 MB / 0.67 GB Notification: Performance of SimCode: time 3.6e-07/0.6944, allocations: 4 kB / 0.9167 GB, free: 8.336 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01883/0.7132, allocations: 1.715 MB / 0.9184 GB, free: 6.785 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.001/7.715, allocations: 14.7 kB / 0.9184 GB, free: 6.773 MB / 0.67 GB (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)