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.001157/0.001157, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001163/0.001163, allocations: 195.7 kB / 16.25 MB, free: 6.621 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.164/1.164, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001917/0.001917, allocations: 290.5 kB / 290.3 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8564/0.8564, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 96.95 kB / 0.5948 GB, free: 28.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1256, allocations: 86.98 MB / 0.6797 GB, free: 0.9453 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001536/0.1272, allocations: 0.6543 MB / 0.6804 GB, free: 304 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001404/0.1286, allocations: 1.451 MB / 0.6818 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.571e-05/0.1286, allocations: 0 / 0.6818 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.151e-05/0.1286, allocations: 0 / 0.6818 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.936e-05/0.1287, allocations: 3.938 kB / 0.6818 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003839/0.1291, allocations: 123.7 kB / 0.6819 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.765e-05/0.1291, allocations: 27.92 kB / 0.6819 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.14e-05/0.1292, allocations: 0 / 0.6819 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.514e-05/0.1292, allocations: 19.98 kB / 0.682 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.235e-05/0.1293, allocations: 27.89 kB / 0.682 GB, free: 14.63 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.32e-05/0.1293, allocations: 4 kB / 0.682 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003636/0.1297, allocations: 315.4 kB / 0.6823 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.335e-05/0.1297, allocations: 3.984 kB / 0.6823 GB, free: 14.31 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.332e-05/0.1297, allocations: 15.92 kB / 0.6823 GB, free: 14.3 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002239/0.1299, allocations: 188 kB / 0.6825 GB, free: 14.11 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1299, allocations: 0 / 0.6825 GB, free: 14.11 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.13, allocations: 0 / 0.6825 GB, free: 14.11 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.13, allocations: 0 / 0.6825 GB, free: 14.11 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.0004308/0.1304, allocations: 367.5 kB / 0.6828 GB, free: 13.71 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.079e-05/0.1304, allocations: 11.97 kB / 0.6829 GB, free: 13.7 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.622e-05/0.1305, allocations: 30.75 kB / 0.6829 GB, free: 13.66 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004193/0.1309, allocations: 76.75 kB / 0.683 GB, free: 13.58 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.757e-05/0.131, allocations: 160.4 kB / 0.6831 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/0.131, allocations: 4.375 kB / 0.6831 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.93e-05/0.131, allocations: 8.312 kB / 0.6831 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002204/0.1312, allocations: 77.75 kB / 0.6832 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.1313, allocations: 0 / 0.6832 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.1313, allocations: 0 / 0.6832 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.156e-06/0.1313, allocations: 0 / 0.6832 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002621/0.1316, allocations: 63.94 kB / 0.6833 GB, free: 13.23 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001446/0.1317, allocations: 169.6 kB / 0.6834 GB, free: 13.02 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005236/0.1322, allocations: 126.5 kB / 0.6835 GB, free: 12.88 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.1324, allocations: 40.92 kB / 0.6836 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004008/0.1328, allocations: 153 kB / 0.6837 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.1328, allocations: 42.48 kB / 0.6838 GB, free: 12.62 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 2.364e-06/0.1328, allocations: 7.922 kB / 0.6838 GB, free: 12.61 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.001022/0.1339, allocations: 410.1 kB / 0.6842 GB, free: 12.16 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.472e-05/0.1339, allocations: 55.41 kB / 0.6842 GB, free: 12.09 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.773e-05/0.134, allocations: 89.86 kB / 0.6843 GB, free: 12 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.134, allocations: 33.83 kB / 0.6843 GB, free: 11.96 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.265e-05/0.134, allocations: 80.14 kB / 0.6844 GB, free: 11.88 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.327e-05/0.134, allocations: 15.8 kB / 0.6844 GB, free: 11.86 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.281e-05/0.1341, allocations: 21.72 kB / 0.6845 GB, free: 11.83 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.353e-05/0.1342, allocations: 310.8 kB / 0.6847 GB, free: 11.52 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.1343, allocations: 39.95 kB / 0.6848 GB, free: 11.48 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/0.1345, allocations: 35.97 kB / 0.6848 GB, free: 11.45 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002656/0.1347, allocations: 84.92 kB / 0.6849 GB, free: 11.36 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.82e-07/0.1347, allocations: 0 / 0.6849 GB, free: 11.36 MB / 494.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003219/0.1351, allocations: 117.5 kB / 0.685 GB, free: 11.24 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.1351, allocations: 8 kB / 0.685 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.075e-06/0.1351, allocations: 0 / 0.685 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.218e-06/0.1351, allocations: 0 / 0.685 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.1352, allocations: 19.98 kB / 0.685 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.147e-06/0.1353, allocations: 7.938 kB / 0.685 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.333e-05/0.1354, allocations: 15.98 kB / 0.6851 GB, free: 11.19 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.13e-05/0.1354, allocations: 7.984 kB / 0.6851 GB, free: 11.18 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.154e-05/0.1354, allocations: 111.1 kB / 0.6852 GB, free: 11.06 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.531e-05/0.1355, allocations: 3.938 kB / 0.6852 GB, free: 11.06 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004078/0.1359, allocations: 141.2 kB / 0.6853 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.1359, allocations: 0 / 0.6853 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.1359, allocations: 0 / 0.6853 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.1359, allocations: 0 / 0.6853 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001091/0.136, allocations: 161.7 kB / 0.6855 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.136, allocations: 3.938 kB / 0.6855 GB, free: 10.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001431/0.1362, allocations: 27.98 kB / 0.6855 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1362, allocations: 0 / 0.6855 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.1362, allocations: 0 / 0.6855 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.1362, allocations: 3.984 kB / 0.6855 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1362, allocations: 0 / 0.6855 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004997/0.1367, allocations: 185 kB / 0.6857 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.307e-05/0.1368, allocations: 93.16 kB / 0.6858 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.1368, allocations: 8.062 kB / 0.6858 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.1369, allocations: 19.92 kB / 0.6858 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.318e-05/0.1369, allocations: 7.984 kB / 0.6858 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/0.137, allocations: 0 / 0.6858 GB, free: 10.33 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.589e-05/0.137, allocations: 79.28 kB / 0.6859 GB, free: 10.25 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.137, allocations: 0 / 0.6859 GB, free: 10.25 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002085/0.1372, allocations: 35.98 kB / 0.6859 GB, free: 10.21 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.0007771/0.138, allocations: 0.7452 MB / 0.6866 GB, free: 9.438 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003385/0.1383, allocations: 87.98 kB / 0.6867 GB, free: 9.352 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1384, allocations: 0 / 0.6867 GB, free: 9.352 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001565/0.1385, allocations: 51.89 kB / 0.6868 GB, free: 9.301 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00014/0.1387, allocations: 7.938 kB / 0.6868 GB, free: 9.293 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001716/0.1404, allocations: 1.356 MB / 0.6881 GB, free: 7.855 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001709/0.1406, allocations: 0.6846 MB / 0.6888 GB, free: 7.145 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001054/0.1407, allocations: 16 kB / 0.6888 GB, free: 7.129 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.265e-05/0.1407, allocations: 18.17 kB / 0.6888 GB, free: 7.113 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1407, allocations: 0 / 0.6888 GB, free: 7.113 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6277/0.7684, allocations: 1.964 MB / 0.6907 GB, free: 5.324 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001981/0.7687, allocations: 242.5 kB / 0.691 GB, free: 5.062 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.707/2.475, allocations: 0 / 0.691 GB, free: 5.062 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)