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.004453/0.004457, allocations: 95.7 kB / 15.73 MB, free: 6.484 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.001051/0.001051, allocations: 191.1 kB / 16.67 MB, free: 6.391 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002192/0.002192, allocations: 286.7 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.9458/0.9458, allocations: 169.3 MB / 0.4983 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001928, allocations: 104.3 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1841/0.186, allocations: 86.97 MB / 0.766 GB, free: 8.918 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001758/0.1878, allocations: 0.5978 MB / 0.7665 GB, free: 8.324 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001891/0.1897, allocations: 1.454 MB / 0.768 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.66e-05/0.1898, allocations: 0 / 0.768 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.787e-05/0.1898, allocations: 0 / 0.768 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.78e-05/0.1898, allocations: 0 / 0.768 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005554/0.1904, allocations: 143.4 kB / 0.7681 GB, free: 6.711 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.269e-05/0.1905, allocations: 35.84 kB / 0.7681 GB, free: 6.676 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.859e-05/0.1905, allocations: 3.984 kB / 0.7681 GB, free: 6.672 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.342e-05/0.1906, allocations: 19.98 kB / 0.7682 GB, free: 6.652 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 8.156e-05/0.1907, allocations: 19.97 kB / 0.7682 GB, free: 6.633 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.59e-05/0.1907, allocations: 7.938 kB / 0.7682 GB, free: 6.625 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000438/0.1911, allocations: 319.3 kB / 0.7685 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.995e-05/0.1912, allocations: 3.984 kB / 0.7685 GB, free: 6.309 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.85e-05/0.1912, allocations: 11.98 kB / 0.7685 GB, free: 6.297 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003087/0.1915, allocations: 187.8 kB / 0.7687 GB, free: 6.113 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1915, allocations: 4 kB / 0.7687 GB, free: 6.109 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.175e-06/0.1915, allocations: 3.984 kB / 0.7687 GB, free: 6.105 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.1915, allocations: 0 / 0.7687 GB, free: 6.105 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.0005966/0.1921, allocations: 367.1 kB / 0.769 GB, free: 5.699 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.1922, allocations: 8.031 kB / 0.769 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.824e-05/0.1922, allocations: 30.75 kB / 0.7691 GB, free: 5.652 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004715/0.1927, allocations: 68.84 kB / 0.7691 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.1929, allocations: 164.4 kB / 0.7693 GB, free: 5.387 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.546e-05/0.1929, allocations: 8.312 kB / 0.7693 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.945e-05/0.1929, allocations: 8.312 kB / 0.7693 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002709/0.1932, allocations: 81.69 kB / 0.7694 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.1932, allocations: 0 / 0.7694 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.1932, allocations: 0 / 0.7694 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.1933, allocations: 0 / 0.7694 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003054/0.1936, allocations: 71.91 kB / 0.7695 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002026/0.1938, allocations: 161.7 kB / 0.7696 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006023/0.1944, allocations: 126.5 kB / 0.7697 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001687/0.1946, allocations: 44.91 kB / 0.7698 GB, free: 4.828 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004557/0.195, allocations: 153 kB / 0.7699 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.158e-05/0.1951, allocations: 42.5 kB / 0.77 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.1951, allocations: 0 / 0.77 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5): time 0.001193/0.1963, allocations: 406.1 kB / 0.7703 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.1963, allocations: 51.41 kB / 0.7704 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.84e-05/0.1964, allocations: 97.84 kB / 0.7705 GB, free: 3.992 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.1964, allocations: 29.83 kB / 0.7705 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.019e-05/0.1965, allocations: 80.14 kB / 0.7706 GB, free: 3.875 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.268e-05/0.1965, allocations: 15.86 kB / 0.7706 GB, free: 3.859 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.953e-05/0.1966, allocations: 25.7 kB / 0.7706 GB, free: 3.828 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.933e-05/0.1967, allocations: 310.8 kB / 0.7709 GB, free: 3.516 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001603/0.1968, allocations: 35.97 kB / 0.771 GB, free: 3.48 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/0.197, allocations: 35.97 kB / 0.771 GB, free: 3.445 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003036/0.1973, allocations: 84.73 kB / 0.7711 GB, free: 3.359 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.1973, allocations: 0 / 0.7711 GB, free: 3.359 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003585/0.1977, allocations: 109.6 kB / 0.7712 GB, free: 3.246 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.1977, allocations: 8 kB / 0.7712 GB, free: 3.238 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.1977, allocations: 4.234 kB / 0.7712 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.1977, allocations: 0 / 0.7712 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.1979, allocations: 27.97 kB / 0.7712 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.1979, allocations: 0 / 0.7712 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.83e-05/0.198, allocations: 19.98 kB / 0.7712 GB, free: 3.188 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.198, allocations: 4 kB / 0.7712 GB, free: 3.184 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.985e-05/0.1981, allocations: 106.5 kB / 0.7713 GB, free: 3.07 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.29e-05/0.1981, allocations: 11.89 kB / 0.7714 GB, free: 3.059 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004579/0.1986, allocations: 145 kB / 0.7715 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.1986, allocations: 0 / 0.7715 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1986, allocations: 3.938 kB / 0.7715 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.237e-06/0.1986, allocations: 0 / 0.7715 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001384/0.1988, allocations: 169.6 kB / 0.7717 GB, free: 2.695 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1988, allocations: 3.938 kB / 0.7717 GB, free: 2.691 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001561/0.1989, allocations: 27.97 kB / 0.7717 GB, free: 2.664 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.247e-06/0.199, allocations: 0 / 0.7717 GB, free: 2.664 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.199, allocations: 0 / 0.7717 GB, free: 2.664 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.199, allocations: 0 / 0.7717 GB, free: 2.664 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.199, allocations: 0 / 0.7717 GB, free: 2.664 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005819/0.1996, allocations: 185 kB / 0.7719 GB, free: 2.465 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.379e-05/0.1997, allocations: 89.06 kB / 0.772 GB, free: 2.359 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.36e-05/0.1997, allocations: 8.047 kB / 0.772 GB, free: 2.352 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000118/0.1998, allocations: 15.98 kB / 0.772 GB, free: 2.336 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.754e-05/0.1999, allocations: 4 kB / 0.772 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.215e-06/0.1999, allocations: 0 / 0.772 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.219e-05/0.1999, allocations: 83.27 kB / 0.7721 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.81e-07/0.1999, allocations: 0 / 0.7721 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000241/0.2002, allocations: 31.88 kB / 0.7721 GB, free: 2.219 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.0009449/0.2011, allocations: 0.7569 MB / 0.7728 GB, free: 1.43 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003795/0.2015, allocations: 84.06 kB / 0.7729 GB, free: 1.348 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2015, allocations: 0 / 0.7729 GB, free: 1.348 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001737/0.2017, allocations: 51.89 kB / 0.773 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.0001574/0.2019, allocations: 0 / 0.773 GB, free: 1.297 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3323/0.5341, allocations: 1.341 MB / 0.7743 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001051/0.5343, allocations: 0.6824 MB / 0.7749 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001225/0.5344, allocations: 20.05 kB / 0.775 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.165e-05/0.5345, allocations: 13.47 kB / 0.775 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of SimCode: time 7.31e-07/0.5345, allocations: 1.062 kB / 0.775 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0208/0.5553, allocations: 2.083 MB / 0.777 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.316/7.871, allocations: 8.406 kB / 0.777 GB, free: 13.16 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)