Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="Buildings_8_Buildings_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.001181/0.001181, 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.001151/0.001151, allocations: 194 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.154/1.154, allocations: 205.1 MB / 222.4 MB, free: 4.582 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.492/1.492, allocations: 292.3 MB / 0.5489 GB, free: 12.84 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 74.77 kB / 0.6716 GB, free: 26.36 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.163, allocations: 114.5 MB / 0.7835 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001702/0.1648, allocations: 0.7944 MB / 0.7843 GB, free: 12.58 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001446/0.1662, allocations: 1.507 MB / 0.7857 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.618e-05/0.1662, allocations: 0 / 0.7857 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.368e-05/0.1663, allocations: 7.922 kB / 0.7857 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.472e-05/0.1663, allocations: 0 / 0.7857 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004016/0.1667, allocations: 139.5 kB / 0.7859 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.166e-05/0.1668, allocations: 59.81 kB / 0.7859 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.69e-05/0.1669, allocations: 4 kB / 0.7859 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 5.868e-05/0.1669, allocations: 23.92 kB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.056e-05/0.167, allocations: 35.89 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.702e-05/0.167, allocations: 4 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003701/0.1674, allocations: 319.4 kB / 0.7863 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.902e-05/0.1674, allocations: 19.91 kB / 0.7863 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.818e-05/0.1674, allocations: 27.8 kB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002571/0.1677, allocations: 211.8 kB / 0.7865 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.1677, allocations: 0 / 0.7865 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.113e-06/0.1677, allocations: 3.938 kB / 0.7865 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.517e-06/0.1677, allocations: 0 / 0.7865 GB, free: 10.22 MB / 0.6075 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.0005304/0.1683, allocations: 399.4 kB / 0.7869 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.04e-05/0.1683, allocations: 8.031 kB / 0.7869 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.187e-05/0.1683, allocations: 42.73 kB / 0.787 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004161/0.1688, allocations: 72.75 kB / 0.787 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.468e-05/0.1688, allocations: 172.3 kB / 0.7872 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.1689, allocations: 4.375 kB / 0.7872 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.233e-05/0.1689, allocations: 4.375 kB / 0.7872 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003358/0.1692, allocations: 120.5 kB / 0.7873 GB, free: 9.316 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.1693, allocations: 3.906 kB / 0.7873 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.1693, allocations: 0 / 0.7873 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.1693, allocations: 0 / 0.7873 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004503/0.1697, allocations: 103.9 kB / 0.7874 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004716/0.1702, allocations: 340.5 kB / 0.7878 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006188/0.1709, allocations: 150.5 kB / 0.7879 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000229/0.1711, allocations: 60.73 kB / 0.788 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.354e-05/0.1711, allocations: 4 kB / 0.788 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.977e-05/0.1711, allocations: 34.56 kB / 0.788 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.1711, allocations: 0 / 0.788 GB, free: 8.562 MB / 0.6075 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.01718/0.1883, allocations: 2.836 MB / 0.7908 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.022e-05/0.1884, allocations: 63.34 kB / 0.7908 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.444e-05/0.1884, allocations: 97.86 kB / 0.7909 GB, free: 5.453 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.193e-05/0.1885, allocations: 29.7 kB / 0.791 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.621e-05/0.1885, allocations: 92.03 kB / 0.791 GB, free: 5.324 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.077e-05/0.1886, allocations: 35.45 kB / 0.7911 GB, free: 5.289 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.1887, allocations: 69.58 kB / 0.7911 GB, free: 5.215 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.576e-05/0.1888, allocations: 314.8 kB / 0.7914 GB, free: 4.898 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006325/0.1895, allocations: 191.8 kB / 0.7916 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006251/0.1901, allocations: 203.9 kB / 0.7918 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001271/0.1914, allocations: 392.5 kB / 0.7922 GB, free: 4.125 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.1914, allocations: 4 kB / 0.7922 GB, free: 4.121 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001451/0.1928, allocations: 476.2 kB / 0.7927 GB, free: 3.652 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.1929, allocations: 4.938 kB / 0.7927 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.1929, allocations: 96 / 0.7927 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.1929, allocations: 3.938 kB / 0.7927 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007852/0.1937, allocations: 119.6 kB / 0.7928 GB, free: 3.527 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.1937, allocations: 0 / 0.7928 GB, free: 3.527 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000592/0.1943, allocations: 51.94 kB / 0.7928 GB, free: 3.477 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.772e-05/0.1944, allocations: 23.92 kB / 0.7928 GB, free: 3.453 MB / 0.6075 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.0001214/0.1945, allocations: 114.9 kB / 0.793 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.729e-05/0.1946, allocations: 4 kB / 0.793 GB, free: 3.328 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.455e-05/0.1946, allocations: 11.97 kB / 0.793 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.1946, allocations: 3.938 kB / 0.793 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.1946, allocations: 4 kB / 0.793 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1946, allocations: 4 kB / 0.793 GB, free: 3.301 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001999/0.1966, allocations: 1.043 MB / 0.794 GB, free: 2.145 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1967, allocations: 3.938 kB / 0.794 GB, free: 2.141 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00078/0.1974, allocations: 107.7 kB / 0.7941 GB, free: 2.035 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.1975, allocations: 4 kB / 0.7941 GB, free: 2.031 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.46e-05/0.1975, allocations: 19.94 kB / 0.7941 GB, free: 2.012 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1975, allocations: 0 / 0.7941 GB, free: 2.012 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.1975, allocations: 3.984 kB / 0.7941 GB, free: 2.008 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00217/0.1997, allocations: 0.7917 MB / 0.7949 GB, free: 1.199 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.1998, allocations: 116.9 kB / 0.795 GB, free: 1.066 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.74e-05/0.1999, allocations: 8 kB / 0.795 GB, free: 1.059 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006396/0.2005, allocations: 47.98 kB / 0.7951 GB, free: 1.012 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.742e-05/0.2006, allocations: 23.94 kB / 0.7951 GB, free: 0.9883 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.023e-05/0.2007, allocations: 27.92 kB / 0.7951 GB, free: 0.9609 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.3e-05/0.2007, allocations: 87.22 kB / 0.7952 GB, free: 0.875 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.2007, allocations: 0 / 0.7952 GB, free: 0.875 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003328/0.2011, allocations: 56 kB / 0.7953 GB, free: 0.8203 MB / 0.6075 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.002443/0.2035, allocations: 1.341 MB / 0.7966 GB, free: 15.45 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001354/0.2049, allocations: 423.5 kB / 0.797 GB, free: 15.04 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2049, allocations: 7.938 kB / 0.797 GB, free: 15.03 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0006812/0.2056, allocations: 223.7 kB / 0.7972 GB, free: 14.81 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003253/0.2059, allocations: 9.672 kB / 0.7972 GB, free: 14.8 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007891/0.2138, allocations: 2.938 MB / 0.8001 GB, free: 11.79 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001784/0.214, allocations: 0.6924 MB / 0.8007 GB, free: 11.07 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0005916/0.2146, allocations: 92.66 kB / 0.8008 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002556/0.2149, allocations: 67.23 kB / 0.8009 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of SimCode: time 3e-07/0.2149, allocations: 0 / 0.8009 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.398/1.613, allocations: 4.552 MB / 0.8053 GB, free: 6.48 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/11.88, allocations: 6.625 kB / 0.8054 GB, free: 6.477 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check_fmu --startTime=-1.5 --stopTime=1.5 --timeout=50 --tolerance=1e-08 Buildings_8_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > Buildings_8_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1)