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.001266/0.001266, 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.001268/0.001268, allocations: 194.4 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.264/1.264, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.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.444/2.444, allocations: 437 MB / 0.7104 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 71.89 kB / 0.8694 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5727/0.574, allocations: 151.6 MB / 1.017 GB, free: 2.496 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002364/0.5764, allocations: 0.7841 MB / 1.018 GB, free: 1.707 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002084/0.5785, allocations: 1.47 MB / 1.02 GB, free: 224 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.161e-05/0.5786, allocations: 0 / 1.02 GB, free: 224 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.822e-05/0.5787, allocations: 7.922 kB / 1.02 GB, free: 216 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.921e-05/0.5788, allocations: 7.938 kB / 1.02 GB, free: 208 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005733/0.5793, allocations: 143.4 kB / 1.02 GB, free: 64 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.896e-05/0.5794, allocations: 51.89 kB / 1.02 GB, free: 12 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.172e-05/0.5795, allocations: 11.89 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.535e-05/0.5796, allocations: 28.03 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.087e-05/0.5796, allocations: 31.84 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.846e-05/0.5797, allocations: 4 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004542/0.5801, allocations: 323.2 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.239e-05/0.5801, allocations: 19.92 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.239e-05/0.5802, allocations: 19.92 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003098/0.5805, allocations: 209.8 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.5805, allocations: 0 / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.142e-06/0.5805, allocations: 0 / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.5805, allocations: 0 / 1.02 GB, free: 15.38 MB / 0.7794 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.0006457/0.5812, allocations: 399.4 kB / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.5812, allocations: 12.03 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.865e-05/0.5813, allocations: 42.73 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004697/0.5818, allocations: 72.84 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.5819, allocations: 172.2 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.387e-05/0.5819, allocations: 8.375 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.908e-05/0.582, allocations: 8.312 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003761/0.5824, allocations: 113.7 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.5824, allocations: 8 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.483e-05/0.5824, allocations: 0 / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.5824, allocations: 4 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004866/0.5829, allocations: 99.89 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005321/0.5834, allocations: 332.6 kB / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006519/0.5841, allocations: 154.4 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002417/0.5844, allocations: 56.8 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.5844, allocations: 4 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.5844, allocations: 38.56 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.5844, allocations: 0 / 1.022 GB, free: 13.71 MB / 0.7794 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.01757/0.602, allocations: 2.831 MB / 1.025 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/0.6021, allocations: 59.34 kB / 1.025 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.04e-05/0.6022, allocations: 97.86 kB / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.651e-05/0.6022, allocations: 29.7 kB / 1.025 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.19e-05/0.6023, allocations: 96.03 kB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.231e-05/0.6023, allocations: 39.39 kB / 1.025 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001622/0.6025, allocations: 73.67 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001149/0.6026, allocations: 318.8 kB / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006754/0.6033, allocations: 187.8 kB / 1.026 GB, free: 9.859 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006565/0.604, allocations: 195.8 kB / 1.026 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001337/0.6053, allocations: 395.2 kB / 1.026 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.6054, allocations: 0 / 1.026 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001541/0.6069, allocations: 485.2 kB / 1.027 GB, free: 8.801 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.6069, allocations: 4 kB / 1.027 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.6069, allocations: 0 / 1.027 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.607, allocations: 4 kB / 1.027 GB, free: 8.793 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008143/0.6078, allocations: 107.7 kB / 1.027 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.6078, allocations: 0 / 1.027 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005968/0.6084, allocations: 43.94 kB / 1.027 GB, free: 8.645 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.589e-05/0.6085, allocations: 31.92 kB / 1.027 GB, free: 8.613 MB / 0.7794 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.0001562/0.6086, allocations: 117.8 kB / 1.027 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.891e-05/0.6087, allocations: 7.906 kB / 1.027 GB, free: 8.48 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.811e-05/0.6088, allocations: 7.969 kB / 1.027 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.6088, allocations: 7.938 kB / 1.027 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.6088, allocations: 0 / 1.027 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.6088, allocations: 0 / 1.027 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002234/0.6111, allocations: 1.051 MB / 1.028 GB, free: 7.301 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.6111, allocations: 0 / 1.028 GB, free: 7.301 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008186/0.6119, allocations: 119.7 kB / 1.028 GB, free: 7.184 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.6119, allocations: 0 / 1.028 GB, free: 7.184 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.253e-05/0.612, allocations: 23.94 kB / 1.028 GB, free: 7.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.612, allocations: 0 / 1.028 GB, free: 7.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.612, allocations: 3.984 kB / 1.028 GB, free: 7.156 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002355/0.6143, allocations: 0.7917 MB / 1.029 GB, free: 6.348 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001436/0.6145, allocations: 117 kB / 1.029 GB, free: 6.215 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.978e-05/0.6146, allocations: 0 / 1.029 GB, free: 6.215 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006725/0.6153, allocations: 55.98 kB / 1.029 GB, free: 6.16 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.354e-05/0.6154, allocations: 23.92 kB / 1.029 GB, free: 6.137 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.358e-05/0.6154, allocations: 23.94 kB / 1.029 GB, free: 6.113 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.603e-05/0.6155, allocations: 79.28 kB / 1.029 GB, free: 6.035 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6155, allocations: 0 / 1.029 GB, free: 6.035 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003721/0.6158, allocations: 52 kB / 1.029 GB, free: 5.984 MB / 0.7794 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.002621/0.6185, allocations: 1.349 MB / 1.03 GB, free: 4.609 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001431/0.6199, allocations: 433.5 kB / 1.031 GB, free: 4.188 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.6199, allocations: 0 / 1.031 GB, free: 4.188 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0007107/0.6206, allocations: 227.6 kB / 1.031 GB, free: 3.965 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003538/0.621, allocations: 17.66 kB / 1.031 GB, free: 3.949 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008432/0.6294, allocations: 2.925 MB / 1.034 GB, free: 0.9453 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000227/0.6297, allocations: 0.6924 MB / 1.035 GB, free: 232 kB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0006261/0.6303, allocations: 89.08 kB / 1.035 GB, free: 144 kB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002566/0.6306, allocations: 71.17 kB / 1.035 GB, free: 76 kB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.6306, allocations: 0 / 1.035 GB, free: 76 kB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01969/0.6503, allocations: 4.543 MB / 1.039 GB, free: 11.64 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.239/7.889, allocations: 6.953 kB / 1.039 GB, free: 11.64 MB / 0.795 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=50 --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[1]=-1.500000 " 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