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.008263/0.008263, allocations: 99.06 kB / 15.73 MB, free: 6.039 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.001739/0.00174, allocations: 197.6 kB / 16.67 MB, free: 5.973 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.295/1.295, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002183/0.002183, allocations: 283 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.931/0.931, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 95.86 kB / 0.681 GB, free: 15.94 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1486/0.1503, allocations: 86.98 MB / 0.766 GB, free: 8.887 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002002/0.1524, allocations: 0.7865 MB / 0.7667 GB, free: 8.105 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001822/0.1542, allocations: 1.463 MB / 0.7682 GB, free: 6.625 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.846e-05/0.1543, allocations: 0 / 0.7682 GB, free: 6.625 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.04e-05/0.1543, allocations: 3.938 kB / 0.7682 GB, free: 6.621 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.138e-05/0.1544, allocations: 7.875 kB / 0.7682 GB, free: 6.613 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000538/0.155, allocations: 151.4 kB / 0.7683 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.203e-05/0.1551, allocations: 51.66 kB / 0.7684 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.168e-05/0.1551, allocations: 7.922 kB / 0.7684 GB, free: 6.406 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.893e-05/0.1552, allocations: 31.91 kB / 0.7684 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.419e-05/0.1553, allocations: 39.84 kB / 0.7684 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.527e-05/0.1553, allocations: 4 kB / 0.7684 GB, free: 6.332 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004457/0.1557, allocations: 315.3 kB / 0.7687 GB, free: 6.023 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.108e-05/0.1558, allocations: 11.98 kB / 0.7687 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.836e-05/0.1558, allocations: 31.84 kB / 0.7688 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003236/0.1561, allocations: 207.6 kB / 0.769 GB, free: 5.777 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1562, allocations: 0 / 0.769 GB, free: 5.777 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.252e-06/0.1562, allocations: 0 / 0.769 GB, free: 5.777 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.66e-06/0.1562, allocations: 0 / 0.769 GB, free: 5.777 MB / 0.5606 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.0006262/0.1568, allocations: 407.3 kB / 0.7694 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.1568, allocations: 8.031 kB / 0.7694 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.966e-05/0.1569, allocations: 38.73 kB / 0.7694 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004261/0.1573, allocations: 68.86 kB / 0.7695 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001136/0.1574, allocations: 176.2 kB / 0.7696 GB, free: 5 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.954e-05/0.1575, allocations: 384 / 0.7696 GB, free: 5 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.727e-05/0.1575, allocations: 12.31 kB / 0.7697 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003619/0.1579, allocations: 113.7 kB / 0.7698 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.1579, allocations: 0 / 0.7698 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.856e-05/0.1579, allocations: 4 kB / 0.7698 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.1579, allocations: 0 / 0.7698 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005726/0.1585, allocations: 99.89 kB / 0.7699 GB, free: 4.77 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005679/0.1591, allocations: 336.5 kB / 0.7702 GB, free: 4.391 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005853/0.1597, allocations: 158.4 kB / 0.7703 GB, free: 4.227 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002151/0.1599, allocations: 56.75 kB / 0.7704 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.581e-05/0.1599, allocations: 4 kB / 0.7704 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/0.16, allocations: 38.55 kB / 0.7704 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.203e-06/0.16, allocations: 0 / 0.7704 GB, free: 4.117 MB / 0.5606 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.01747/0.1774, allocations: 2.83 MB / 0.7732 GB, free: 1.191 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.1775, allocations: 55.34 kB / 0.7732 GB, free: 1.125 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.692e-05/0.1776, allocations: 105.9 kB / 0.7733 GB, free: 1.012 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.856e-05/0.1777, allocations: 25.7 kB / 0.7734 GB, free: 0.9805 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.833e-05/0.1777, allocations: 88.12 kB / 0.7735 GB, free: 0.8906 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 6.985e-05/0.1778, allocations: 47.39 kB / 0.7735 GB, free: 0.8438 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/0.178, allocations: 69.7 kB / 0.7736 GB, free: 0.7695 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.771e-05/0.1781, allocations: 310.8 kB / 0.7739 GB, free: 468 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000596/0.1787, allocations: 195.8 kB / 0.7741 GB, free: 272 kB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005822/0.1793, allocations: 195.8 kB / 0.7742 GB, free: 76 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3381/0.5173, allocations: 388.9 kB / 0.7746 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.5174, allocations: 0.5625 kB / 0.7746 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001515/0.5189, allocations: 477 kB / 0.7751 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.5189, allocations: 4.844 kB / 0.7751 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.5189, allocations: 0.6094 kB / 0.7751 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.519, allocations: 1.969 kB / 0.7751 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008213/0.5198, allocations: 110.5 kB / 0.7752 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.5198, allocations: 0.875 kB / 0.7752 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006001/0.5204, allocations: 46.09 kB / 0.7752 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.358e-05/0.5205, allocations: 25.22 kB / 0.7752 GB, free: 14.95 MB / 0.5606 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.0001354/0.5206, allocations: 123.8 kB / 0.7754 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.807e-05/0.5207, allocations: 3.406 kB / 0.7754 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.128e-05/0.5208, allocations: 12.98 kB / 0.7754 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.5208, allocations: 4.516 kB / 0.7754 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.5208, allocations: 0.75 kB / 0.7754 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.5208, allocations: 1.297 kB / 0.7754 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001928/0.5227, allocations: 1.055 MB / 0.7764 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.5227, allocations: 3.391 kB / 0.7764 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008065/0.5235, allocations: 106.2 kB / 0.7765 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.5236, allocations: 3.656 kB / 0.7765 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.408e-05/0.5236, allocations: 25.88 kB / 0.7765 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.5236, allocations: 3.938 kB / 0.7766 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.5236, allocations: 0.6094 kB / 0.7766 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002226/0.5259, allocations: 0.7856 MB / 0.7773 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.526, allocations: 118 kB / 0.7774 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.726e-05/0.5261, allocations: 1.719 kB / 0.7774 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000641/0.5267, allocations: 51.08 kB / 0.7775 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.398e-05/0.5268, allocations: 32.86 kB / 0.7775 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.289e-05/0.5269, allocations: 23.77 kB / 0.7775 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.144e-05/0.5269, allocations: 80.19 kB / 0.7776 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5269, allocations: 0 / 0.7776 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003953/0.5273, allocations: 56 kB / 0.7777 GB, free: 13.98 MB / 0.5606 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.00236/0.5297, allocations: 1.34 MB / 0.779 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001309/0.531, allocations: 425.8 kB / 0.7794 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.531, allocations: 4 kB / 0.7794 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0006474/0.5317, allocations: 222 kB / 0.7796 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003718/0.5321, allocations: 15 kB / 0.7796 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008266/0.5403, allocations: 2.94 MB / 0.7825 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000134/0.5405, allocations: 0.6945 MB / 0.7832 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0004596/0.541, allocations: 93.17 kB / 0.7833 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002776/0.5413, allocations: 67.5 kB / 0.7833 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of SimCode: time 1.242e-06/0.5413, allocations: 1.312 kB / 0.7833 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0228/0.5641, allocations: 4.695 MB / 0.7879 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.283/7.847, allocations: 8.625 kB / 0.7879 GB, free: 10.3 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 & /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)