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.001343/0.001343, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.001485/0.001485, allocations: 195.3 kB / 16.25 MB, free: 6.629 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.255/1.255, allocations: 222.9 MB / 239.9 MB, free: 4.566 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.13/2.13, allocations: 390.2 MB / 0.6644 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 71.89 kB / 0.8122 GB, free: 14.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5275/0.5289, allocations: 140.4 MB / 0.9492 GB, free: 9.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001554/0.5304, allocations: 0.6587 MB / 0.9499 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001207/0.5317, allocations: 1.446 MB / 0.9513 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.519e-05/0.5317, allocations: 0 / 0.9513 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.218e-05/0.5317, allocations: 0 / 0.9513 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.442e-05/0.5317, allocations: 1.375 kB / 0.9513 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003692/0.5321, allocations: 116.9 kB / 0.9514 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.715e-05/0.5322, allocations: 36.45 kB / 0.9515 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 2.843e-05/0.5322, allocations: 1.375 kB / 0.9515 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.052e-05/0.5322, allocations: 17.55 kB / 0.9515 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.803e-05/0.5323, allocations: 21.59 kB / 0.9515 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.236e-05/0.5323, allocations: 2.75 kB / 0.9515 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003271/0.5327, allocations: 320.2 kB / 0.9518 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.292e-05/0.5327, allocations: 8.797 kB / 0.9518 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.027e-05/0.5327, allocations: 15.67 kB / 0.9518 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002209/0.5329, allocations: 186.8 kB / 0.952 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.5329, allocations: 0 / 0.952 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.593e-06/0.5329, allocations: 1.25 kB / 0.952 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.5329, allocations: 0 / 0.952 GB, free: 6.992 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.0004031/0.5334, allocations: 363 kB / 0.9523 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.5334, allocations: 9.75 kB / 0.9524 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.35e-05/0.5334, allocations: 34.73 kB / 0.9524 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004127/0.5338, allocations: 72.36 kB / 0.9525 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.088e-05/0.5339, allocations: 169.6 kB / 0.9526 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.5339, allocations: 1.469 kB / 0.9526 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.037e-05/0.534, allocations: 2.219 kB / 0.9526 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002194/0.5342, allocations: 73.05 kB / 0.9527 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.5342, allocations: 0 / 0.9527 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.5342, allocations: 1.25 kB / 0.9527 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.5342, allocations: 4 kB / 0.9527 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002595/0.5345, allocations: 70.83 kB / 0.9528 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001152/0.5346, allocations: 177.9 kB / 0.9529 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005091/0.5351, allocations: 123 kB / 0.9531 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001368/0.5353, allocations: 51.75 kB / 0.9531 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003717/0.5357, allocations: 149.8 kB / 0.9532 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.226e-05/0.5357, allocations: 39.72 kB / 0.9533 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 9.62e-07/0.5357, allocations: 1.125 kB / 0.9533 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0009366/0.5366, allocations: 397.5 kB / 0.9537 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.584e-05/0.5366, allocations: 52.62 kB / 0.9537 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.309e-05/0.5367, allocations: 100 kB / 0.9538 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.127e-05/0.5367, allocations: 26.73 kB / 0.9538 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.217e-05/0.5367, allocations: 89.09 kB / 0.9539 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.167e-05/0.5367, allocations: 13.59 kB / 0.9539 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.93e-05/0.5368, allocations: 23.58 kB / 0.954 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.218e-05/0.5368, allocations: 312.5 kB / 0.9543 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001393/0.537, allocations: 41.03 kB / 0.9543 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.5371, allocations: 37.02 kB / 0.9543 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002512/0.5374, allocations: 75.97 kB / 0.9544 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.22e-07/0.5374, allocations: 0 / 0.9544 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002998/0.5377, allocations: 113.2 kB / 0.9545 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/0.5377, allocations: 4.812 kB / 0.9545 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.396e-06/0.5377, allocations: 1.438 kB / 0.9545 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.518e-06/0.5377, allocations: 0 / 0.9545 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.5379, allocations: 35.81 kB / 0.9545 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.677e-06/0.5379, allocations: 1.125 kB / 0.9545 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.951e-05/0.538, allocations: 11.52 kB / 0.9546 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.538, allocations: 2.188 kB / 0.9546 GB, free: 4.641 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.438e-05/0.538, allocations: 107.4 kB / 0.9547 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.454e-05/0.538, allocations: 5.25 kB / 0.9547 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003916/0.5384, allocations: 138.1 kB / 0.9548 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.5384, allocations: 1.688 kB / 0.9548 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.5385, allocations: 4.062 kB / 0.9548 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-06/0.5385, allocations: 0 / 0.9548 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.315e-05/0.5385, allocations: 167.7 kB / 0.955 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.5385, allocations: 3.938 kB / 0.955 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001439/0.5387, allocations: 32.84 kB / 0.955 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.5387, allocations: 0 / 0.955 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.5387, allocations: 6.219 kB / 0.955 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.5387, allocations: 0 / 0.955 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.5387, allocations: 0 / 0.955 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004764/0.5392, allocations: 187.8 kB / 0.9552 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.752e-05/0.5393, allocations: 92.59 kB / 0.9553 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.661e-05/0.5393, allocations: 4 kB / 0.9553 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.5394, allocations: 12.05 kB / 0.9553 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.453e-05/0.5394, allocations: 3.438 kB / 0.9553 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.949e-06/0.5394, allocations: 6.422 kB / 0.9553 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.471e-05/0.5395, allocations: 76.47 kB / 0.9554 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5395, allocations: 4.094 kB / 0.9554 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002081/0.5397, allocations: 33.72 kB / 0.9554 GB, free: 3.871 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.0006598/0.5403, allocations: 0.7563 MB / 0.9561 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003222/0.5407, allocations: 87.83 kB / 0.9562 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.5407, allocations: 0 / 0.9562 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001473/0.5408, allocations: 43.94 kB / 0.9563 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001353/0.541, allocations: 7.234 kB / 0.9563 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/0.5425, allocations: 1.36 MB / 0.9576 GB, free: 1.895 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.07e-05/0.5425, allocations: 0.6835 MB / 0.9583 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 9.972e-05/0.5426, allocations: 13.75 kB / 0.9583 GB, free: 1.184 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.849e-05/0.5427, allocations: 12.84 kB / 0.9583 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.5427, allocations: 0 / 0.9583 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01844/0.5611, allocations: 1.95 MB / 0.9602 GB, free: 224 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001785/0.5613, allocations: 218.9 kB / 0.9604 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.595/2.156, allocations: 4 kB / 0.9604 GB, free: 15.96 MB / 0.7325 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