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.004841/0.004841, allocations: 95.02 kB / 15.73 MB, free: 6.039 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.001347/0.001347, allocations: 199.4 kB / 16.68 MB, free: 5.969 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002638/0.002638, allocations: 274.1 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.076/1.076, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002714/0.002714, allocations: 95.98 kB / 0.681 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1936/0.1964, allocations: 86.97 MB / 0.766 GB, free: 8.875 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002208/0.1986, allocations: 0.776 MB / 0.7667 GB, free: 8.102 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001996/0.2006, allocations: 1.474 MB / 0.7682 GB, free: 6.609 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.95e-05/0.2007, allocations: 4 kB / 0.7682 GB, free: 6.605 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.316e-05/0.2007, allocations: 3.938 kB / 0.7682 GB, free: 6.602 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.911e-05/0.2008, allocations: 3.938 kB / 0.7682 GB, free: 6.598 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004984/0.2013, allocations: 143.4 kB / 0.7683 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001139/0.2014, allocations: 55.64 kB / 0.7684 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.098e-05/0.2014, allocations: 4 kB / 0.7684 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 8.074e-05/0.2015, allocations: 23.92 kB / 0.7684 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7e-05/0.2016, allocations: 35.83 kB / 0.7684 GB, free: 6.34 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.604e-05/0.2016, allocations: 7.938 kB / 0.7684 GB, free: 6.332 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004846/0.2021, allocations: 323.3 kB / 0.7687 GB, free: 6.016 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.929e-05/0.2021, allocations: 11.98 kB / 0.7687 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.315e-05/0.2022, allocations: 23.86 kB / 0.7688 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003448/0.2025, allocations: 215.6 kB / 0.769 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.2026, allocations: 0 / 0.769 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.214e-06/0.2026, allocations: 4 kB / 0.769 GB, free: 5.766 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.2026, allocations: 0 / 0.769 GB, free: 5.766 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.0007827/0.2034, allocations: 402.9 kB / 0.7694 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.2034, allocations: 12.02 kB / 0.7694 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.342e-05/0.2035, allocations: 34.75 kB / 0.7694 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004634/0.2039, allocations: 76.8 kB / 0.7695 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001564/0.2041, allocations: 168.3 kB / 0.7696 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.978e-05/0.2041, allocations: 8.375 kB / 0.7696 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.614e-05/0.2042, allocations: 16.33 kB / 0.7697 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003648/0.2045, allocations: 116.5 kB / 0.7698 GB, free: 4.852 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.2046, allocations: 0 / 0.7698 GB, free: 4.852 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/0.2046, allocations: 4 kB / 0.7698 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.2046, allocations: 3.984 kB / 0.7698 GB, free: 4.844 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004616/0.2051, allocations: 103.9 kB / 0.7699 GB, free: 4.742 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005978/0.2057, allocations: 332.7 kB / 0.7702 GB, free: 4.367 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006085/0.2063, allocations: 146.5 kB / 0.7703 GB, free: 4.215 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002286/0.2065, allocations: 64.8 kB / 0.7704 GB, free: 4.148 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.597e-05/0.2066, allocations: 4.094 kB / 0.7704 GB, free: 4.145 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.2066, allocations: 38.55 kB / 0.7704 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.2066, allocations: 0 / 0.7704 GB, free: 4.098 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.01831/0.2249, allocations: 2.835 MB / 0.7732 GB, free: 1.168 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.063e-05/0.225, allocations: 55.34 kB / 0.7733 GB, free: 1.102 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.815e-05/0.2251, allocations: 101.8 kB / 0.7734 GB, free: 0.9922 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.867e-05/0.2251, allocations: 29.7 kB / 0.7734 GB, free: 0.957 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.432e-05/0.2252, allocations: 88.08 kB / 0.7735 GB, free: 0.8672 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 7.287e-05/0.2253, allocations: 39.64 kB / 0.7735 GB, free: 0.8281 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001763/0.2255, allocations: 69.58 kB / 0.7736 GB, free: 0.7539 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001465/0.2256, allocations: 322.8 kB / 0.7739 GB, free: 440 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006417/0.2263, allocations: 187.8 kB / 0.7741 GB, free: 252 kB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006204/0.2269, allocations: 187.8 kB / 0.7742 GB, free: 64 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3182/0.5451, allocations: 390.2 kB / 0.7746 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.5452, allocations: 1.281 kB / 0.7746 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001577/0.5468, allocations: 481.3 kB / 0.7751 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.5468, allocations: 5.172 kB / 0.7751 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.5468, allocations: 0.8438 kB / 0.7751 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.5468, allocations: 1.344 kB / 0.7751 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008818/0.5477, allocations: 109.4 kB / 0.7752 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.5477, allocations: 1.578 kB / 0.7752 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006417/0.5484, allocations: 45.25 kB / 0.7752 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.009e-05/0.5484, allocations: 28.28 kB / 0.7753 GB, free: 14.93 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.000151/0.5486, allocations: 125.3 kB / 0.7754 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.368e-05/0.5487, allocations: 6.328 kB / 0.7754 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.53e-05/0.5488, allocations: 12.64 kB / 0.7754 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.5488, allocations: 1.25 kB / 0.7754 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.5488, allocations: 0 / 0.7754 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.5488, allocations: 0.75 kB / 0.7754 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002052/0.5508, allocations: 1.052 MB / 0.7764 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.5509, allocations: 0 / 0.7764 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008645/0.5517, allocations: 112.8 kB / 0.7765 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.5517, allocations: 0.7031 kB / 0.7765 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-05/0.5518, allocations: 27.53 kB / 0.7766 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.5518, allocations: 6.859 kB / 0.7766 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.5518, allocations: 0 / 0.7766 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002259/0.5541, allocations: 0.7922 MB / 0.7773 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/0.5542, allocations: 115.2 kB / 0.7774 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.715e-05/0.5543, allocations: 1.75 kB / 0.7775 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007074/0.555, allocations: 54.66 kB / 0.7775 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.5551, allocations: 30.31 kB / 0.7775 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.151e-05/0.5552, allocations: 23.42 kB / 0.7776 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.989e-05/0.5552, allocations: 83.77 kB / 0.7776 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5552, allocations: 0 / 0.7776 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004877/0.5557, allocations: 55.25 kB / 0.7777 GB, free: 13.96 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.002374/0.5581, allocations: 1.34 MB / 0.779 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001335/0.5594, allocations: 425.4 kB / 0.7794 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.5594, allocations: 1 kB / 0.7794 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0006586/0.5601, allocations: 224.5 kB / 0.7796 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004646/0.5606, allocations: 14.78 kB / 0.7796 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008144/0.5687, allocations: 2.943 MB / 0.7825 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001152/0.5689, allocations: 0.6944 MB / 0.7832 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0004627/0.5693, allocations: 90.34 kB / 0.7833 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002808/0.5696, allocations: 67.84 kB / 0.7833 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of SimCode: time 5.61e-07/0.5696, allocations: 0 / 0.7833 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02874/0.5984, allocations: 4.599 MB / 0.7878 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.931/8.53, allocations: 11.34 kB / 0.7878 GB, free: 10.3 MB / 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 & /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)