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.007717/0.007717, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.002013/0.002013, allocations: 197.9 kB / 16.67 MB, free: 5.973 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002452/0.002453, allocations: 279.1 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.072/1.072, allocations: 178.6 MB / 0.5074 GB, free: 4.488 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002684/0.002684, allocations: 99.97 kB / 0.6943 GB, free: 3.559 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4914/0.4941, allocations: 89.14 MB / 0.7814 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001981/0.4961, allocations: 0.7943 MB / 0.7822 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001908/0.4981, allocations: 1.478 MB / 0.7836 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.34e-05/0.4981, allocations: 0 / 0.7836 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.528e-05/0.4981, allocations: 5.156 kB / 0.7836 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.463e-05/0.4982, allocations: 0.7969 kB / 0.7836 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005064/0.4987, allocations: 143.9 kB / 0.7838 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001008/0.4988, allocations: 57.16 kB / 0.7838 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.644e-05/0.4989, allocations: 3.031 kB / 0.7838 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.545e-05/0.499, allocations: 28.11 kB / 0.7838 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.185e-05/0.499, allocations: 35.28 kB / 0.7839 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.864e-05/0.4991, allocations: 8.594 kB / 0.7839 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004931/0.4996, allocations: 321 kB / 0.7842 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.203e-05/0.4996, allocations: 10.47 kB / 0.7842 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.869e-05/0.4996, allocations: 29.98 kB / 0.7842 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003459/0.5, allocations: 210.1 kB / 0.7844 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.5, allocations: 0 / 0.7844 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.312e-06/0.5, allocations: 0 / 0.7844 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.5, allocations: 1.281 kB / 0.7844 GB, free: 11.98 MB / 0.5606 GB 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.0006824/0.5007, allocations: 405.9 kB / 0.7848 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.5007, allocations: 10.72 kB / 0.7848 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.538e-05/0.5008, allocations: 41.78 kB / 0.7849 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004494/0.5012, allocations: 71.97 kB / 0.7849 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001471/0.5014, allocations: 168.8 kB / 0.7851 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/0.5014, allocations: 2.906 kB / 0.7851 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.895e-05/0.5015, allocations: 13.64 kB / 0.7851 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003756/0.5018, allocations: 111 kB / 0.7852 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.5019, allocations: 0.6562 kB / 0.7852 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.5019, allocations: 5.312 kB / 0.7852 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.5019, allocations: 1.375 kB / 0.7852 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004877/0.5024, allocations: 102.4 kB / 0.7853 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005994/0.503, allocations: 338.7 kB / 0.7856 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006503/0.5037, allocations: 159.3 kB / 0.7858 GB, free: 10.89 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000249/0.5039, allocations: 55.64 kB / 0.7858 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.374e-05/0.5039, allocations: 4 kB / 0.7859 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.504, allocations: 32.7 kB / 0.7859 GB, free: 10.83 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.504, allocations: 0 / 0.7859 GB, free: 10.83 MB / 0.5606 GB 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.01853/0.5225, allocations: 2.84 MB / 0.7887 GB, free: 9.988 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.043e-05/0.5226, allocations: 56.41 kB / 0.7887 GB, free: 9.922 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.684e-05/0.5227, allocations: 101.9 kB / 0.7888 GB, free: 9.82 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.693e-05/0.5227, allocations: 31.2 kB / 0.7888 GB, free: 9.785 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.039e-05/0.5228, allocations: 90.94 kB / 0.7889 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 7.115e-05/0.5229, allocations: 40.69 kB / 0.789 GB, free: 9.664 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001823/0.5231, allocations: 68.91 kB / 0.789 GB, free: 9.641 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.5232, allocations: 313.7 kB / 0.7893 GB, free: 9.328 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007187/0.5239, allocations: 200 kB / 0.7895 GB, free: 9.277 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006863/0.5246, allocations: 193.7 kB / 0.7897 GB, free: 9.234 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001414/0.5261, allocations: 392.6 kB / 0.7901 GB, free: 9.125 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.5261, allocations: 0 / 0.7901 GB, free: 9.125 MB / 0.5606 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001672/0.5278, allocations: 483.7 kB / 0.7905 GB, free: 8.988 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.5278, allocations: 5.531 kB / 0.7905 GB, free: 8.988 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.5278, allocations: 1.438 kB / 0.7905 GB, free: 8.988 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.216e-05/0.5278, allocations: 0 / 0.7905 GB, free: 8.988 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000861/0.5287, allocations: 115.9 kB / 0.7907 GB, free: 8.977 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.5287, allocations: 1.016 kB / 0.7907 GB, free: 8.977 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006057/0.5293, allocations: 46.36 kB / 0.7907 GB, free: 8.973 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.724e-05/0.5294, allocations: 24.16 kB / 0.7907 GB, free: 8.973 MB / 0.5606 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 (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.0001569/0.5296, allocations: 116.6 kB / 0.7908 GB, free: 8.852 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.647e-05/0.5296, allocations: 3.531 kB / 0.7908 GB, free: 8.852 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.493e-05/0.5297, allocations: 9.828 kB / 0.7908 GB, free: 8.844 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.5297, allocations: 5.281 kB / 0.7909 GB, free: 8.84 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/0.5297, allocations: 6.031 kB / 0.7909 GB, free: 8.836 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.5297, allocations: 0.7031 kB / 0.7909 GB, free: 8.836 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002282/0.532, allocations: 1.053 MB / 0.7919 GB, free: 7.949 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.532, allocations: 1.094 kB / 0.7919 GB, free: 7.949 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008283/0.5329, allocations: 112.7 kB / 0.792 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.5329, allocations: 1.531 kB / 0.792 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.576e-05/0.533, allocations: 20.06 kB / 0.792 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.533, allocations: 1.062 kB / 0.792 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.533, allocations: 0 / 0.792 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002388/0.5354, allocations: 0.8026 MB / 0.7928 GB, free: 7.379 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001432/0.5355, allocations: 114.6 kB / 0.7929 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.006e-05/0.5356, allocations: 1.375 kB / 0.7929 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006677/0.5363, allocations: 50.77 kB / 0.793 GB, free: 7.23 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.5364, allocations: 27.25 kB / 0.793 GB, free: 7.211 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.85e-05/0.5364, allocations: 26.23 kB / 0.793 GB, free: 7.191 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.55e-05/0.5365, allocations: 79 kB / 0.7931 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5365, allocations: 96 / 0.7931 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000353/0.5369, allocations: 54.75 kB / 0.7931 GB, free: 7.109 MB / 0.5606 GB 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.002785/0.5397, allocations: 1.349 MB / 0.7945 GB, free: 6.086 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001485/0.5411, allocations: 419.5 kB / 0.7949 GB, free: 5.883 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.5412, allocations: 0 / 0.7949 GB, free: 5.883 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0007454/0.5419, allocations: 226.1 kB / 0.7951 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00035/0.5423, allocations: 11.28 kB / 0.7951 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008754/0.551, allocations: 2.944 MB / 0.798 GB, free: 3.602 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.5514, allocations: 0.6905 MB / 0.7986 GB, free: 2.898 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0005203/0.5519, allocations: 87.7 kB / 0.7987 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002752/0.5522, allocations: 63.23 kB / 0.7988 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of SimCode: time 4.21e-07/0.5522, allocations: 0 / 0.7988 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02687/0.579, allocations: 4.613 MB / 0.8033 GB, free: 360 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.017/8.596, allocations: 16.03 kB / 0.8033 GB, free: 348 kB / 0.5606 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)