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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001612/0.001612, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001939/0.001939, allocations: 193.7 kB / 16.14 MB, free: 6.711 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.299/1.299, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.271/2.271, allocations: 390.2 MB / 0.6643 GB, free: 0.668 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 63.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5498/0.5512, allocations: 140.4 MB / 0.9491 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001671/0.5529, allocations: 0.6662 MB / 0.9497 GB, free: 8.617 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001327/0.5542, allocations: 1.46 MB / 0.9511 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.192e-05/0.5543, allocations: 3.938 kB / 0.9511 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.226e-05/0.5543, allocations: 1.125 kB / 0.9511 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.358e-05/0.5543, allocations: 3.938 kB / 0.9511 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000341/0.5547, allocations: 110.4 kB / 0.9513 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.583e-05/0.5547, allocations: 31.28 kB / 0.9513 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.004e-05/0.5548, allocations: 1.406 kB / 0.9513 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.045e-05/0.5548, allocations: 22.59 kB / 0.9513 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.262e-05/0.5549, allocations: 20.78 kB / 0.9513 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.48e-05/0.5549, allocations: 1.594 kB / 0.9513 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003641/0.5552, allocations: 319.5 kB / 0.9516 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.396e-05/0.5553, allocations: 9.547 kB / 0.9516 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.31e-05/0.5553, allocations: 14.8 kB / 0.9517 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002514/0.5556, allocations: 184.3 kB / 0.9518 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.5556, allocations: 0 / 0.9518 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.52e-07/0.5556, allocations: 0 / 0.9518 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.106e-06/0.5556, allocations: 0 / 0.9518 GB, free: 7.027 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.0003925/0.556, allocations: 371.8 kB / 0.9522 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.556, allocations: 9.219 kB / 0.9522 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.259e-05/0.556, allocations: 34.73 kB / 0.9522 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004465/0.5565, allocations: 64.83 kB / 0.9523 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.74e-05/0.5566, allocations: 172.4 kB / 0.9525 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.5566, allocations: 1.625 kB / 0.9525 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.928e-05/0.5566, allocations: 11.28 kB / 0.9525 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002254/0.5568, allocations: 76.98 kB / 0.9525 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.613e-06/0.5569, allocations: 3.984 kB / 0.9525 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.5569, allocations: 0 / 0.9525 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.5569, allocations: 5.25 kB / 0.9525 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002834/0.5572, allocations: 62.45 kB / 0.9526 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001217/0.5573, allocations: 173.3 kB / 0.9528 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005492/0.5579, allocations: 119.1 kB / 0.9529 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.558, allocations: 48.44 kB / 0.9529 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004147/0.5584, allocations: 154.8 kB / 0.9531 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.224e-05/0.5585, allocations: 34.5 kB / 0.9531 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.5585, allocations: 1.031 kB / 0.9531 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0009963/0.5595, allocations: 398 kB / 0.9535 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.598e-05/0.5595, allocations: 53.03 kB / 0.9535 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.486e-05/0.5595, allocations: 104.1 kB / 0.9536 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.083e-05/0.5596, allocations: 25.7 kB / 0.9537 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.156e-05/0.5596, allocations: 81.55 kB / 0.9537 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.128e-05/0.5596, allocations: 17.12 kB / 0.9538 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-05/0.5596, allocations: 19.36 kB / 0.9538 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.183e-05/0.5597, allocations: 315.8 kB / 0.9541 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001552/0.5598, allocations: 37.56 kB / 0.9541 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.56, allocations: 37.92 kB / 0.9542 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002759/0.5603, allocations: 75.31 kB / 0.9542 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.5603, allocations: 1.062 kB / 0.9542 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003317/0.5606, allocations: 116.2 kB / 0.9543 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.5606, allocations: 5.906 kB / 0.9543 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-06/0.5606, allocations: 3.938 kB / 0.9543 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.678e-06/0.5607, allocations: 1.5 kB / 0.9543 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.5608, allocations: 27.34 kB / 0.9544 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.5608, allocations: 1.188 kB / 0.9544 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.234e-05/0.5609, allocations: 11.3 kB / 0.9544 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.899e-06/0.5609, allocations: 2.5 kB / 0.9544 GB, free: 4.68 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 4.691e-05/0.561, allocations: 114.8 kB / 0.9545 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.688e-05/0.561, allocations: 6.375 kB / 0.9545 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004069/0.5614, allocations: 137.8 kB / 0.9546 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.5614, allocations: 1.5 kB / 0.9546 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.5614, allocations: 0 / 0.9546 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.5614, allocations: 0 / 0.9546 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.336e-05/0.5615, allocations: 170.8 kB / 0.9548 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.5615, allocations: 9.312 kB / 0.9548 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001479/0.5617, allocations: 27.41 kB / 0.9548 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.5617, allocations: 1.125 kB / 0.9548 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/0.5617, allocations: 1 kB / 0.9548 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.5617, allocations: 0 / 0.9548 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.5617, allocations: 1.062 kB / 0.9548 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005044/0.5622, allocations: 191.5 kB / 0.955 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.392e-05/0.5623, allocations: 92.03 kB / 0.9551 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.825e-05/0.5623, allocations: 0.9375 kB / 0.9551 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.5624, allocations: 12.2 kB / 0.9551 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.267e-05/0.5625, allocations: 3.172 kB / 0.9551 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.5625, allocations: 5.453 kB / 0.9551 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.762e-05/0.5625, allocations: 82.12 kB / 0.9552 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5625, allocations: 4.156 kB / 0.9552 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002226/0.5627, allocations: 32.81 kB / 0.9552 GB, free: 3.902 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.000712/0.5634, allocations: 0.7487 MB / 0.956 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000341/0.5638, allocations: 85.39 kB / 0.9561 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.5638, allocations: 0 / 0.9561 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000159/0.564, allocations: 45.62 kB / 0.9561 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001408/0.5641, allocations: 10.59 kB / 0.9561 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00157/0.5657, allocations: 1.358 MB / 0.9574 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.324e-05/0.5658, allocations: 0.6837 MB / 0.9581 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001091/0.5659, allocations: 13.84 kB / 0.9581 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.256e-05/0.5659, allocations: 12.53 kB / 0.9581 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.566, allocations: 0 / 0.9581 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01055/0.5765, allocations: 1.887 MB / 0.96 GB, free: 288 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001405/0.5767, allocations: 215.1 kB / 0.9602 GB, free: 32 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.747/2.324, allocations: 7.703 kB / 0.9602 GB, free: 28 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[1]=-1.000000 " Variables in the reference:time,y_comp,y Variables in the result:delta,der(x),der(y_comp),err,time,x,y,y_comp