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.0008649/0.0008648, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005326/0.005326, allocations: 169.9 kB / 16.26 MB, free: 6.676 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.232/1.232, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001674/0.001674, allocations: 271 kB / 291.7 MB, free: 1.883 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8898/0.8898, allocations: 169.5 MB / 0.5004 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004021/0.0004021, allocations: 21.53 kB / 0.5988 GB, free: 28.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1457, allocations: 88.54 MB / 0.6852 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.0008859/0.1466, allocations: 0.4982 MB / 0.6857 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001659/0.1483, allocations: 1.48 MB / 0.6872 GB, free: 12.99 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.509e-05/0.1483, allocations: 0 / 0.6872 GB, free: 12.99 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.999e-06/0.1483, allocations: 3.938 kB / 0.6872 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.756e-05/0.1483, allocations: 0.9062 kB / 0.6872 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003073/0.1487, allocations: 111.1 kB / 0.6873 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.084e-05/0.1487, allocations: 47.91 kB / 0.6873 GB, free: 12.83 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.349e-05/0.1487, allocations: 4.844 kB / 0.6873 GB, free: 12.83 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.285e-05/0.1488, allocations: 31.86 kB / 0.6874 GB, free: 12.8 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.822e-05/0.1488, allocations: 32.5 kB / 0.6874 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.185e-05/0.1489, allocations: 4 kB / 0.6874 GB, free: 12.76 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003777/0.1493, allocations: 319.9 kB / 0.6877 GB, free: 12.45 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.674e-05/0.1493, allocations: 16.66 kB / 0.6877 GB, free: 12.43 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.444e-05/0.1493, allocations: 49.62 kB / 0.6878 GB, free: 12.38 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002428/0.1496, allocations: 213.3 kB / 0.688 GB, free: 12.17 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.1496, allocations: 0 / 0.688 GB, free: 12.17 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1496, allocations: 0 / 0.688 GB, free: 12.17 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.364e-06/0.1496, allocations: 0 / 0.688 GB, free: 12.17 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.0004885/0.1501, allocations: 389.2 kB / 0.6883 GB, free: 11.75 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.484e-05/0.1501, allocations: 12.75 kB / 0.6884 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.792e-05/0.1501, allocations: 34.75 kB / 0.6884 GB, free: 11.69 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004167/0.1506, allocations: 86.5 kB / 0.6885 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.139e-05/0.1507, allocations: 170.2 kB / 0.6886 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.1507, allocations: 8.375 kB / 0.6886 GB, free: 11.4 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.741e-05/0.1507, allocations: 4.375 kB / 0.6887 GB, free: 11.4 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003298/0.151, allocations: 124.5 kB / 0.6888 GB, free: 11.27 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.1511, allocations: 8.781 kB / 0.6888 GB, free: 11.27 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.738e-06/0.1511, allocations: 3.938 kB / 0.6888 GB, free: 11.26 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.495e-06/0.1511, allocations: 1.719 kB / 0.6888 GB, free: 11.26 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004779/0.1516, allocations: 132 kB / 0.6889 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004725/0.1521, allocations: 336.5 kB / 0.6892 GB, free: 10.76 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00062/0.1527, allocations: 186.4 kB / 0.6894 GB, free: 10.57 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002331/0.1529, allocations: 68.81 kB / 0.6895 GB, free: 10.5 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.969e-06/0.153, allocations: 0 / 0.6895 GB, free: 10.5 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.732e-05/0.153, allocations: 30.56 kB / 0.6895 GB, free: 10.46 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 2.124e-06/0.153, allocations: 4 kB / 0.6895 GB, free: 10.45 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.0179/0.1709, allocations: 3.187 MB / 0.6926 GB, free: 7.172 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.421e-05/0.1709, allocations: 63.28 kB / 0.6927 GB, free: 7.098 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.84e-05/0.171, allocations: 98 kB / 0.6928 GB, free: 6.992 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.163e-05/0.1711, allocations: 25.7 kB / 0.6928 GB, free: 6.961 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.974e-05/0.1711, allocations: 92.12 kB / 0.6929 GB, free: 6.867 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.151e-05/0.1712, allocations: 39.45 kB / 0.6929 GB, free: 6.828 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.368e-05/0.1713, allocations: 17.72 kB / 0.6929 GB, free: 6.805 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.1714, allocations: 314.8 kB / 0.6932 GB, free: 6.488 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006548/0.1721, allocations: 215.8 kB / 0.6934 GB, free: 6.277 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006336/0.1727, allocations: 219.8 kB / 0.6937 GB, free: 6.062 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001306/0.174, allocations: 443.5 kB / 0.6941 GB, free: 5.629 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.61e-07/0.174, allocations: 0 / 0.6941 GB, free: 5.629 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001482/0.1755, allocations: 0.5247 MB / 0.6946 GB, free: 5.098 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.1755, allocations: 9.812 kB / 0.6946 GB, free: 5.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.1755, allocations: 0 / 0.6946 GB, free: 5.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.1756, allocations: 4.031 kB / 0.6946 GB, free: 5.086 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007887/0.1764, allocations: 127.7 kB / 0.6947 GB, free: 4.961 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.1764, allocations: 0 / 0.6947 GB, free: 4.961 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006154/0.177, allocations: 55.94 kB / 0.6948 GB, free: 4.906 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.209e-05/0.177, allocations: 27.94 kB / 0.6948 GB, free: 4.879 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.000133/0.1772, allocations: 119.1 kB / 0.6949 GB, free: 4.754 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.159e-05/0.1773, allocations: 7.891 kB / 0.6949 GB, free: 4.746 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.461e-05/0.1773, allocations: 19.97 kB / 0.6949 GB, free: 4.727 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.1773, allocations: 3.938 kB / 0.6949 GB, free: 4.723 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.1773, allocations: 0 / 0.6949 GB, free: 4.723 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.1773, allocations: 0 / 0.6949 GB, free: 4.723 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002079/0.1794, allocations: 1.098 MB / 0.696 GB, free: 3.516 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1794, allocations: 0 / 0.696 GB, free: 3.516 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007982/0.1802, allocations: 127.7 kB / 0.6961 GB, free: 3.391 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.1802, allocations: 0 / 0.6961 GB, free: 3.391 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.508e-05/0.1803, allocations: 19.94 kB / 0.6962 GB, free: 3.371 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.1803, allocations: 4 kB / 0.6962 GB, free: 3.367 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1803, allocations: 3.984 kB / 0.6962 GB, free: 3.363 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002233/0.1825, allocations: 0.8661 MB / 0.697 GB, free: 2.48 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.1827, allocations: 113 kB / 0.6971 GB, free: 2.352 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.272e-05/0.1827, allocations: 4 kB / 0.6971 GB, free: 2.348 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006833/0.1834, allocations: 64 kB / 0.6972 GB, free: 2.285 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.496e-05/0.1835, allocations: 27.92 kB / 0.6972 GB, free: 2.258 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.321e-05/0.1836, allocations: 35.86 kB / 0.6972 GB, free: 2.223 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.469e-05/0.1836, allocations: 79.28 kB / 0.6973 GB, free: 2.145 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1836, allocations: 0 / 0.6973 GB, free: 2.145 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000328/0.184, allocations: 48 kB / 0.6974 GB, free: 2.098 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.002531/0.1865, allocations: 1.427 MB / 0.6988 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001358/0.1879, allocations: 475.5 kB / 0.6992 GB, free: 184 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.1879, allocations: 0 / 0.6992 GB, free: 184 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000694/0.1886, allocations: 247.7 kB / 0.6995 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/0.1889, allocations: 15.92 kB / 0.6995 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008118/0.197, allocations: 3.17 MB / 0.7026 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001995/0.1972, allocations: 0.6965 MB / 0.7032 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0006144/0.1978, allocations: 88.66 kB / 0.7033 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002556/0.1981, allocations: 67.3 kB / 0.7034 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of SimCode: time 4.21e-07/0.1981, allocations: 0 / 0.7034 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5463/0.7444, allocations: 4.248 MB / 0.7075 GB, free: 7.73 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002062/0.7447, allocations: 236.4 kB / 0.7078 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.669/2.414, allocations: 0 / 0.7078 GB, free: 7.477 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 & /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)