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.005221/0.005222, allocations: 95.38 kB / 15.73 MB, free: 6.051 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.001275/0.001275, allocations: 204.6 kB / 16.68 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.455/1.455, 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.002883/0.002883, allocations: 275 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 1.004/1.004, allocations: 169.3 MB / 0.4983 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003515/0.003515, allocations: 104.1 kB / 0.681 GB, free: 15.94 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2159/0.2194, allocations: 86.97 MB / 0.7659 GB, free: 8.895 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001956/0.2215, allocations: 0.5993 MB / 0.7665 GB, free: 8.297 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002211/0.2237, allocations: 1.454 MB / 0.768 GB, free: 6.824 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.074e-05/0.2237, allocations: 0 / 0.768 GB, free: 6.824 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.776e-05/0.2238, allocations: 0 / 0.768 GB, free: 6.824 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.722e-05/0.2238, allocations: 3.938 kB / 0.768 GB, free: 6.82 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005142/0.2243, allocations: 139.4 kB / 0.7681 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.243e-05/0.2244, allocations: 35.91 kB / 0.7681 GB, free: 6.648 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.508e-05/0.2245, allocations: 4 kB / 0.7681 GB, free: 6.645 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.702e-05/0.2245, allocations: 15.97 kB / 0.7681 GB, free: 6.629 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 9.244e-05/0.2246, allocations: 19.97 kB / 0.7682 GB, free: 6.609 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.94e-05/0.2246, allocations: 4 kB / 0.7682 GB, free: 6.605 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005023/0.2252, allocations: 319.3 kB / 0.7685 GB, free: 6.293 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.805e-05/0.2252, allocations: 11.92 kB / 0.7685 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.815e-05/0.2252, allocations: 7.984 kB / 0.7685 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003274/0.2255, allocations: 195.7 kB / 0.7687 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.2256, allocations: 0 / 0.7687 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.572e-06/0.2256, allocations: 0 / 0.7687 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.323e-05/0.2256, allocations: 4 kB / 0.7687 GB, free: 6.078 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.0007482/0.2263, allocations: 367.1 kB / 0.769 GB, free: 5.672 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.2264, allocations: 8.031 kB / 0.769 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.068e-05/0.2264, allocations: 34.75 kB / 0.7691 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004489/0.2269, allocations: 72.84 kB / 0.7691 GB, free: 5.551 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001403/0.227, allocations: 164.3 kB / 0.7693 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.2271, allocations: 8.375 kB / 0.7693 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.238e-05/0.2271, allocations: 384 / 0.7693 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002734/0.2274, allocations: 77.75 kB / 0.7694 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.2274, allocations: 3.938 kB / 0.7694 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.41e-05/0.2274, allocations: 3.984 kB / 0.7694 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.345e-06/0.2274, allocations: 0 / 0.7694 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002953/0.2277, allocations: 63.94 kB / 0.7694 GB, free: 5.191 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002141/0.2279, allocations: 165.7 kB / 0.7696 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006006/0.2286, allocations: 126.5 kB / 0.7697 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/0.2287, allocations: 40.92 kB / 0.7698 GB, free: 4.805 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004604/0.2292, allocations: 157 kB / 0.7699 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/0.2292, allocations: 42.5 kB / 0.77 GB, free: 4.582 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=4): time 1.272e-06/0.2293, allocations: 0 / 0.77 GB, free: 4.582 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5): time 0.001227/0.2305, allocations: 410.1 kB / 0.7703 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/0.2306, allocations: 51.41 kB / 0.7704 GB, free: 4.066 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.603e-05/0.2307, allocations: 93.86 kB / 0.7705 GB, free: 3.965 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.2307, allocations: 29.83 kB / 0.7705 GB, free: 3.93 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.17e-05/0.2308, allocations: 84.14 kB / 0.7706 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.33e-05/0.2308, allocations: 11.86 kB / 0.7706 GB, free: 3.832 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.951e-05/0.2309, allocations: 25.7 kB / 0.7706 GB, free: 3.801 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001629/0.2311, allocations: 310.8 kB / 0.7709 GB, free: 3.488 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.2312, allocations: 43.95 kB / 0.771 GB, free: 3.445 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001478/0.2314, allocations: 31.97 kB / 0.771 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004018/0.2318, allocations: 84.73 kB / 0.7711 GB, free: 3.328 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.11e-07/0.2318, allocations: 0 / 0.7711 GB, free: 3.328 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000366/0.2322, allocations: 109.6 kB / 0.7712 GB, free: 3.215 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.2322, allocations: 4 kB / 0.7712 GB, free: 3.211 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.2322, allocations: 3.984 kB / 0.7712 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.2322, allocations: 0 / 0.7712 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.2324, allocations: 24.23 kB / 0.7712 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.2324, allocations: 4 kB / 0.7712 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.2325, allocations: 15.98 kB / 0.7712 GB, free: 3.164 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.2325, allocations: 4 kB / 0.7712 GB, free: 3.16 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 8.954e-05/0.2326, allocations: 114.4 kB / 0.7713 GB, free: 3.039 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.15e-05/0.2326, allocations: 11.89 kB / 0.7714 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004654/0.2331, allocations: 133.2 kB / 0.7715 GB, free: 2.895 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.2331, allocations: 3.984 kB / 0.7715 GB, free: 2.891 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.2331, allocations: 3.938 kB / 0.7715 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.2331, allocations: 0 / 0.7715 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001765/0.2333, allocations: 165.7 kB / 0.7717 GB, free: 2.676 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.219e-06/0.2333, allocations: 7.922 kB / 0.7717 GB, free: 2.668 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001479/0.2335, allocations: 23.98 kB / 0.7717 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.2335, allocations: 0 / 0.7717 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.2335, allocations: 4 kB / 0.7717 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2335, allocations: 3.938 kB / 0.7717 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2335, allocations: 4 kB / 0.7717 GB, free: 2.633 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006985/0.2342, allocations: 177 kB / 0.7719 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 8.254e-05/0.2343, allocations: 93 kB / 0.772 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.922e-05/0.2344, allocations: 8.062 kB / 0.772 GB, free: 2.324 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00011/0.2345, allocations: 11.98 kB / 0.772 GB, free: 2.312 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.628e-05/0.2345, allocations: 7.984 kB / 0.772 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.716e-06/0.2345, allocations: 0 / 0.772 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.8e-05/0.2346, allocations: 79.28 kB / 0.7721 GB, free: 2.227 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2346, allocations: 0 / 0.7721 GB, free: 2.227 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002334/0.2348, allocations: 31.88 kB / 0.7721 GB, free: 2.195 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.001272/0.2361, allocations: 0.757 MB / 0.7728 GB, free: 1.406 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003901/0.2365, allocations: 88.17 kB / 0.7729 GB, free: 1.32 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.2365, allocations: 0 / 0.7729 GB, free: 1.32 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002887/0.2368, allocations: 47.91 kB / 0.773 GB, free: 1.273 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001779/0.237, allocations: 8 kB / 0.773 GB, free: 1.266 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3591/0.5961, allocations: 1.34 MB / 0.7743 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001196/0.5963, allocations: 0.6793 MB / 0.7749 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001236/0.5964, allocations: 18.19 kB / 0.7749 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.422e-05/0.5965, allocations: 12.91 kB / 0.775 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of SimCode: time 1.112e-06/0.5965, allocations: 2.016 kB / 0.775 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02958/0.6261, allocations: 2.088 MB / 0.777 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.7/8.327, allocations: 1.969 kB / 0.777 GB, free: 13.13 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)