Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9277/0.9277, allocations: 143.3 MB / 158.3 MB, free: 5.789 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001352/0.001351, allocations: 179 kB / 191.5 MB, free: 5.754 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.2 MB / 447.7 MB, free: 4.805 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 96.27 kB / 0.5187 GB, free: 1.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001837/0.001837, allocations: 270.6 kB / 0.6005 GB, free: 48.7 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006302/0.0006303, allocations: 13.97 kB / 0.6929 GB, free: 59.67 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1648/0.1655, allocations: 82.8 MB / 0.7738 GB, free: 13.68 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1542/0.3197, allocations: 109.4 MB / 0.8806 GB, free: 148 kB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.32, allocations: 91.92 kB / 0.8807 GB, free: 56 kB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.3372/0.6573, allocations: 4.116 MB / 0.8847 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.723e-06/0.6573, allocations: 3.938 kB / 0.8847 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.6573, allocations: 2.844 kB / 0.8847 GB, free: 109.2 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003792/0.6577, allocations: 365.8 kB / 0.8851 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.6578, allocations: 11.66 kB / 0.8851 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.087e-05/0.6578, allocations: 34.44 kB / 0.8851 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003743/0.6582, allocations: 69.22 kB / 0.8852 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.492e-05/0.6583, allocations: 165.1 kB / 0.8854 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.6583, allocations: 3.953 kB / 0.8854 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.058e-05/0.6583, allocations: 10.59 kB / 0.8854 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002497/0.6586, allocations: 85.06 kB / 0.8855 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.185e-05/0.6586, allocations: 0 / 0.8855 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/0.6586, allocations: 0 / 0.8855 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.6586, allocations: 0 / 0.8855 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002967/0.6589, allocations: 82.58 kB / 0.8855 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001381/0.6591, allocations: 163 kB / 0.8857 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005604/0.6596, allocations: 145 kB / 0.8858 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 3.834e-05/0.6597, allocations: 5.875 kB / 0.8858 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.568e-05/0.6597, allocations: 35.5 kB / 0.8859 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=4): time 1.133e-06/0.6597, allocations: 2.781 kB / 0.8859 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of matching and sorting (n=5): time 0.0011/0.6608, allocations: 432.3 kB / 0.8863 GB, free: 108 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.979e-05/0.6609, allocations: 55.78 kB / 0.8863 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.235e-05/0.6609, allocations: 88.81 kB / 0.8864 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.6609, allocations: 31.05 kB / 0.8864 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 1.939e-05/0.661, allocations: 80.8 kB / 0.8865 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.228e-05/0.661, allocations: 20.73 kB / 0.8865 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.684e-06/0.661, allocations: 4.125 kB / 0.8865 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 5.624e-05/0.6611, allocations: 316.7 kB / 0.8869 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/0.6613, allocations: 39.61 kB / 0.8869 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001474/0.6614, allocations: 45.61 kB / 0.8869 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001488/0.6616, allocations: 43.36 kB / 0.887 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.6616, allocations: 0 / 0.887 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003487/0.6619, allocations: 125.2 kB / 0.8871 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.662, allocations: 6.125 kB / 0.8871 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.662, allocations: 0 / 0.8871 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.662, allocations: 0 / 0.8871 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001524/0.6621, allocations: 31.34 kB / 0.8871 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.882e-06/0.6622, allocations: 4.547 kB / 0.8871 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.81e-05/0.6623, allocations: 16.22 kB / 0.8871 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/0.6623, allocations: 7.766 kB / 0.8872 GB, free: 107.3 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.982e-05/0.6623, allocations: 113.3 kB / 0.8873 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.626e-05/0.6624, allocations: 11.39 kB / 0.8873 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004722/0.6628, allocations: 144.7 kB / 0.8874 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.6629, allocations: 2.781 kB / 0.8874 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.6629, allocations: 3.938 kB / 0.8874 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.6629, allocations: 0.5625 kB / 0.8874 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001054/0.663, allocations: 166.1 kB / 0.8876 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.663, allocations: 2.219 kB / 0.8876 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001823/0.6632, allocations: 30.62 kB / 0.8876 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.6632, allocations: 8.281 kB / 0.8876 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.6632, allocations: 3.359 kB / 0.8876 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.6632, allocations: 0.5625 kB / 0.8876 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.6632, allocations: 0 / 0.8876 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006291/0.6639, allocations: 204.7 kB / 0.8878 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.125e-05/0.664, allocations: 87.89 kB / 0.8879 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.198e-05/0.664, allocations: 4.844 kB / 0.8879 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001443/0.6641, allocations: 14.5 kB / 0.8879 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.564e-05/0.6642, allocations: 11.97 kB / 0.8879 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.6642, allocations: 7.297 kB / 0.8879 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 2.168e-05/0.6642, allocations: 79.2 kB / 0.888 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.3e-07/0.6642, allocations: 0 / 0.888 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002939/0.6645, allocations: 43.56 kB / 0.8881 GB, free: 106.7 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y_comp) * 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 (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009446/0.6655, allocations: 0.7802 MB / 0.8888 GB, free: 106 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0004289/0.6659, allocations: 100.5 kB / 0.8889 GB, free: 106 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.6659, allocations: 3.938 kB / 0.8889 GB, free: 106 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000194/0.6661, allocations: 48.88 kB / 0.889 GB, free: 106 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001226/0.6663, allocations: 4.609 kB / 0.889 GB, free: 106 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/0.6677, allocations: 0.5764 MB / 0.8895 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001051/0.6678, allocations: 0.6785 MB / 0.8902 GB, free: 105 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.000114/0.6679, allocations: 21.03 kB / 0.8902 GB, free: 105 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.114e-05/0.668, allocations: 17.17 kB / 0.8902 GB, free: 105 MB / 0.5417 GB Notification: Performance of SimCode: time 2.1e-07/0.668, allocations: 3.938 kB / 0.8902 GB, free: 105 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01258/0.6806, allocations: 1.814 MB / 0.892 GB, free: 104.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001421/0.6807, allocations: 208.3 kB / 0.8922 GB, free: 104.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.62/2.3, allocations: 0 / 0.8922 GB, free: 104.5 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)