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.00545/0.00545, allocations: 98.89 kB / 15.73 MB, free: 6.031 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.001337/0.001337, allocations: 193.8 kB / 16.67 MB, free: 5.953 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002483/0.002483, allocations: 291.5 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.011/1.011, allocations: 169.2 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002658/0.002658, allocations: 99.84 kB / 0.681 GB, free: 7.41 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4804/0.4831, allocations: 86.98 MB / 0.766 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002178/0.4853, allocations: 0.7742 MB / 0.7667 GB, free: 3.086 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002137/0.4875, allocations: 1.487 MB / 0.7682 GB, free: 1.582 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.452e-05/0.4875, allocations: 0 / 0.7682 GB, free: 1.582 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.928e-05/0.4876, allocations: 3.938 kB / 0.7682 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.573e-05/0.4876, allocations: 0 / 0.7682 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005288/0.4882, allocations: 143.5 kB / 0.7683 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001044/0.4883, allocations: 59.62 kB / 0.7684 GB, free: 1.379 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.229e-05/0.4883, allocations: 4 kB / 0.7684 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 7.97e-05/0.4884, allocations: 23.92 kB / 0.7684 GB, free: 1.352 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 7.361e-05/0.4885, allocations: 35.83 kB / 0.7684 GB, free: 1.316 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.234e-05/0.4885, allocations: 4 kB / 0.7684 GB, free: 1.312 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004797/0.489, allocations: 323.4 kB / 0.7687 GB, free: 0.9961 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.824e-05/0.4891, allocations: 15.97 kB / 0.7688 GB, free: 0.9805 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.616e-05/0.4891, allocations: 23.86 kB / 0.7688 GB, free: 0.957 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003413/0.4894, allocations: 208.5 kB / 0.769 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.4895, allocations: 0 / 0.769 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.513e-06/0.4895, allocations: 0 / 0.769 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.581e-06/0.4895, allocations: 0 / 0.769 GB, free: 0.7617 MB / 0.5294 GB 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.0006943/0.4902, allocations: 402.9 kB / 0.7694 GB, free: 328 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.4902, allocations: 12.03 kB / 0.7694 GB, free: 316 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.782e-05/0.4903, allocations: 46.67 kB / 0.7694 GB, free: 260 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000433/0.4907, allocations: 72.8 kB / 0.7695 GB, free: 188 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001831/0.4909, allocations: 168.3 kB / 0.7697 GB, free: 15.98 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.382e-05/0.491, allocations: 12.36 kB / 0.7697 GB, free: 15.97 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.875e-05/0.491, allocations: 12.33 kB / 0.7697 GB, free: 15.96 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003786/0.4914, allocations: 109.7 kB / 0.7698 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.4914, allocations: 3.938 kB / 0.7698 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.675e-05/0.4914, allocations: 4 kB / 0.7698 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.4914, allocations: 4 kB / 0.7698 GB, free: 15.83 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000486/0.4919, allocations: 103.8 kB / 0.7699 GB, free: 15.73 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006681/0.4926, allocations: 332.6 kB / 0.7702 GB, free: 15.36 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006874/0.4933, allocations: 158.4 kB / 0.7704 GB, free: 15.19 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002376/0.4936, allocations: 56.8 kB / 0.7704 GB, free: 15.13 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.779e-05/0.4936, allocations: 4 kB / 0.7704 GB, free: 15.13 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.752e-05/0.4936, allocations: 34.56 kB / 0.7705 GB, free: 15.09 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.4936, allocations: 0 / 0.7705 GB, free: 15.09 MB / 0.545 GB 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.01785/0.5115, allocations: 2.833 MB / 0.7732 GB, free: 12.16 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.152e-05/0.5116, allocations: 59.34 kB / 0.7733 GB, free: 12.09 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.557e-05/0.5117, allocations: 97.86 kB / 0.7734 GB, free: 11.98 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.471e-05/0.5117, allocations: 25.7 kB / 0.7734 GB, free: 11.95 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.073e-05/0.5118, allocations: 100.1 kB / 0.7735 GB, free: 11.85 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.889e-05/0.5119, allocations: 43.62 kB / 0.7735 GB, free: 11.81 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001786/0.5121, allocations: 69.7 kB / 0.7736 GB, free: 11.73 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.5122, allocations: 322.7 kB / 0.7739 GB, free: 11.41 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006788/0.5129, allocations: 191.8 kB / 0.7741 GB, free: 11.22 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006598/0.5136, allocations: 195.8 kB / 0.7743 GB, free: 11.03 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/0.515, allocations: 395.2 kB / 0.7746 GB, free: 10.64 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.515, allocations: 0 / 0.7746 GB, free: 10.64 MB / 0.545 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00161/0.5166, allocations: 477.2 kB / 0.7751 GB, free: 10.17 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.5167, allocations: 4 kB / 0.7751 GB, free: 10.17 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.5167, allocations: 0 / 0.7751 GB, free: 10.17 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.5167, allocations: 4 kB / 0.7751 GB, free: 10.16 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007981/0.5175, allocations: 111.7 kB / 0.7752 GB, free: 10.05 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.5175, allocations: 0 / 0.7752 GB, free: 10.05 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005691/0.5181, allocations: 43.94 kB / 0.7753 GB, free: 10.01 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.31e-05/0.5182, allocations: 27.92 kB / 0.7753 GB, free: 9.984 MB / 0.545 GB 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.0001591/0.5183, allocations: 117.8 kB / 0.7754 GB, free: 9.859 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.587e-05/0.5184, allocations: 4 kB / 0.7754 GB, free: 9.855 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.471e-05/0.5185, allocations: 7.969 kB / 0.7754 GB, free: 9.848 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.762e-06/0.5185, allocations: 7.938 kB / 0.7754 GB, free: 9.84 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.5185, allocations: 0 / 0.7754 GB, free: 9.84 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.5185, allocations: 0 / 0.7754 GB, free: 9.84 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002373/0.5209, allocations: 1.051 MB / 0.7764 GB, free: 8.676 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.5209, allocations: 96 / 0.7764 GB, free: 8.676 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007909/0.5217, allocations: 119.7 kB / 0.7766 GB, free: 8.559 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.5217, allocations: 192 / 0.7766 GB, free: 8.559 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.659e-05/0.5218, allocations: 19.94 kB / 0.7766 GB, free: 8.539 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.5218, allocations: 3.984 kB / 0.7766 GB, free: 8.535 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.5218, allocations: 0 / 0.7766 GB, free: 8.535 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002553/0.5243, allocations: 0.8034 MB / 0.7774 GB, free: 7.715 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000153/0.5245, allocations: 117 kB / 0.7775 GB, free: 7.582 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.325e-05/0.5246, allocations: 3.984 kB / 0.7775 GB, free: 7.578 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006345/0.5252, allocations: 48 kB / 0.7775 GB, free: 7.531 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.457e-05/0.5253, allocations: 27.92 kB / 0.7776 GB, free: 7.504 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.096e-05/0.5254, allocations: 23.94 kB / 0.7776 GB, free: 7.48 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.895e-05/0.5254, allocations: 79.28 kB / 0.7777 GB, free: 7.402 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.11e-07/0.5255, allocations: 0 / 0.7777 GB, free: 7.402 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003616/0.5258, allocations: 51.94 kB / 0.7777 GB, free: 7.352 MB / 0.545 GB 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.003071/0.5289, allocations: 1.353 MB / 0.779 GB, free: 5.973 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001472/0.5304, allocations: 425.1 kB / 0.7794 GB, free: 5.559 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5304, allocations: 4 kB / 0.7794 GB, free: 5.555 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0007349/0.5311, allocations: 219.7 kB / 0.7796 GB, free: 5.34 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003776/0.5315, allocations: 8 kB / 0.7796 GB, free: 5.332 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008824/0.5404, allocations: 2.943 MB / 0.7825 GB, free: 2.305 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004333/0.5409, allocations: 0.6961 MB / 0.7832 GB, free: 1.582 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0005474/0.5414, allocations: 88.67 kB / 0.7833 GB, free: 1.496 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002967/0.5417, allocations: 65.8 kB / 0.7834 GB, free: 1.434 MB / 0.545 GB Notification: Performance of SimCode: time 4.358e-06/0.5417, allocations: 0 / 0.7834 GB, free: 1.434 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02762/0.5694, allocations: 4.585 MB / 0.7878 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.854/8.423, allocations: 15.67 kB / 0.7878 GB, free: 12.98 MB / 0.5606 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv --start-time -1.5 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0012 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1)