Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.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.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",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.001684/0.001684, allocations: 108 kB / 15.6 MB, free: 132 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.002112/0.002112, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.326/1.326, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002143/0.002143, allocations: 275.1 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9433/0.9433, allocations: 169.3 MB / 0.4982 GB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001812/0.001812, allocations: 102.6 kB / 0.5954 GB, free: 27.79 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1602/0.162, allocations: 86.99 MB / 0.6803 GB, free: 0.6055 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.00232/0.1644, allocations: 0.7708 MB / 0.6811 GB, free: 15.84 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001882/0.1663, allocations: 1.475 MB / 0.6825 GB, free: 14.35 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.047e-05/0.1664, allocations: 4 kB / 0.6825 GB, free: 14.35 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.763e-05/0.1664, allocations: 3.938 kB / 0.6825 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.706e-05/0.1665, allocations: 4.562 kB / 0.6825 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000541/0.167, allocations: 139.5 kB / 0.6826 GB, free: 14.2 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.907e-05/0.1671, allocations: 51.89 kB / 0.6827 GB, free: 14.15 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.506e-05/0.1671, allocations: 4.281 kB / 0.6827 GB, free: 14.15 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.865e-05/0.1672, allocations: 23.92 kB / 0.6827 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.522e-05/0.1673, allocations: 39.88 kB / 0.6828 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.903e-05/0.1673, allocations: 4 kB / 0.6828 GB, free: 14.08 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004482/0.1678, allocations: 315.4 kB / 0.6831 GB, free: 13.77 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.556e-05/0.1678, allocations: 19.91 kB / 0.6831 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.279e-05/0.1679, allocations: 23.86 kB / 0.6831 GB, free: 13.73 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003183/0.1682, allocations: 211.5 kB / 0.6833 GB, free: 13.52 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.1682, allocations: 4 kB / 0.6833 GB, free: 13.52 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1682, allocations: 0 / 0.6833 GB, free: 13.52 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.1682, allocations: 0 / 0.6833 GB, free: 13.52 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000623/0.1688, allocations: 403.3 kB / 0.6837 GB, free: 13.08 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.1689, allocations: 12.03 kB / 0.6837 GB, free: 13.07 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.716e-05/0.1689, allocations: 34.75 kB / 0.6837 GB, free: 13.02 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004596/0.1694, allocations: 76.75 kB / 0.6838 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001017/0.1695, allocations: 160.4 kB / 0.684 GB, free: 12.75 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.828e-05/0.1695, allocations: 8.375 kB / 0.684 GB, free: 12.75 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.725e-05/0.1696, allocations: 8.359 kB / 0.684 GB, free: 12.74 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003699/0.17, allocations: 117.7 kB / 0.6841 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.17, allocations: 3.938 kB / 0.6841 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.548e-05/0.17, allocations: 0 / 0.6841 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.17, allocations: 4 kB / 0.6841 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000484/0.1705, allocations: 107.8 kB / 0.6842 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005378/0.171, allocations: 332.6 kB / 0.6845 GB, free: 12.13 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006429/0.1717, allocations: 162.4 kB / 0.6847 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002369/0.1719, allocations: 56.81 kB / 0.6847 GB, free: 11.9 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.464e-05/0.172, allocations: 0 / 0.6847 GB, free: 11.9 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.172, allocations: 34.56 kB / 0.6848 GB, free: 11.86 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.002e-06/0.172, allocations: 0 / 0.6848 GB, free: 11.86 MB / 494.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=11): time 0.01758/0.1896, allocations: 2.835 MB / 0.6875 GB, free: 8.93 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.846e-05/0.1897, allocations: 59.34 kB / 0.6876 GB, free: 8.859 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.315e-05/0.1897, allocations: 105.8 kB / 0.6877 GB, free: 8.746 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.576e-05/0.1898, allocations: 25.7 kB / 0.6877 GB, free: 8.715 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.017e-05/0.1898, allocations: 88.14 kB / 0.6878 GB, free: 8.625 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.746e-05/0.1899, allocations: 47.28 kB / 0.6878 GB, free: 8.578 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001596/0.1901, allocations: 69.58 kB / 0.6879 GB, free: 8.504 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.995e-05/0.1902, allocations: 318.8 kB / 0.6882 GB, free: 8.184 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006628/0.1908, allocations: 195.8 kB / 0.6884 GB, free: 7.992 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000659/0.1915, allocations: 191.8 kB / 0.6886 GB, free: 7.805 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001336/0.1929, allocations: 387.2 kB / 0.689 GB, free: 7.426 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1929, allocations: 4 kB / 0.689 GB, free: 7.422 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001553/0.1944, allocations: 473.3 kB / 0.6894 GB, free: 6.953 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.1945, allocations: 8 kB / 0.6894 GB, free: 6.945 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.1945, allocations: 416 / 0.6894 GB, free: 6.945 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.1945, allocations: 3.938 kB / 0.6894 GB, free: 6.941 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007968/0.1953, allocations: 115.7 kB / 0.6895 GB, free: 6.828 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.1953, allocations: 4 kB / 0.6895 GB, free: 6.824 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005834/0.1959, allocations: 47.94 kB / 0.6896 GB, free: 6.777 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-05/0.196, allocations: 27.92 kB / 0.6896 GB, free: 6.75 MB / 494.1 MB 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 (13): * Single equations (assignments): 13 * 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 0.0001384/0.1961, allocations: 111.2 kB / 0.6897 GB, free: 6.633 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.51e-05/0.1962, allocations: 7.906 kB / 0.6897 GB, free: 6.625 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.195e-05/0.1963, allocations: 15.95 kB / 0.6897 GB, free: 6.609 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.1963, allocations: 7.938 kB / 0.6897 GB, free: 6.602 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.1963, allocations: 4 kB / 0.6897 GB, free: 6.598 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.1963, allocations: 0 / 0.6897 GB, free: 6.598 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002159/0.1985, allocations: 1.039 MB / 0.6908 GB, free: 5.449 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1985, allocations: 4 kB / 0.6908 GB, free: 5.445 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007891/0.1993, allocations: 111.7 kB / 0.6909 GB, free: 5.336 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.1993, allocations: 0 / 0.6909 GB, free: 5.336 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.881e-05/0.1993, allocations: 19.94 kB / 0.6909 GB, free: 5.316 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.1993, allocations: 0 / 0.6909 GB, free: 5.316 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1993, allocations: 4 kB / 0.6909 GB, free: 5.312 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002324/0.2017, allocations: 0.7916 MB / 0.6917 GB, free: 4.504 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001386/0.2018, allocations: 124.9 kB / 0.6918 GB, free: 4.363 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.699e-05/0.2019, allocations: 0 / 0.6918 GB, free: 4.363 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006459/0.2026, allocations: 52 kB / 0.6918 GB, free: 4.312 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.395e-05/0.2027, allocations: 23.92 kB / 0.6919 GB, free: 4.289 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.235e-05/0.2027, allocations: 27.94 kB / 0.6919 GB, free: 4.262 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.241e-05/0.2028, allocations: 91.27 kB / 0.692 GB, free: 4.172 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2028, allocations: 0 / 0.692 GB, free: 4.172 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000378/0.2032, allocations: 52 kB / 0.692 GB, free: 4.121 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_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 (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.00261/0.2058, allocations: 1.344 MB / 0.6933 GB, free: 2.75 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001443/0.2072, allocations: 426.7 kB / 0.6937 GB, free: 2.336 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.2072, allocations: 0 / 0.6937 GB, free: 2.336 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007129/0.208, allocations: 227.7 kB / 0.694 GB, free: 2.113 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003591/0.2083, allocations: 18.72 kB / 0.694 GB, free: 2.098 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008363/0.2167, allocations: 2.926 MB / 0.6968 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002216/0.2169, allocations: 0.7001 MB / 0.6975 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0006492/0.2176, allocations: 92.61 kB / 0.6976 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002562/0.2179, allocations: 67.3 kB / 0.6977 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of SimCode: time 3.81e-07/0.2179, allocations: 0 / 0.6977 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0285/0.2464, allocations: 4.55 MB / 0.7021 GB, free: 9.793 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.672/7.918, allocations: 11.61 kB / 0.7021 GB, free: 9.785 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check_fmu --startTime=-1.5 --stopTime=1.5 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1)