Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.InverseXDerivative_2_Check,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",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.004593/0.004594, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.001219/0.001219, allocations: 193.6 kB / 16.67 MB, free: 5.93 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.278/1.278, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.299/2.299, allocations: 437.1 MB / 0.7105 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002127/0.002127, allocations: 67.89 kB / 1.018 GB, free: 9.848 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6263/0.6285, allocations: 151.6 MB / 1.166 GB, free: 3.758 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002031/0.6305, allocations: 0.7862 MB / 1.167 GB, free: 2.973 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001926/0.6325, allocations: 1.468 MB / 1.168 GB, free: 1.488 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.755e-05/0.6325, allocations: 0 / 1.168 GB, free: 1.488 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.937e-05/0.6326, allocations: 11.92 kB / 1.168 GB, free: 1.477 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.386e-05/0.6326, allocations: 3.938 kB / 1.168 GB, free: 1.473 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004845/0.6331, allocations: 141 kB / 1.169 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.879e-05/0.6332, allocations: 51.89 kB / 1.169 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.28e-05/0.6333, allocations: 8 kB / 1.169 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 7.465e-05/0.6334, allocations: 27.91 kB / 1.169 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.053e-05/0.6334, allocations: 35.89 kB / 1.169 GB, free: 1.215 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.771e-05/0.6335, allocations: 7.938 kB / 1.169 GB, free: 1.207 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004632/0.6339, allocations: 315.4 kB / 1.169 GB, free: 0.8984 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.35e-05/0.634, allocations: 15.92 kB / 1.169 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.402e-05/0.634, allocations: 27.84 kB / 1.169 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003244/0.6343, allocations: 207.2 kB / 1.169 GB, free: 0.6562 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.6344, allocations: 0 / 1.169 GB, free: 0.6562 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.282e-06/0.6344, allocations: 0 / 1.169 GB, free: 0.6562 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.077e-06/0.6344, allocations: 4 kB / 1.169 GB, free: 0.6523 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006335/0.635, allocations: 410.8 kB / 1.17 GB, free: 208 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.635, allocations: 8.922 kB / 1.17 GB, free: 200 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.238e-05/0.6351, allocations: 42.73 kB / 1.17 GB, free: 148 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004217/0.6355, allocations: 68.84 kB / 1.17 GB, free: 80 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001505/0.6357, allocations: 184.2 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.6357, allocations: 384 / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.694e-05/0.6357, allocations: 12.38 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000359/0.6361, allocations: 113.7 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.6361, allocations: 0 / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.6361, allocations: 0 / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.6362, allocations: 0 / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004811/0.6366, allocations: 103.9 kB / 1.17 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005453/0.6372, allocations: 336.7 kB / 1.17 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006439/0.6378, allocations: 154.4 kB / 1.171 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002331/0.6381, allocations: 56.81 kB / 1.171 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.133e-05/0.6381, allocations: 0 / 1.171 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/0.6381, allocations: 34.56 kB / 1.171 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 2.625e-06/0.6381, allocations: 0 / 1.171 GB, free: 14.99 MB / 0.9044 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=11): time 0.01735/0.6555, allocations: 2.84 MB / 1.173 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.784e-05/0.6556, allocations: 63.34 kB / 1.174 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.457e-05/0.6557, allocations: 97.84 kB / 1.174 GB, free: 11.88 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.559e-05/0.6557, allocations: 29.7 kB / 1.174 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.525e-05/0.6558, allocations: 92.03 kB / 1.174 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 6.406e-05/0.6558, allocations: 39.69 kB / 1.174 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001653/0.656, allocations: 69.58 kB / 1.174 GB, free: 11.63 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.6561, allocations: 314.8 kB / 1.174 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006612/0.6568, allocations: 195.9 kB / 1.174 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000653/0.6575, allocations: 193.2 kB / 1.175 GB, free: 10.94 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001328/0.6588, allocations: 390 kB / 1.175 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.6588, allocations: 4 kB / 1.175 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001519/0.6603, allocations: 477.1 kB / 1.175 GB, free: 10.08 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.6604, allocations: 4 kB / 1.175 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.6604, allocations: 0 / 1.175 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.6604, allocations: 0 / 1.175 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007788/0.6612, allocations: 115.7 kB / 1.175 GB, free: 9.961 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.6612, allocations: 0 / 1.175 GB, free: 9.961 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005815/0.6618, allocations: 51.94 kB / 1.176 GB, free: 9.91 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.305e-05/0.6619, allocations: 23.92 kB / 1.176 GB, free: 9.887 MB / 0.9044 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 (13): * Single equations (assignments): 13 * 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 0.0001369/0.662, allocations: 117.8 kB / 1.176 GB, free: 9.762 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.247e-05/0.6621, allocations: 11.89 kB / 1.176 GB, free: 9.75 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.76e-05/0.6621, allocations: 11.97 kB / 1.176 GB, free: 9.734 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.6621, allocations: 4.219 kB / 1.176 GB, free: 9.73 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.6621, allocations: 11.94 kB / 1.176 GB, free: 9.719 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.6622, allocations: 7.969 kB / 1.176 GB, free: 9.711 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002173/0.6643, allocations: 1.035 MB / 1.177 GB, free: 8.566 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.6643, allocations: 0 / 1.177 GB, free: 8.566 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007819/0.6651, allocations: 111.7 kB / 1.177 GB, free: 8.457 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.6651, allocations: 4 kB / 1.177 GB, free: 8.453 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.324e-05/0.6652, allocations: 27.92 kB / 1.177 GB, free: 8.426 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.6652, allocations: 0 / 1.177 GB, free: 8.426 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.6652, allocations: 0 / 1.177 GB, free: 8.426 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002324/0.6675, allocations: 0.7917 MB / 1.178 GB, free: 7.617 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001364/0.6677, allocations: 117 kB / 1.178 GB, free: 7.484 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.266e-05/0.6678, allocations: 8 kB / 1.178 GB, free: 7.477 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006335/0.6684, allocations: 44 kB / 1.178 GB, free: 7.434 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.8e-05/0.6685, allocations: 27.92 kB / 1.178 GB, free: 7.406 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.55e-05/0.6686, allocations: 31.88 kB / 1.178 GB, free: 7.375 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.397e-05/0.6686, allocations: 79.27 kB / 1.178 GB, free: 7.297 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6686, allocations: 8 kB / 1.178 GB, free: 7.289 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003457/0.669, allocations: 48 kB / 1.178 GB, free: 7.242 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_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 (11): * Single equations (assignments): 11 * 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.002698/0.6717, allocations: 1.342 MB / 1.179 GB, free: 5.875 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001438/0.6731, allocations: 420.9 kB / 1.18 GB, free: 5.465 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.89e-06/0.6732, allocations: 4 kB / 1.18 GB, free: 5.461 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0007369/0.6739, allocations: 231.6 kB / 1.18 GB, free: 5.234 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00035/0.6743, allocations: 8 kB / 1.18 GB, free: 5.227 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008336/0.6826, allocations: 2.944 MB / 1.183 GB, free: 2.203 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003043/0.6829, allocations: 0.6924 MB / 1.183 GB, free: 1.484 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0004989/0.6834, allocations: 97.67 kB / 1.184 GB, free: 1.391 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002671/0.6837, allocations: 63.3 kB / 1.184 GB, free: 1.328 MB / 0.9044 GB Notification: Performance of SimCode: time 3.01e-07/0.6837, allocations: 0 / 1.184 GB, free: 1.328 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.655/2.339, allocations: 4.591 MB / 1.188 GB, free: 12.87 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.34/21.68, allocations: 9.203 kB / 1.188 GB, free: 12.86 MB / 0.92 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check_fmu --startTime=-1.5 --stopTime=1.5 --timeout=400 --tolerance=1e-08 Buildings_10_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.500000 File[388]=-1.113000 " Variables in the reference:time,y,y_comp,der_y,der_y_comp,der_err,err Variables in the result:cheEqu1.threShold,cheEqu1.u1,cheEqu1.u2,cheEqu1.y,cheEqu2.threShold,cheEqu2.u1,cheEqu2.u2,cheEqu2.y,delta,der(der(x)),der(der_y),der(der_y_comp),der(x),der(y),der(y_comp),der_err,der_y,der_y_comp,err,time,x,y,y_comp