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.001124/0.001124, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001171/0.001171, allocations: 201.5 kB / 16.14 MB, free: 6.797 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.123/1.123, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00186/0.00186, allocations: 285.6 kB / 290.2 MB, free: 2.195 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8/0.8, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 99.81 kB / 0.5946 GB, free: 28.19 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1184, allocations: 86.98 MB / 0.6796 GB, free: 1.066 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001723/0.1201, allocations: 0.8361 MB / 0.6804 GB, free: 244 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001515/0.1217, allocations: 1.495 MB / 0.6818 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.935e-05/0.1217, allocations: 2.625 kB / 0.6818 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.856e-05/0.1217, allocations: 4 kB / 0.6818 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.274e-05/0.1218, allocations: 3.938 kB / 0.6818 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003454/0.1221, allocations: 109.6 kB / 0.682 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.829e-05/0.1222, allocations: 51.89 kB / 0.682 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.32e-05/0.1222, allocations: 5 kB / 0.682 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.6e-05/0.1223, allocations: 28.78 kB / 0.682 GB, free: 14.53 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.086e-05/0.1223, allocations: 27.91 kB / 0.6821 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.475e-05/0.1224, allocations: 4.625 kB / 0.6821 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000371/0.1227, allocations: 315.3 kB / 0.6824 GB, free: 14.19 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.028e-05/0.1228, allocations: 21.33 kB / 0.6824 GB, free: 14.17 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.902e-05/0.1228, allocations: 27.84 kB / 0.6824 GB, free: 14.14 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000265/0.1231, allocations: 203.5 kB / 0.6826 GB, free: 13.95 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.1231, allocations: 4 kB / 0.6826 GB, free: 13.94 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.61e-07/0.1231, allocations: 0.6562 kB / 0.6826 GB, free: 13.94 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.056e-06/0.1231, allocations: 4 kB / 0.6826 GB, free: 13.94 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.0005316/0.1236, allocations: 395.4 kB / 0.683 GB, free: 13.5 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.205e-05/0.1237, allocations: 12.03 kB / 0.683 GB, free: 13.49 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.301e-05/0.1237, allocations: 38.73 kB / 0.683 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004089/0.1241, allocations: 76.75 kB / 0.6831 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.713e-05/0.1242, allocations: 160.4 kB / 0.6833 GB, free: 13.18 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.24e-05/0.1243, allocations: 8.375 kB / 0.6833 GB, free: 13.17 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.825e-05/0.1243, allocations: 4.375 kB / 0.6833 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003195/0.1246, allocations: 120.5 kB / 0.6834 GB, free: 13.04 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.1246, allocations: 3.938 kB / 0.6834 GB, free: 13.04 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/0.1246, allocations: 4 kB / 0.6834 GB, free: 13.04 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.942e-06/0.1246, allocations: 4 kB / 0.6834 GB, free: 13.03 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004299/0.1251, allocations: 107.9 kB / 0.6835 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004685/0.1256, allocations: 336.6 kB / 0.6838 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005785/0.1261, allocations: 150.4 kB / 0.684 GB, free: 12.39 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002137/0.1264, allocations: 64.8 kB / 0.684 GB, free: 12.32 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.245e-05/0.1264, allocations: 0 / 0.684 GB, free: 12.32 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.986e-05/0.1264, allocations: 34.56 kB / 0.6841 GB, free: 12.28 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 8.32e-07/0.1264, allocations: 0 / 0.6841 GB, free: 12.28 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.01784/0.1443, allocations: 2.838 MB / 0.6868 GB, free: 9.348 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.1443, allocations: 59.28 kB / 0.6869 GB, free: 9.277 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.396e-05/0.1444, allocations: 97.95 kB / 0.687 GB, free: 9.172 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.453e-05/0.1444, allocations: 33.64 kB / 0.687 GB, free: 9.133 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.978e-05/0.1445, allocations: 88.12 kB / 0.6871 GB, free: 9.043 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.292e-05/0.1445, allocations: 39.36 kB / 0.6871 GB, free: 9.004 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001465/0.1447, allocations: 69.58 kB / 0.6872 GB, free: 8.93 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.38e-05/0.1448, allocations: 318.8 kB / 0.6875 GB, free: 8.609 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005997/0.1454, allocations: 191.8 kB / 0.6877 GB, free: 8.422 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005889/0.146, allocations: 187.8 kB / 0.6879 GB, free: 8.238 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001194/0.1472, allocations: 396.5 kB / 0.6883 GB, free: 7.848 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.1472, allocations: 0 / 0.6883 GB, free: 7.848 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00139/0.1486, allocations: 476.5 kB / 0.6887 GB, free: 7.379 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.1486, allocations: 11.94 kB / 0.6887 GB, free: 7.367 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.417e-06/0.1486, allocations: 0 / 0.6887 GB, free: 7.367 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.606e-06/0.1486, allocations: 4 kB / 0.6887 GB, free: 7.363 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007874/0.1494, allocations: 103.7 kB / 0.6888 GB, free: 7.262 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.1494, allocations: 4.469 kB / 0.6888 GB, free: 7.258 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006115/0.15, allocations: 43.94 kB / 0.6889 GB, free: 7.215 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.652e-05/0.1501, allocations: 31.92 kB / 0.6889 GB, free: 7.184 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.00012/0.1502, allocations: 111.2 kB / 0.689 GB, free: 7.066 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.76e-05/0.1503, allocations: 7.906 kB / 0.689 GB, free: 7.059 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.995e-05/0.1504, allocations: 11.97 kB / 0.689 GB, free: 7.047 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.1504, allocations: 7.938 kB / 0.689 GB, free: 7.039 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.1504, allocations: 0 / 0.689 GB, free: 7.039 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.1504, allocations: 0 / 0.689 GB, free: 7.039 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001934/0.1523, allocations: 1.047 MB / 0.6901 GB, free: 5.883 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.1523, allocations: 4 kB / 0.6901 GB, free: 5.879 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007945/0.1531, allocations: 111.7 kB / 0.6902 GB, free: 5.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.1531, allocations: 0 / 0.6902 GB, free: 5.77 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.04e-05/0.1532, allocations: 19.94 kB / 0.6902 GB, free: 5.75 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.1532, allocations: 3.938 kB / 0.6902 GB, free: 5.746 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.1532, allocations: 11.98 kB / 0.6902 GB, free: 5.734 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002101/0.1553, allocations: 0.7881 MB / 0.691 GB, free: 4.93 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001296/0.1555, allocations: 128.9 kB / 0.6911 GB, free: 4.785 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.211e-05/0.1555, allocations: 0 / 0.6911 GB, free: 4.785 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006724/0.1562, allocations: 51.92 kB / 0.6911 GB, free: 4.734 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.237e-05/0.1563, allocations: 23.92 kB / 0.6912 GB, free: 4.711 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.739e-05/0.1564, allocations: 27.94 kB / 0.6912 GB, free: 4.684 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.13e-05/0.1564, allocations: 79.28 kB / 0.6913 GB, free: 4.605 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1564, allocations: 0 / 0.6913 GB, free: 4.605 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003296/0.1567, allocations: 52 kB / 0.6913 GB, free: 4.555 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.002381/0.1591, allocations: 1.344 MB / 0.6926 GB, free: 3.184 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00127/0.1604, allocations: 431.5 kB / 0.693 GB, free: 2.762 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1604, allocations: 0 / 0.693 GB, free: 2.762 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000641/0.1611, allocations: 215.7 kB / 0.6932 GB, free: 2.551 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002885/0.1614, allocations: 11.94 kB / 0.6933 GB, free: 2.539 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007778/0.1692, allocations: 2.959 MB / 0.6961 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002084/0.1694, allocations: 0.6965 MB / 0.6968 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0006384/0.17, allocations: 88.66 kB / 0.6969 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002687/0.1703, allocations: 63.3 kB / 0.697 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1703, allocations: 3.938 kB / 0.697 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9535/1.124, allocations: 4.314 MB / 0.7012 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002034/1.124, allocations: 234.6 kB / 0.7014 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.199/3.323, allocations: 0 / 0.7014 GB, free: 10.21 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)