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.0008305/0.0008336, 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.005177/0.005177, allocations: 170 kB / 16.26 MB, free: 6.613 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.27/1.27, allocations: 223.2 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001659/0.001659, allocations: 274.4 kB / 291.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8707/0.8707, allocations: 169.5 MB / 0.5004 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004514/0.0004514, allocations: 17.52 kB / 0.5988 GB, free: 28.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1443, allocations: 88.54 MB / 0.6852 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.0005932/0.145, allocations: 317.4 kB / 0.6855 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001558/0.1465, allocations: 1.466 MB / 0.687 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.212e-05/0.1465, allocations: 0 / 0.687 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.13e-05/0.1466, allocations: 0 / 0.687 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.158e-05/0.1466, allocations: 0 / 0.687 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003559/0.147, allocations: 113.2 kB / 0.6871 GB, free: 13.05 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.754e-05/0.147, allocations: 28.48 kB / 0.6871 GB, free: 13.03 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.444e-05/0.147, allocations: 4 kB / 0.6871 GB, free: 13.02 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.486e-05/0.1471, allocations: 17.97 kB / 0.6871 GB, free: 13.01 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.047e-05/0.1472, allocations: 31.89 kB / 0.6872 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.219e-05/0.1472, allocations: 0 / 0.6872 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003851/0.1476, allocations: 307.4 kB / 0.6875 GB, free: 12.68 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.691e-05/0.1476, allocations: 15.97 kB / 0.6875 GB, free: 12.66 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.054e-05/0.1476, allocations: 34.19 kB / 0.6875 GB, free: 12.62 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002406/0.1479, allocations: 185.2 kB / 0.6877 GB, free: 12.44 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.1479, allocations: 0 / 0.6877 GB, free: 12.44 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1479, allocations: 0 / 0.6877 GB, free: 12.44 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.905e-06/0.1479, allocations: 0 / 0.6877 GB, free: 12.44 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.000443/0.1484, allocations: 365.5 kB / 0.688 GB, free: 12.04 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.1484, allocations: 11.97 kB / 0.688 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.883e-05/0.1484, allocations: 34.69 kB / 0.6881 GB, free: 11.98 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004402/0.1489, allocations: 84.81 kB / 0.6882 GB, free: 11.91 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.947e-05/0.149, allocations: 168.3 kB / 0.6883 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.149, allocations: 4.375 kB / 0.6883 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.73e-05/0.149, allocations: 384 / 0.6883 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002335/0.1493, allocations: 83.75 kB / 0.6884 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.1493, allocations: 4 kB / 0.6884 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.1493, allocations: 9.578 kB / 0.6884 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.1493, allocations: 0 / 0.6884 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002962/0.1496, allocations: 75.75 kB / 0.6885 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001522/0.1498, allocations: 173.6 kB / 0.6887 GB, free: 11.32 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005565/0.1503, allocations: 142.5 kB / 0.6888 GB, free: 11.17 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001694/0.1505, allocations: 44.92 kB / 0.6888 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004386/0.151, allocations: 173 kB / 0.689 GB, free: 10.93 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.151, allocations: 38.5 kB / 0.689 GB, free: 10.89 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.151, allocations: 4 kB / 0.689 GB, free: 10.88 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.001076/0.1521, allocations: 450.1 kB / 0.6895 GB, free: 10.39 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.51e-05/0.1521, allocations: 51.41 kB / 0.6895 GB, free: 10.33 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.963e-05/0.1522, allocations: 97.86 kB / 0.6896 GB, free: 10.22 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.1522, allocations: 25.7 kB / 0.6896 GB, free: 10.19 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.961e-05/0.1522, allocations: 84.08 kB / 0.6897 GB, free: 10.11 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.477e-05/0.1523, allocations: 15.81 kB / 0.6897 GB, free: 10.09 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.778e-05/0.1523, allocations: 13.7 kB / 0.6897 GB, free: 10.07 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.818e-05/0.1524, allocations: 323 kB / 0.6901 GB, free: 9.746 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001537/0.1525, allocations: 35.97 kB / 0.6901 GB, free: 9.711 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/0.1527, allocations: 43.97 kB / 0.6901 GB, free: 9.668 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002979/0.153, allocations: 88.8 kB / 0.6902 GB, free: 9.578 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.11e-07/0.153, allocations: 0 / 0.6902 GB, free: 9.578 MB / 494.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003565/0.1534, allocations: 129.6 kB / 0.6903 GB, free: 9.445 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.1534, allocations: 10.19 kB / 0.6903 GB, free: 9.438 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.1534, allocations: 3.984 kB / 0.6903 GB, free: 9.434 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.275e-06/0.1534, allocations: 0 / 0.6903 GB, free: 9.434 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.1536, allocations: 31.91 kB / 0.6904 GB, free: 9.402 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.1536, allocations: 0 / 0.6904 GB, free: 9.402 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.1537, allocations: 23.92 kB / 0.6904 GB, free: 9.379 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.428e-06/0.1537, allocations: 4 kB / 0.6904 GB, free: 9.375 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.552e-05/0.1538, allocations: 111.2 kB / 0.6905 GB, free: 9.258 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.416e-05/0.1538, allocations: 7.844 kB / 0.6905 GB, free: 9.25 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004326/0.1542, allocations: 149.2 kB / 0.6907 GB, free: 9.098 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1542, allocations: 0 / 0.6907 GB, free: 9.098 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.1543, allocations: 0 / 0.6907 GB, free: 9.098 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.1543, allocations: 0 / 0.6907 GB, free: 9.098 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000119/0.1544, allocations: 173.6 kB / 0.6908 GB, free: 8.879 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.1544, allocations: 7.938 kB / 0.6908 GB, free: 8.871 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001542/0.1546, allocations: 31.91 kB / 0.6909 GB, free: 8.84 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.1546, allocations: 4.312 kB / 0.6909 GB, free: 8.836 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.818e-06/0.1546, allocations: 0 / 0.6909 GB, free: 8.836 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.1546, allocations: 4 kB / 0.6909 GB, free: 8.832 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1546, allocations: 0 / 0.6909 GB, free: 8.832 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005357/0.1551, allocations: 201 kB / 0.6911 GB, free: 8.617 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.023e-05/0.1552, allocations: 96.97 kB / 0.6912 GB, free: 8.504 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.52e-05/0.1552, allocations: 0 / 0.6912 GB, free: 8.504 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000118/0.1554, allocations: 20.05 kB / 0.6912 GB, free: 8.484 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.16e-05/0.1554, allocations: 4 kB / 0.6912 GB, free: 8.48 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.796e-06/0.1554, allocations: 0 / 0.6912 GB, free: 8.48 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.162e-05/0.1554, allocations: 91.2 kB / 0.6913 GB, free: 8.391 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1554, allocations: 0 / 0.6913 GB, free: 8.391 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002026/0.1556, allocations: 24 kB / 0.6913 GB, free: 8.367 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.000823/0.1565, allocations: 0.7669 MB / 0.692 GB, free: 7.57 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003431/0.1568, allocations: 95.94 kB / 0.6921 GB, free: 7.477 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.1568, allocations: 0 / 0.6921 GB, free: 7.477 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001625/0.157, allocations: 55.95 kB / 0.6922 GB, free: 7.422 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001371/0.1571, allocations: 8.688 kB / 0.6922 GB, free: 7.414 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.159, allocations: 1.41 MB / 0.6936 GB, free: 5.926 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001926/0.1592, allocations: 0.677 MB / 0.6942 GB, free: 5.223 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001059/0.1593, allocations: 19.98 kB / 0.6942 GB, free: 5.203 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.27e-05/0.1594, allocations: 15.42 kB / 0.6943 GB, free: 5.188 MB / 494.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1594, allocations: 4 kB / 0.6943 GB, free: 5.184 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5644/0.7238, allocations: 1.859 MB / 0.6961 GB, free: 3.504 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002335/0.7241, allocations: 227 kB / 0.6963 GB, free: 3.254 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.57/2.294, allocations: 4.062 kB / 0.6963 GB, free: 3.25 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)