Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXRegularized.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.InverseXRegularized,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXRegularized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.InverseXRegularized,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXRegularized",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.00125/0.001249, allocations: 108 kB / 15.61 MB, free: 144 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.00119/0.00119, allocations: 194 kB / 16.53 MB, free: 6.66 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.272/1.272, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002165/0.002165, allocations: 290.6 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8918/0.8918, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001648, allocations: 103.9 kB / 0.5954 GB, free: 27.84 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1297, allocations: 86.98 MB / 0.6803 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXRegularized): time 0.001701/0.1314, allocations: 0.6232 MB / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001487/0.1329, allocations: 1.458 MB / 0.6823 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.197e-05/0.1329, allocations: 0 / 0.6823 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.025e-05/0.1329, allocations: 0 / 0.6823 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.232e-05/0.133, allocations: 7.938 kB / 0.6823 GB, free: 14.47 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003469/0.1334, allocations: 119.5 kB / 0.6825 GB, free: 14.35 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.053e-05/0.1334, allocations: 27.97 kB / 0.6825 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.01e-05/0.1335, allocations: 11.98 kB / 0.6825 GB, free: 14.31 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.015e-05/0.1335, allocations: 19.88 kB / 0.6825 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.688e-05/0.1336, allocations: 19.91 kB / 0.6825 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.233e-05/0.1336, allocations: 0 / 0.6825 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004061/0.134, allocations: 311.4 kB / 0.6828 GB, free: 13.97 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.491e-05/0.134, allocations: 11.92 kB / 0.6828 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.052e-05/0.134, allocations: 11.94 kB / 0.6828 GB, free: 13.95 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002485/0.1343, allocations: 183.9 kB / 0.683 GB, free: 13.77 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/0.1343, allocations: 11.98 kB / 0.683 GB, free: 13.75 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.074e-06/0.1343, allocations: 4 kB / 0.683 GB, free: 13.75 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.1343, allocations: 3.938 kB / 0.683 GB, free: 13.75 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004176/0.1348, allocations: 377.2 kB / 0.6834 GB, free: 13.33 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/0.1348, allocations: 8.031 kB / 0.6834 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.799e-05/0.1348, allocations: 30.75 kB / 0.6834 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003674/0.1352, allocations: 64.77 kB / 0.6835 GB, free: 13.22 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.1353, allocations: 172.4 kB / 0.6837 GB, free: 13.02 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.1353, allocations: 384 / 0.6837 GB, free: 13.02 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.041e-05/0.1354, allocations: 8.281 kB / 0.6837 GB, free: 13.01 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002519/0.1356, allocations: 77.77 kB / 0.6837 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.1356, allocations: 0 / 0.6837 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.1357, allocations: 4 kB / 0.6838 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-06/0.1357, allocations: 0 / 0.6838 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003444/0.136, allocations: 75.86 kB / 0.6838 GB, free: 12.85 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001539/0.1362, allocations: 169.7 kB / 0.684 GB, free: 12.63 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005215/0.1367, allocations: 130.5 kB / 0.6841 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/0.1369, allocations: 36.95 kB / 0.6841 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.847e-05/0.1369, allocations: 7.984 kB / 0.6842 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.1369, allocations: 38.5 kB / 0.6842 GB, free: 12.4 MB / 494.1 MB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/0.137, allocations: 0 / 0.6842 GB, free: 12.4 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=9): time 0.003877/0.1408, allocations: 0.7817 MB / 0.685 GB, free: 11.61 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.655e-05/0.1409, allocations: 55.41 kB / 0.685 GB, free: 11.55 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.204e-05/0.1409, allocations: 113.8 kB / 0.6851 GB, free: 11.43 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.141, allocations: 25.7 kB / 0.6851 GB, free: 11.39 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.717e-05/0.141, allocations: 88.14 kB / 0.6852 GB, free: 11.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.665e-05/0.1411, allocations: 31.55 kB / 0.6853 GB, free: 11.27 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.277e-05/0.1411, allocations: 25.7 kB / 0.6853 GB, free: 11.24 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.58e-05/0.1412, allocations: 318.8 kB / 0.6856 GB, free: 10.92 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004229/0.1416, allocations: 95.89 kB / 0.6857 GB, free: 10.83 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004109/0.142, allocations: 99.83 kB / 0.6858 GB, free: 10.73 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007953/0.1429, allocations: 192.7 kB / 0.686 GB, free: 10.54 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1429, allocations: 3.938 kB / 0.686 GB, free: 10.54 MB / 494.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0008955/0.1438, allocations: 241.3 kB / 0.6862 GB, free: 10.29 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/0.1438, allocations: 8 kB / 0.6862 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.1438, allocations: 0 / 0.6862 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.008e-05/0.1438, allocations: 7.938 kB / 0.6862 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002952/0.1441, allocations: 47.94 kB / 0.6862 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.1441, allocations: 4 kB / 0.6863 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002174/0.1444, allocations: 39.95 kB / 0.6863 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.1444, allocations: 4.375 kB / 0.6863 GB, free: 10.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 (9): * Single equations (assignments): 9 * 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 7.212e-05/0.1445, allocations: 123 kB / 0.6864 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.108e-05/0.1445, allocations: 8 kB / 0.6864 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.635e-05/0.1445, allocations: 8.375 kB / 0.6864 GB, free: 10.04 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.1445, allocations: 7.938 kB / 0.6864 GB, free: 10.03 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.1445, allocations: 0 / 0.6864 GB, free: 10.03 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.1445, allocations: 0 / 0.6864 GB, free: 10.03 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001531/0.1461, allocations: 0.5935 MB / 0.687 GB, free: 9.375 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1461, allocations: 0.75 kB / 0.687 GB, free: 9.375 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000257/0.1464, allocations: 56 kB / 0.6871 GB, free: 9.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.1464, allocations: 7.938 kB / 0.6871 GB, free: 9.312 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.1464, allocations: 7.984 kB / 0.6871 GB, free: 9.305 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1464, allocations: 0 / 0.6871 GB, free: 9.305 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.1464, allocations: 11.94 kB / 0.6871 GB, free: 9.293 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009047/0.1473, allocations: 336.9 kB / 0.6874 GB, free: 8.941 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.805e-05/0.1474, allocations: 85.11 kB / 0.6875 GB, free: 8.84 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.153e-05/0.1474, allocations: 0 / 0.6875 GB, free: 8.84 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002525/0.1476, allocations: 39.95 kB / 0.6875 GB, free: 8.801 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.636e-05/0.1477, allocations: 15.91 kB / 0.6876 GB, free: 8.785 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.159e-05/0.1477, allocations: 8 kB / 0.6876 GB, free: 8.777 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.278e-05/0.1478, allocations: 91.27 kB / 0.6876 GB, free: 8.688 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1478, allocations: 0 / 0.6876 GB, free: 8.688 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002662/0.148, allocations: 35.98 kB / 0.6877 GB, free: 8.652 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (9): * Single equations (assignments): 9 * 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.001203/0.1492, allocations: 0.9058 MB / 0.6886 GB, free: 7.715 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00087/0.1501, allocations: 207.7 kB / 0.6888 GB, free: 7.512 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.1501, allocations: 0 / 0.6888 GB, free: 7.512 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004287/0.1506, allocations: 111.9 kB / 0.6889 GB, free: 7.402 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002222/0.1508, allocations: 16.3 kB / 0.6889 GB, free: 7.387 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004287/0.1551, allocations: 2.132 MB / 0.691 GB, free: 5.164 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001904/0.1553, allocations: 0.6807 MB / 0.6916 GB, free: 4.457 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001033/0.1554, allocations: 20.67 kB / 0.6917 GB, free: 4.434 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.681e-05/0.1555, allocations: 27.41 kB / 0.6917 GB, free: 4.406 MB / 494.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1555, allocations: 0 / 0.6917 GB, free: 4.406 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01629/0.1718, allocations: 2.726 MB / 0.6943 GB, free: 1.805 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.807/6.979, allocations: 13.89 kB / 0.6944 GB, free: 1.797 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXRegularized.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXRegularized.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXRegularized.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXRegularized.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXRegularized_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXRegularized.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXRegularized.pipe 2>&1)