Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.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.InverseXDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",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.001321/0.001321, allocations: 108 kB / 15.6 MB, free: 132 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.001541/0.001541, allocations: 194.9 kB / 16.53 MB, free: 6.391 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.281/1.281, 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.002167/0.002167, allocations: 286.7 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9256/0.9256, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00174/0.00174, allocations: 97.14 kB / 0.5954 GB, free: 27.84 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1461/0.1479, allocations: 86.98 MB / 0.6803 GB, free: 0.543 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.00185/0.1498, allocations: 0.5911 MB / 0.6809 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001639/0.1515, allocations: 1.452 MB / 0.6823 GB, free: 14.49 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.011e-05/0.1515, allocations: 0 / 0.6823 GB, free: 14.49 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.032e-05/0.1515, allocations: 0 / 0.6823 GB, free: 14.49 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.763e-05/0.1516, allocations: 0.5312 kB / 0.6823 GB, free: 14.49 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004772/0.152, allocations: 145.6 kB / 0.6824 GB, free: 14.35 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.316e-05/0.1521, allocations: 27.92 kB / 0.6825 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.913e-05/0.1521, allocations: 3.984 kB / 0.6825 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.799e-05/0.1522, allocations: 23.92 kB / 0.6825 GB, free: 14.3 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.073e-05/0.1523, allocations: 27.91 kB / 0.6825 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.717e-05/0.1523, allocations: 4 kB / 0.6825 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004335/0.1527, allocations: 315.3 kB / 0.6828 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.342e-05/0.1528, allocations: 0 / 0.6828 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.647e-05/0.1528, allocations: 15.92 kB / 0.6828 GB, free: 13.94 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002613/0.1531, allocations: 188 kB / 0.683 GB, free: 13.76 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1531, allocations: 0 / 0.683 GB, free: 13.76 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1531, allocations: 0 / 0.683 GB, free: 13.76 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.1531, allocations: 0 / 0.683 GB, free: 13.76 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005444/0.1536, allocations: 373.4 kB / 0.6834 GB, free: 13.35 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.1537, allocations: 8.031 kB / 0.6834 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.448e-05/0.1537, allocations: 34.69 kB / 0.6834 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004806/0.1542, allocations: 72.75 kB / 0.6835 GB, free: 13.23 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.892e-05/0.1543, allocations: 168.3 kB / 0.6836 GB, free: 13.02 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.1543, allocations: 384 / 0.6836 GB, free: 13.02 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.327e-05/0.1544, allocations: 4.375 kB / 0.6836 GB, free: 13.02 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002557/0.1546, allocations: 85.69 kB / 0.6837 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.1546, allocations: 0 / 0.6837 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.1547, allocations: 0 / 0.6837 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.1547, allocations: 0 / 0.6837 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003018/0.155, allocations: 67.92 kB / 0.6838 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001721/0.1552, allocations: 161.7 kB / 0.6839 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005952/0.1558, allocations: 118.6 kB / 0.6841 GB, free: 12.53 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001687/0.1559, allocations: 48.91 kB / 0.6841 GB, free: 12.48 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004604/0.1564, allocations: 157 kB / 0.6843 GB, free: 12.31 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.162e-05/0.1564, allocations: 42.44 kB / 0.6843 GB, free: 12.26 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.1564, allocations: 0 / 0.6843 GB, free: 12.26 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.001152/0.1576, allocations: 410.1 kB / 0.6847 GB, free: 11.8 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.973e-05/0.1576, allocations: 55.41 kB / 0.6847 GB, free: 11.74 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.427e-05/0.1577, allocations: 93.86 kB / 0.6848 GB, free: 11.64 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/0.1577, allocations: 25.7 kB / 0.6848 GB, free: 11.61 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.558e-05/0.1578, allocations: 84.14 kB / 0.6849 GB, free: 11.52 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.596e-05/0.1578, allocations: 15.8 kB / 0.6849 GB, free: 11.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.37e-05/0.1578, allocations: 21.72 kB / 0.685 GB, free: 11.48 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.158, allocations: 319 kB / 0.6853 GB, free: 11.16 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000164/0.1582, allocations: 31.97 kB / 0.6853 GB, free: 11.12 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001507/0.1583, allocations: 35.97 kB / 0.6853 GB, free: 11.09 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002994/0.1586, allocations: 76.8 kB / 0.6854 GB, free: 11.01 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.1587, allocations: 0 / 0.6854 GB, free: 11.01 MB / 494.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003691/0.159, allocations: 121.4 kB / 0.6855 GB, free: 10.89 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.1591, allocations: 8 kB / 0.6855 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.9e-06/0.1591, allocations: 4.25 kB / 0.6855 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.1591, allocations: 0 / 0.6855 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.1592, allocations: 27.97 kB / 0.6856 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.1592, allocations: 0 / 0.6856 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.1593, allocations: 19.92 kB / 0.6856 GB, free: 10.83 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.285e-06/0.1594, allocations: 0 / 0.6856 GB, free: 10.83 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 (6): * Single equations (assignments): 6 * 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 6.987e-05/0.1594, allocations: 115.2 kB / 0.6857 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.678e-05/0.1595, allocations: 3.938 kB / 0.6857 GB, free: 10.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004497/0.1599, allocations: 137.1 kB / 0.6858 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.1599, allocations: 7.938 kB / 0.6858 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1599, allocations: 0 / 0.6858 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.16, allocations: 4 kB / 0.6858 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001291/0.1601, allocations: 161.7 kB / 0.686 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.1601, allocations: 3.938 kB / 0.686 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001527/0.1603, allocations: 23.97 kB / 0.686 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.1603, allocations: 4 kB / 0.686 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.1603, allocations: 0 / 0.686 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.1603, allocations: 0 / 0.686 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1603, allocations: 0 / 0.686 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005656/0.1609, allocations: 189 kB / 0.6862 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.369e-05/0.1609, allocations: 92.97 kB / 0.6863 GB, free: 10 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.755e-05/0.161, allocations: 0 / 0.6863 GB, free: 10 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001242/0.1611, allocations: 19.97 kB / 0.6863 GB, free: 9.98 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.379e-05/0.1611, allocations: 0 / 0.6863 GB, free: 9.98 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.1611, allocations: 8.062 kB / 0.6863 GB, free: 9.973 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.003e-05/0.1612, allocations: 79.28 kB / 0.6864 GB, free: 9.895 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1612, allocations: 0 / 0.6864 GB, free: 9.895 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002257/0.1614, allocations: 31.98 kB / 0.6864 GB, free: 9.863 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0009046/0.1623, allocations: 0.7531 MB / 0.6872 GB, free: 9.078 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003691/0.1627, allocations: 79.98 kB / 0.6872 GB, free: 9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.1627, allocations: 4 kB / 0.6872 GB, free: 8.996 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001669/0.1629, allocations: 47.89 kB / 0.6873 GB, free: 8.949 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001557/0.1631, allocations: 8.688 kB / 0.6873 GB, free: 8.941 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.165, allocations: 1.352 MB / 0.6886 GB, free: 7.508 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002299/0.1653, allocations: 0.6807 MB / 0.6893 GB, free: 6.801 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001067/0.1654, allocations: 23.92 kB / 0.6893 GB, free: 6.777 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.548e-05/0.1655, allocations: 19.44 kB / 0.6893 GB, free: 6.758 MB / 494.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1655, allocations: 0 / 0.6893 GB, free: 6.758 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01858/0.1841, allocations: 2.048 MB / 0.6913 GB, free: 4.844 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.84/7.024, allocations: 11 kB / 0.6913 GB, free: 4.836 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)