Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.InverseXDerivative_2_Check,fileNamePrefix="Buildings_9_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_9_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.004982/0.004982, allocations: 104.5 kB / 15.74 MB, free: 5.988 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.001083/0.001083, allocations: 196.2 kB / 16.67 MB, free: 5.914 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.321/1.321, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.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.384/2.384, allocations: 390.3 MB / 0.6648 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 63.91 kB / 0.9504 GB, free: 8.105 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.007/1.009, allocations: 140.4 MB / 1.088 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002061/1.011, allocations: 0.7811 MB / 1.088 GB, free: 4.785 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001965/1.013, allocations: 1.472 MB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.059e-05/1.013, allocations: 0 / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.136e-05/1.013, allocations: 4.547 kB / 1.09 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.247e-05/1.013, allocations: 12.94 kB / 1.09 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005832/1.013, allocations: 140.7 kB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001065/1.014, allocations: 52.75 kB / 1.09 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.538e-05/1.014, allocations: 8.812 kB / 1.09 GB, free: 3.613 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.675e-05/1.014, allocations: 27.23 kB / 1.09 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.916e-05/1.014, allocations: 35.94 kB / 1.09 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.728e-05/1.014, allocations: 7.781 kB / 1.09 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000562/1.014, allocations: 313.6 kB / 1.09 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.482e-05/1.014, allocations: 13.56 kB / 1.09 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.995e-05/1.014, allocations: 26.44 kB / 1.09 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003926/1.015, allocations: 218.6 kB / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/1.015, allocations: 0 / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.964e-06/1.015, allocations: 0.8438 kB / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.171e-06/1.015, allocations: 0 / 1.091 GB, free: 3.41 MB / 0.8575 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.0006492/1.015, allocations: 404.2 kB / 1.091 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/1.016, allocations: 9.344 kB / 1.091 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.151e-05/1.016, allocations: 34.33 kB / 1.091 GB, free: 2.977 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004644/1.016, allocations: 80.98 kB / 1.091 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.417e-05/1.016, allocations: 167.9 kB / 1.091 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.819e-05/1.016, allocations: 2.562 kB / 1.091 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.953e-05/1.016, allocations: 9.781 kB / 1.091 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003958/1.017, allocations: 118.9 kB / 1.091 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/1.017, allocations: 1.062 kB / 1.091 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.714e-05/1.017, allocations: 5.094 kB / 1.091 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/1.017, allocations: 1.156 kB / 1.091 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005244/1.017, allocations: 98.5 kB / 1.091 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005936/1.018, allocations: 339.1 kB / 1.092 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007371/1.019, allocations: 155.1 kB / 1.092 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002731/1.019, allocations: 62.66 kB / 1.092 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/1.019, allocations: 0.8125 kB / 1.092 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/1.019, allocations: 32.81 kB / 1.092 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/1.019, allocations: 0 / 1.092 GB, free: 2.273 MB / 0.8575 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.01916/1.038, allocations: 2.836 MB / 1.095 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.09e-05/1.038, allocations: 66.45 kB / 1.095 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.405e-05/1.038, allocations: 100.4 kB / 1.095 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.876e-05/1.038, allocations: 26.58 kB / 1.095 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.464e-05/1.038, allocations: 87.89 kB / 1.095 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.413e-05/1.038, allocations: 47.84 kB / 1.095 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000185/1.039, allocations: 68.64 kB / 1.095 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.419e-05/1.039, allocations: 315.1 kB / 1.095 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007218/1.039, allocations: 195.6 kB / 1.096 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007197/1.04, allocations: 189.4 kB / 1.096 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001449/1.042, allocations: 391.5 kB / 1.096 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/1.042, allocations: 4.703 kB / 1.096 GB, free: 0.5664 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001776/1.043, allocations: 472.7 kB / 1.097 GB, free: 448 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/1.043, allocations: 5.188 kB / 1.097 GB, free: 448 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/1.043, allocations: 1.922 kB / 1.097 GB, free: 448 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/1.043, allocations: 4.719 kB / 1.097 GB, free: 444 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008953/1.044, allocations: 114.3 kB / 1.097 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/1.044, allocations: 1.125 kB / 1.097 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000626/1.045, allocations: 46.11 kB / 1.097 GB, free: 428 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.056e-05/1.045, allocations: 23.84 kB / 1.097 GB, free: 428 kB / 0.8575 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.0001434/1.045, allocations: 113.7 kB / 1.097 GB, free: 308 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.12e-05/1.045, allocations: 10.28 kB / 1.097 GB, free: 300 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.885e-05/1.045, allocations: 15.34 kB / 1.097 GB, free: 280 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/1.045, allocations: 5.188 kB / 1.097 GB, free: 276 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/1.045, allocations: 0.7031 kB / 1.097 GB, free: 276 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/1.045, allocations: 13.61 kB / 1.097 GB, free: 264 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002395/1.048, allocations: 1.037 MB / 1.098 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/1.048, allocations: 1.734 kB / 1.098 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008752/1.049, allocations: 109.1 kB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/1.049, allocations: 1.125 kB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.367e-05/1.049, allocations: 26.34 kB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.646e-06/1.049, allocations: 4.844 kB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/1.049, allocations: 0.5156 kB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002564/1.051, allocations: 0.7835 MB / 1.099 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001803/1.052, allocations: 121.4 kB / 1.099 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.173e-05/1.052, allocations: 6 kB / 1.099 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007119/1.052, allocations: 47.47 kB / 1.099 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/1.052, allocations: 25.89 kB / 1.099 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.034e-05/1.053, allocations: 28.59 kB / 1.099 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 4.803e-05/1.053, allocations: 79.73 kB / 1.099 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.41e-07/1.053, allocations: 4 kB / 1.099 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004543/1.053, allocations: 51.53 kB / 1.099 GB, free: 15.07 MB / 0.8731 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.003008/1.056, allocations: 1.348 MB / 1.101 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001791/1.058, allocations: 425.2 kB / 1.101 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/1.058, allocations: 0 / 1.101 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008767/1.059, allocations: 231 kB / 1.101 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003969/1.059, allocations: 9.891 kB / 1.101 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009687/1.069, allocations: 2.938 MB / 1.104 GB, free: 12.51 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002865/1.069, allocations: 0.6911 MB / 1.105 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0005781/1.07, allocations: 88.38 kB / 1.105 GB, free: 11.76 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003202/1.07, allocations: 70.95 kB / 1.105 GB, free: 11.74 MB / 0.8731 GB Notification: Performance of SimCode: time 7.31e-07/1.07, allocations: 5.312 kB / 1.105 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02913/1.099, allocations: 4.665 MB / 1.109 GB, free: 11.21 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.708/8.807, allocations: 5.719 kB / 1.109 GB, free: 11.21 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check_fmu --startTime=-1.5 --stopTime=1.5 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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