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.004974/0.004974, allocations: 99.19 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.001128/0.001128, allocations: 187.5 kB / 16.67 MB, free: 5.969 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.293/1.293, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00202/0.00202, allocations: 274.4 kB / 290.8 MB, free: 1.938 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9225/0.9225, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 107.3 kB / 0.681 GB, free: 15.95 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1598/0.1615, allocations: 86.97 MB / 0.7659 GB, free: 8.898 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001713/0.1633, allocations: 0.6 MB / 0.7665 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001808/0.1651, allocations: 1.446 MB / 0.7679 GB, free: 6.84 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.421e-05/0.1652, allocations: 0 / 0.7679 GB, free: 6.84 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.576e-05/0.1652, allocations: 4 kB / 0.7679 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.154e-05/0.1653, allocations: 0 / 0.7679 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005379/0.1658, allocations: 135.4 kB / 0.7681 GB, free: 6.703 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.468e-05/0.1659, allocations: 31.91 kB / 0.7681 GB, free: 6.672 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.307e-05/0.1659, allocations: 15.92 kB / 0.7681 GB, free: 6.656 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.142e-05/0.166, allocations: 15.98 kB / 0.7681 GB, free: 6.641 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 8.604e-05/0.1661, allocations: 23.97 kB / 0.7682 GB, free: 6.617 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.713e-05/0.1661, allocations: 0 / 0.7682 GB, free: 6.617 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004588/0.1666, allocations: 323.2 kB / 0.7685 GB, free: 6.301 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.263e-05/0.1666, allocations: 11.98 kB / 0.7685 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.143e-05/0.1666, allocations: 7.984 kB / 0.7685 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002939/0.1669, allocations: 187.9 kB / 0.7687 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.1669, allocations: 7.984 kB / 0.7687 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.282e-06/0.167, allocations: 0 / 0.7687 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.905e-06/0.167, allocations: 0 / 0.7687 GB, free: 6.09 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.000531/0.1675, allocations: 363.5 kB / 0.769 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.1675, allocations: 8.031 kB / 0.769 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.787e-05/0.1676, allocations: 38.75 kB / 0.7691 GB, free: 5.633 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004517/0.168, allocations: 64.84 kB / 0.7691 GB, free: 5.57 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.1682, allocations: 164.4 kB / 0.7693 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.382e-05/0.1682, allocations: 384 / 0.7693 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.604e-05/0.1682, allocations: 4.375 kB / 0.7693 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002572/0.1685, allocations: 85.69 kB / 0.7694 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-06/0.1685, allocations: 0 / 0.7694 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.1685, allocations: 0 / 0.7694 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.1685, allocations: 4 kB / 0.7694 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002912/0.1688, allocations: 67.86 kB / 0.7694 GB, free: 5.207 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002007/0.1691, allocations: 161.6 kB / 0.7696 GB, free: 5 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006094/0.1697, allocations: 126.6 kB / 0.7697 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001794/0.1699, allocations: 44.91 kB / 0.7698 GB, free: 4.82 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004568/0.1703, allocations: 153 kB / 0.7699 GB, free: 4.652 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.1704, allocations: 38.5 kB / 0.7699 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=4): time 2.915e-06/0.1704, allocations: 0 / 0.7699 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5): time 0.001207/0.1716, allocations: 406.1 kB / 0.7703 GB, free: 4.156 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.1716, allocations: 51.41 kB / 0.7704 GB, free: 4.094 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.527e-05/0.1717, allocations: 101.8 kB / 0.7705 GB, free: 3.984 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.743e-05/0.1717, allocations: 25.7 kB / 0.7705 GB, free: 3.953 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.791e-05/0.1718, allocations: 80.14 kB / 0.7706 GB, free: 3.871 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.613e-05/0.1718, allocations: 19.84 kB / 0.7706 GB, free: 3.852 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.064e-05/0.1719, allocations: 25.7 kB / 0.7706 GB, free: 3.82 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001082/0.172, allocations: 310.8 kB / 0.7709 GB, free: 3.508 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001637/0.1722, allocations: 35.97 kB / 0.7709 GB, free: 3.473 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.1723, allocations: 35.97 kB / 0.771 GB, free: 3.438 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003096/0.1726, allocations: 76.8 kB / 0.7711 GB, free: 3.359 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.1727, allocations: 0 / 0.7711 GB, free: 3.359 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003807/0.173, allocations: 125.4 kB / 0.7712 GB, free: 3.23 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.1731, allocations: 4 kB / 0.7712 GB, free: 3.227 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1731, allocations: 0 / 0.7712 GB, free: 3.227 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.1731, allocations: 336 / 0.7712 GB, free: 3.227 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.1733, allocations: 24.22 kB / 0.7712 GB, free: 3.203 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.1733, allocations: 4 kB / 0.7712 GB, free: 3.199 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.1734, allocations: 15.98 kB / 0.7712 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.1734, allocations: 4 kB / 0.7712 GB, free: 3.18 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 (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 7.978e-05/0.1735, allocations: 110.5 kB / 0.7713 GB, free: 3.062 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.239e-05/0.1735, allocations: 11.92 kB / 0.7713 GB, free: 3.051 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004636/0.174, allocations: 137.1 kB / 0.7715 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.174, allocations: 3.938 kB / 0.7715 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.174, allocations: 0 / 0.7715 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.174, allocations: 0 / 0.7715 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001581/0.1742, allocations: 173.6 kB / 0.7716 GB, free: 2.691 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1742, allocations: 3.938 kB / 0.7716 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001505/0.1743, allocations: 23.97 kB / 0.7717 GB, free: 2.664 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.1743, allocations: 0 / 0.7717 GB, free: 2.664 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.1744, allocations: 0 / 0.7717 GB, free: 2.664 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.1744, allocations: 8 kB / 0.7717 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1744, allocations: 0 / 0.7717 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005624/0.1749, allocations: 184.9 kB / 0.7719 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.413e-05/0.175, allocations: 89.06 kB / 0.7719 GB, free: 2.352 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.131e-05/0.1751, allocations: 3.984 kB / 0.7719 GB, free: 2.348 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001154/0.1752, allocations: 16.05 kB / 0.772 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.655e-05/0.1752, allocations: 4 kB / 0.772 GB, free: 2.328 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.204e-05/0.1752, allocations: 8 kB / 0.772 GB, free: 2.32 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.471e-05/0.1753, allocations: 79.27 kB / 0.772 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1753, allocations: 0 / 0.772 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002315/0.1755, allocations: 28 kB / 0.7721 GB, free: 2.215 MB / 0.5606 GB 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.0009985/0.1765, allocations: 0.7529 MB / 0.7728 GB, free: 1.43 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003879/0.1769, allocations: 92.12 kB / 0.7729 GB, free: 1.34 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1769, allocations: 0 / 0.7729 GB, free: 1.34 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001635/0.1771, allocations: 43.95 kB / 0.7729 GB, free: 1.297 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001547/0.1773, allocations: 7.938 kB / 0.7729 GB, free: 1.289 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2998/0.4771, allocations: 1.35 MB / 0.7743 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.653e-05/0.4772, allocations: 0.6795 MB / 0.7749 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001149/0.4773, allocations: 16.14 kB / 0.7749 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.623e-05/0.4774, allocations: 16.34 kB / 0.775 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of SimCode: time 6.91e-07/0.4774, allocations: 2.656 kB / 0.775 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01861/0.496, allocations: 2.081 MB / 0.777 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.141/7.638, allocations: 6.969 kB / 0.777 GB, free: 13.18 MB / 0.5606 GB (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)