Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_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.00111/0.00111, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 194.2 kB / 16.53 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.31/1.31, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.292/2.292, allocations: 390.3 MB / 0.6647 GB, free: 460 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 63.91 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6431/0.6446, allocations: 140.4 MB / 0.9497 GB, free: 9.043 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001552/0.6462, allocations: 0.5959 MB / 0.9503 GB, free: 8.582 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001305/0.6475, allocations: 1.452 MB / 0.9517 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.098e-05/0.6475, allocations: 0 / 0.9517 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.335e-05/0.6476, allocations: 0 / 0.9517 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.144e-05/0.6476, allocations: 5.156 kB / 0.9517 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004044/0.648, allocations: 140.8 kB / 0.9519 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.418e-05/0.6481, allocations: 32.22 kB / 0.9519 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.786e-05/0.6481, allocations: 1.156 kB / 0.9519 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.392e-05/0.6481, allocations: 22.69 kB / 0.9519 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.754e-05/0.6482, allocations: 20.28 kB / 0.9519 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.61e-05/0.6482, allocations: 2.906 kB / 0.9519 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003765/0.6486, allocations: 319.6 kB / 0.9522 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.486e-05/0.6486, allocations: 9.953 kB / 0.9523 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.415e-05/0.6487, allocations: 11.11 kB / 0.9523 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002395/0.6489, allocations: 187.2 kB / 0.9524 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.6489, allocations: 3.984 kB / 0.9524 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.193e-06/0.6489, allocations: 0 / 0.9524 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.6489, allocations: 1.219 kB / 0.9524 GB, free: 6.961 MB / 0.7169 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.0004044/0.6494, allocations: 364.1 kB / 0.9528 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.6494, allocations: 8.75 kB / 0.9528 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.497e-05/0.6494, allocations: 32.12 kB / 0.9528 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004532/0.6499, allocations: 71 kB / 0.9529 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.675e-05/0.6499, allocations: 165.9 kB / 0.9531 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.76e-05/0.65, allocations: 5.531 kB / 0.9531 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.928e-05/0.65, allocations: 5.641 kB / 0.9531 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002338/0.6502, allocations: 73.7 kB / 0.9531 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.222e-06/0.6502, allocations: 0 / 0.9531 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.6503, allocations: 1.531 kB / 0.9531 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.6503, allocations: 0 / 0.9531 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002982/0.6506, allocations: 74.41 kB / 0.9532 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001278/0.6507, allocations: 169.9 kB / 0.9534 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005736/0.6513, allocations: 126.8 kB / 0.9535 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001566/0.6515, allocations: 44.62 kB / 0.9535 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004454/0.6519, allocations: 153.5 kB / 0.9537 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.354e-05/0.6519, allocations: 39.44 kB / 0.9537 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.6519, allocations: 1.031 kB / 0.9537 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.001058/0.653, allocations: 398 kB / 0.9541 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.214e-05/0.653, allocations: 55.97 kB / 0.9542 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.618e-05/0.6531, allocations: 101.1 kB / 0.9543 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.141e-05/0.6531, allocations: 25.7 kB / 0.9543 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.18e-05/0.6531, allocations: 85.11 kB / 0.9544 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.474e-05/0.6531, allocations: 13.38 kB / 0.9544 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.071e-05/0.6532, allocations: 24.36 kB / 0.9544 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.628e-05/0.6532, allocations: 312.4 kB / 0.9547 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.6534, allocations: 37.03 kB / 0.9547 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/0.6536, allocations: 33.06 kB / 0.9548 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003004/0.6539, allocations: 84.02 kB / 0.9548 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.31e-07/0.6539, allocations: 0 / 0.9548 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003501/0.6542, allocations: 117 kB / 0.955 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.6542, allocations: 5.156 kB / 0.955 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.6543, allocations: 0 / 0.955 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.6543, allocations: 1.156 kB / 0.955 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.6544, allocations: 24.28 kB / 0.955 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.401e-06/0.6544, allocations: 5.219 kB / 0.955 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.865e-05/0.6545, allocations: 14.95 kB / 0.955 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-06/0.6546, allocations: 1.531 kB / 0.955 GB, free: 4.617 MB / 0.7169 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 5.232e-05/0.6546, allocations: 112.6 kB / 0.9551 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.687e-05/0.6546, allocations: 5.375 kB / 0.9551 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004266/0.6551, allocations: 137.4 kB / 0.9552 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.6551, allocations: 1.531 kB / 0.9552 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.6551, allocations: 0 / 0.9552 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.6551, allocations: 0 / 0.9552 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.226e-05/0.6552, allocations: 171.2 kB / 0.9554 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.6552, allocations: 5.406 kB / 0.9554 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001532/0.6553, allocations: 27.69 kB / 0.9554 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.6554, allocations: 0 / 0.9554 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.6554, allocations: 5.344 kB / 0.9554 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.6554, allocations: 9.422 kB / 0.9555 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.6554, allocations: 0 / 0.9555 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000532/0.6559, allocations: 180.2 kB / 0.9556 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.292e-05/0.656, allocations: 92.06 kB / 0.9557 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.906e-05/0.656, allocations: 7.984 kB / 0.9557 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001163/0.6561, allocations: 11.89 kB / 0.9557 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.167e-05/0.6561, allocations: 2.562 kB / 0.9557 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.317e-06/0.6562, allocations: 3.062 kB / 0.9557 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.648e-05/0.6562, allocations: 84.52 kB / 0.9558 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6562, allocations: 0 / 0.9558 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002252/0.6564, allocations: 41.44 kB / 0.9559 GB, free: 3.836 MB / 0.7169 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.0007485/0.6572, allocations: 0.7544 MB / 0.9566 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003494/0.6575, allocations: 84.34 kB / 0.9567 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.6575, allocations: 3.938 kB / 0.9567 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001628/0.6577, allocations: 45.73 kB / 0.9567 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000147/0.6579, allocations: 5.875 kB / 0.9567 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.6595, allocations: 1.348 MB / 0.958 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.773e-05/0.6596, allocations: 0.6792 MB / 0.9587 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001079/0.6598, allocations: 19.56 kB / 0.9587 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.18e-05/0.6598, allocations: 10.62 kB / 0.9587 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of SimCode: time 3.2e-07/0.6598, allocations: 0 / 0.9587 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01817/0.678, allocations: 2.034 MB / 0.9607 GB, free: 80 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.134/7.812, allocations: 8.75 kB / 0.9607 GB, free: 72 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.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 Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)