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.001139/0.001139, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001119/0.001119, allocations: 194 kB / 16.25 MB, free: 6.625 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 / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001887/0.001887, allocations: 290.4 kB / 290.4 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8551/0.8551, allocations: 169.2 MB / 0.4978 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 103.3 kB / 0.5948 GB, free: 28.17 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1281, allocations: 86.98 MB / 0.6797 GB, free: 0.9609 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001853/0.13, allocations: 0.838 MB / 0.6806 GB, free: 132 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.1315, allocations: 1.472 MB / 0.682 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.17e-05/0.1316, allocations: 1.906 kB / 0.682 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.867e-05/0.1316, allocations: 0 / 0.682 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.485e-05/0.1317, allocations: 3.938 kB / 0.682 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004528/0.1321, allocations: 131.7 kB / 0.6821 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.616e-05/0.1322, allocations: 47.91 kB / 0.6822 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.715e-05/0.1323, allocations: 4.281 kB / 0.6822 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.974e-05/0.1323, allocations: 31.91 kB / 0.6822 GB, free: 14.43 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.969e-05/0.1324, allocations: 27.89 kB / 0.6822 GB, free: 14.4 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.443e-05/0.1324, allocations: 8 kB / 0.6822 GB, free: 14.39 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003741/0.1328, allocations: 315.4 kB / 0.6825 GB, free: 14.08 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.923e-05/0.1328, allocations: 19.92 kB / 0.6826 GB, free: 14.06 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.041e-05/0.1328, allocations: 19.91 kB / 0.6826 GB, free: 14.04 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002676/0.1331, allocations: 219.5 kB / 0.6828 GB, free: 13.83 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.1331, allocations: 0 / 0.6828 GB, free: 13.83 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1331, allocations: 0 / 0.6828 GB, free: 13.83 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.1331, allocations: 0 / 0.6828 GB, free: 13.83 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.0005373/0.1337, allocations: 395.4 kB / 0.6832 GB, free: 13.39 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.1337, allocations: 15.97 kB / 0.6832 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.808e-05/0.1338, allocations: 42.75 kB / 0.6832 GB, free: 13.33 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004175/0.1342, allocations: 72.75 kB / 0.6833 GB, free: 13.26 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.567e-05/0.1343, allocations: 164.4 kB / 0.6835 GB, free: 13.06 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.1343, allocations: 4.375 kB / 0.6835 GB, free: 13.05 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.329e-05/0.1343, allocations: 12.38 kB / 0.6835 GB, free: 13.04 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003239/0.1347, allocations: 117.7 kB / 0.6836 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.1347, allocations: 0 / 0.6836 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.1347, allocations: 0 / 0.6836 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.1347, allocations: 0 / 0.6836 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004302/0.1352, allocations: 107.8 kB / 0.6837 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004825/0.1356, allocations: 332.6 kB / 0.684 GB, free: 12.44 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000574/0.1362, allocations: 162.4 kB / 0.6842 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002085/0.1364, allocations: 48.81 kB / 0.6842 GB, free: 12.22 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/0.1365, allocations: 12 kB / 0.6842 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.881e-05/0.1365, allocations: 30.56 kB / 0.6842 GB, free: 12.17 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.1365, allocations: 0 / 0.6842 GB, free: 12.17 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.01767/0.1542, allocations: 2.835 MB / 0.687 GB, free: 9.242 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.242e-05/0.1542, allocations: 63.34 kB / 0.6871 GB, free: 9.168 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.742e-05/0.1543, allocations: 101.8 kB / 0.6872 GB, free: 9.059 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.655e-05/0.1543, allocations: 29.7 kB / 0.6872 GB, free: 9.023 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.478e-05/0.1544, allocations: 84.14 kB / 0.6873 GB, free: 8.938 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.485e-05/0.1544, allocations: 39.36 kB / 0.6873 GB, free: 8.898 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/0.1546, allocations: 73.64 kB / 0.6874 GB, free: 8.82 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.728e-05/0.1547, allocations: 318.8 kB / 0.6877 GB, free: 8.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005949/0.1553, allocations: 195.8 kB / 0.6879 GB, free: 8.309 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005913/0.1559, allocations: 195.8 kB / 0.6881 GB, free: 8.117 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001163/0.1571, allocations: 388 kB / 0.6884 GB, free: 7.738 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.1571, allocations: 0 / 0.6884 GB, free: 7.738 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001364/0.1584, allocations: 473.2 kB / 0.6889 GB, free: 7.27 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.1585, allocations: 6.031 kB / 0.6889 GB, free: 7.266 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.1585, allocations: 0 / 0.6889 GB, free: 7.266 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.1585, allocations: 4 kB / 0.6889 GB, free: 7.262 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008036/0.1593, allocations: 115.7 kB / 0.689 GB, free: 7.148 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.229e-06/0.1593, allocations: 0 / 0.689 GB, free: 7.148 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006122/0.1599, allocations: 51.94 kB / 0.6891 GB, free: 7.098 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.338e-05/0.16, allocations: 19.94 kB / 0.6891 GB, free: 7.078 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.0001307/0.1601, allocations: 115.2 kB / 0.6892 GB, free: 6.957 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.639e-05/0.1602, allocations: 7.906 kB / 0.6892 GB, free: 6.949 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.537e-05/0.1603, allocations: 15.95 kB / 0.6892 GB, free: 6.934 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1603, allocations: 3.938 kB / 0.6892 GB, free: 6.93 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1603, allocations: 4 kB / 0.6892 GB, free: 6.926 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.1603, allocations: 0 / 0.6892 GB, free: 6.926 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001913/0.1622, allocations: 1.051 MB / 0.6902 GB, free: 5.766 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1622, allocations: 0 / 0.6902 GB, free: 5.766 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008061/0.163, allocations: 115.7 kB / 0.6904 GB, free: 5.652 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.163, allocations: 0 / 0.6904 GB, free: 5.652 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.525e-05/0.1631, allocations: 23.94 kB / 0.6904 GB, free: 5.629 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.1631, allocations: 0 / 0.6904 GB, free: 5.629 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1631, allocations: 0 / 0.6904 GB, free: 5.629 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002091/0.1652, allocations: 0.7955 MB / 0.6911 GB, free: 4.816 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001191/0.1653, allocations: 120.9 kB / 0.6913 GB, free: 4.68 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.558e-05/0.1654, allocations: 8 kB / 0.6913 GB, free: 4.672 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006926/0.1661, allocations: 44 kB / 0.6913 GB, free: 4.629 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.276e-05/0.1662, allocations: 28.02 kB / 0.6913 GB, free: 4.602 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.321e-05/0.1663, allocations: 27.88 kB / 0.6914 GB, free: 4.574 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.14e-05/0.1663, allocations: 87.27 kB / 0.6915 GB, free: 4.488 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1663, allocations: 0 / 0.6915 GB, free: 4.488 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003486/0.1667, allocations: 52 kB / 0.6915 GB, free: 4.438 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.002347/0.169, allocations: 1.345 MB / 0.6928 GB, free: 3.066 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001295/0.1703, allocations: 423.5 kB / 0.6932 GB, free: 2.652 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.1703, allocations: 4 kB / 0.6932 GB, free: 2.648 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006451/0.171, allocations: 223.7 kB / 0.6934 GB, free: 2.43 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003351/0.1713, allocations: 11.94 kB / 0.6934 GB, free: 2.418 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007723/0.1791, allocations: 2.964 MB / 0.6963 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001813/0.1793, allocations: 0.6923 MB / 0.697 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0006312/0.1799, allocations: 92.67 kB / 0.6971 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002529/0.1802, allocations: 63.3 kB / 0.6972 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of SimCode: time 3.71e-07/0.1802, allocations: 0 / 0.6972 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5696/0.7498, allocations: 4.468 MB / 0.7015 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002168/0.7501, allocations: 242 kB / 0.7018 GB, free: 9.953 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.786/2.536, allocations: 0 / 0.7018 GB, free: 9.953 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)