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.001133/0.001133, allocations: 108 kB / 15.61 MB, free: 152 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.001111/0.001111, allocations: 195.6 kB / 16.53 MB, free: 6.699 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.255/1.255, 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.002091/0.002091, allocations: 278.9 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8963/0.8963, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001724/0.001725, allocations: 99.94 kB / 0.5954 GB, free: 27.82 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1422, allocations: 86.98 MB / 0.6803 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001794/0.144, allocations: 0.7662 MB / 0.6811 GB, free: 15.81 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.1456, allocations: 1.479 MB / 0.6825 GB, free: 14.31 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.996e-05/0.1456, allocations: 0.625 kB / 0.6825 GB, free: 14.31 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.392e-05/0.1456, allocations: 7.938 kB / 0.6825 GB, free: 14.3 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.093e-05/0.1457, allocations: 5.344 kB / 0.6825 GB, free: 14.3 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004383/0.1461, allocations: 144.1 kB / 0.6826 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.881e-05/0.1462, allocations: 47.91 kB / 0.6827 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.934e-05/0.1463, allocations: 4.281 kB / 0.6827 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.097e-05/0.1463, allocations: 31.84 kB / 0.6827 GB, free: 14.08 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.614e-05/0.1464, allocations: 31.89 kB / 0.6828 GB, free: 14.05 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.63e-05/0.1464, allocations: 4 kB / 0.6828 GB, free: 14.04 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003869/0.1468, allocations: 319.4 kB / 0.6831 GB, free: 13.73 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.088e-05/0.1468, allocations: 19.92 kB / 0.6831 GB, free: 13.71 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.129e-05/0.1469, allocations: 23.86 kB / 0.6831 GB, free: 13.69 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002775/0.1472, allocations: 207.5 kB / 0.6833 GB, free: 13.48 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1472, allocations: 0 / 0.6833 GB, free: 13.48 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1472, allocations: 0 / 0.6833 GB, free: 13.48 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.028e-06/0.1472, allocations: 0 / 0.6833 GB, free: 13.48 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.0005717/0.1478, allocations: 403.4 kB / 0.6837 GB, free: 13.04 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.1478, allocations: 12.03 kB / 0.6837 GB, free: 13.03 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.506e-05/0.1478, allocations: 38.75 kB / 0.6837 GB, free: 12.98 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004239/0.1483, allocations: 76.75 kB / 0.6838 GB, free: 12.91 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.698e-05/0.1484, allocations: 164.4 kB / 0.684 GB, free: 12.71 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.661e-05/0.1484, allocations: 16.3 kB / 0.684 GB, free: 12.7 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.34e-05/0.1484, allocations: 8.312 kB / 0.684 GB, free: 12.69 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003513/0.1488, allocations: 116.5 kB / 0.6841 GB, free: 12.57 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.1488, allocations: 8 kB / 0.6841 GB, free: 12.56 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.1488, allocations: 0 / 0.6841 GB, free: 12.56 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.1488, allocations: 4 kB / 0.6841 GB, free: 12.56 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00046/0.1493, allocations: 99.89 kB / 0.6842 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004966/0.1498, allocations: 332.6 kB / 0.6845 GB, free: 12.09 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000619/0.1504, allocations: 158.4 kB / 0.6847 GB, free: 11.92 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002283/0.1507, allocations: 52.81 kB / 0.6847 GB, free: 11.87 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.266e-05/0.1507, allocations: 4 kB / 0.6847 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.1507, allocations: 38.56 kB / 0.6848 GB, free: 11.82 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.1507, allocations: 3.938 kB / 0.6848 GB, free: 11.81 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.01751/0.1682, allocations: 2.833 MB / 0.6875 GB, free: 8.887 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.633e-05/0.1683, allocations: 59.34 kB / 0.6876 GB, free: 8.816 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.894e-05/0.1684, allocations: 101.8 kB / 0.6877 GB, free: 8.707 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.407e-05/0.1684, allocations: 29.7 kB / 0.6877 GB, free: 8.672 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.958e-05/0.1685, allocations: 88.14 kB / 0.6878 GB, free: 8.582 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.714e-05/0.1685, allocations: 39.36 kB / 0.6878 GB, free: 8.543 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/0.1687, allocations: 69.58 kB / 0.6879 GB, free: 8.469 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.578e-05/0.1688, allocations: 318.8 kB / 0.6882 GB, free: 8.148 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006445/0.1695, allocations: 187.8 kB / 0.6884 GB, free: 7.965 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000634/0.1701, allocations: 191.8 kB / 0.6886 GB, free: 7.777 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0013/0.1714, allocations: 392.5 kB / 0.6889 GB, free: 7.391 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.1714, allocations: 0 / 0.6889 GB, free: 7.391 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001495/0.1729, allocations: 484.5 kB / 0.6894 GB, free: 6.914 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.1729, allocations: 4 kB / 0.6894 GB, free: 6.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.173, allocations: 0 / 0.6894 GB, free: 6.91 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.173, allocations: 4 kB / 0.6894 GB, free: 6.906 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007915/0.1738, allocations: 107.7 kB / 0.6895 GB, free: 6.801 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.1738, allocations: 3.984 kB / 0.6895 GB, free: 6.797 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005894/0.1744, allocations: 43.94 kB / 0.6896 GB, free: 6.754 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.085e-05/0.1744, allocations: 27.94 kB / 0.6896 GB, free: 6.727 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.0001412/0.1746, allocations: 119.1 kB / 0.6897 GB, free: 6.602 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.354e-05/0.1747, allocations: 7.906 kB / 0.6897 GB, free: 6.594 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.836e-05/0.1747, allocations: 7.969 kB / 0.6897 GB, free: 6.586 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.1747, allocations: 7.938 kB / 0.6897 GB, free: 6.578 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.1748, allocations: 3.984 kB / 0.6897 GB, free: 6.574 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.1748, allocations: 0 / 0.6897 GB, free: 6.574 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002094/0.1769, allocations: 1.043 MB / 0.6908 GB, free: 5.422 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1769, allocations: 0 / 0.6908 GB, free: 5.422 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00081/0.1777, allocations: 119.7 kB / 0.6909 GB, free: 5.305 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.1777, allocations: 192 / 0.6909 GB, free: 5.305 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.016e-05/0.1778, allocations: 23.92 kB / 0.6909 GB, free: 5.281 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.1778, allocations: 4 kB / 0.6909 GB, free: 5.277 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1778, allocations: 0 / 0.6909 GB, free: 5.277 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002255/0.18, allocations: 0.7956 MB / 0.6917 GB, free: 4.465 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001379/0.1802, allocations: 124.9 kB / 0.6918 GB, free: 4.324 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.695e-05/0.1803, allocations: 0 / 0.6918 GB, free: 4.324 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006682/0.1809, allocations: 52.09 kB / 0.6918 GB, free: 4.273 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.525e-05/0.181, allocations: 27.86 kB / 0.6919 GB, free: 4.246 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.122e-05/0.1811, allocations: 23.94 kB / 0.6919 GB, free: 4.223 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.689e-05/0.1811, allocations: 87.2 kB / 0.692 GB, free: 4.137 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1811, allocations: 0 / 0.692 GB, free: 4.137 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003687/0.1815, allocations: 56 kB / 0.692 GB, free: 4.082 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.00252/0.184, allocations: 1.345 MB / 0.6933 GB, free: 2.711 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001415/0.1855, allocations: 423.5 kB / 0.6937 GB, free: 2.297 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1855, allocations: 0 / 0.6937 GB, free: 2.297 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006992/0.1862, allocations: 223.7 kB / 0.694 GB, free: 2.078 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003552/0.1866, allocations: 23.17 kB / 0.694 GB, free: 2.059 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008276/0.1948, allocations: 2.928 MB / 0.6968 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.1951, allocations: 0.6924 MB / 0.6975 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0006271/0.1957, allocations: 84.67 kB / 0.6976 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002584/0.196, allocations: 67.3 kB / 0.6977 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of SimCode: time 6.01e-07/0.196, allocations: 0 / 0.6977 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02118/0.2172, allocations: 4.565 MB / 0.7021 GB, free: 9.75 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.926/7.143, allocations: 7.625 kB / 0.7021 GB, free: 9.746 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv --start-time -1.5 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0012 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1)