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.0013/0.0013, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001306/0.001306, allocations: 189.8 kB / 16.25 MB, free: 6.633 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.284/1.284, allocations: 222.9 MB / 239.9 MB, free: 4.523 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.366/2.366, allocations: 437 MB / 0.7101 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 72.11 kB / 0.8689 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6166/0.6178, allocations: 151.6 MB / 1.017 GB, free: 2.809 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001992/0.6198, allocations: 0.8489 MB / 1.018 GB, free: 1.957 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001623/0.6215, allocations: 1.47 MB / 1.019 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.088e-05/0.6215, allocations: 0 / 1.019 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.975e-05/0.6216, allocations: 3.938 kB / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.97e-05/0.6216, allocations: 0 / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004352/0.622, allocations: 119.7 kB / 1.019 GB, free: 356 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.975e-05/0.6221, allocations: 51.89 kB / 1.019 GB, free: 304 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.016e-05/0.6222, allocations: 11.89 kB / 1.019 GB, free: 292 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.548e-05/0.6222, allocations: 27.92 kB / 1.019 GB, free: 264 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.725e-05/0.6223, allocations: 35.83 kB / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.594e-05/0.6223, allocations: 11.94 kB / 1.019 GB, free: 216 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004135/0.6227, allocations: 315.4 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.989e-05/0.6228, allocations: 23.91 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.121e-05/0.6228, allocations: 23.86 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002835/0.6231, allocations: 209.9 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.6231, allocations: 0 / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.092e-06/0.6231, allocations: 0 / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.6231, allocations: 0 / 1.02 GB, free: 15.65 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.0006028/0.6237, allocations: 399.4 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.6238, allocations: 8.031 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.777e-05/0.6238, allocations: 38.73 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004306/0.6243, allocations: 72.84 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001126/0.6244, allocations: 168.2 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.828e-05/0.6244, allocations: 8.375 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.505e-05/0.6244, allocations: 16.23 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003565/0.6248, allocations: 113.7 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.6248, allocations: 0 / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.6248, allocations: 4 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.6248, allocations: 0 / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004523/0.6253, allocations: 103.9 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005502/0.6259, allocations: 336.6 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000611/0.6265, allocations: 150.5 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002213/0.6267, allocations: 60.8 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.427e-05/0.6267, allocations: 0 / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.312e-05/0.6268, allocations: 34.56 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 8.82e-07/0.6268, allocations: 0 / 1.021 GB, free: 14 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.01799/0.6448, allocations: 2.83 MB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.741e-05/0.6448, allocations: 55.34 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.745e-05/0.6449, allocations: 101.9 kB / 1.024 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.194e-05/0.6449, allocations: 33.7 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.769e-05/0.645, allocations: 88.03 kB / 1.024 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.729e-05/0.6451, allocations: 43.38 kB / 1.025 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001646/0.6452, allocations: 69.58 kB / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.808e-05/0.6453, allocations: 318.8 kB / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006255/0.646, allocations: 191.8 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006159/0.6466, allocations: 195.9 kB / 1.025 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001221/0.6478, allocations: 392.2 kB / 1.026 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.11e-07/0.6478, allocations: 4.094 kB / 1.026 GB, free: 9.566 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001431/0.6493, allocations: 481 kB / 1.026 GB, free: 9.09 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.6493, allocations: 8 kB / 1.026 GB, free: 9.082 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.446e-06/0.6493, allocations: 0 / 1.026 GB, free: 9.082 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.839e-06/0.6493, allocations: 0 / 1.026 GB, free: 9.082 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008284/0.6502, allocations: 111.7 kB / 1.026 GB, free: 8.973 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.6502, allocations: 0 / 1.026 GB, free: 8.973 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006001/0.6508, allocations: 47.94 kB / 1.026 GB, free: 8.926 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.601e-05/0.6508, allocations: 27.92 kB / 1.026 GB, free: 8.898 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.0001524/0.651, allocations: 117.8 kB / 1.026 GB, free: 8.773 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.492e-05/0.6511, allocations: 3.906 kB / 1.026 GB, free: 8.77 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.916e-05/0.6511, allocations: 15.97 kB / 1.026 GB, free: 8.75 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.6511, allocations: 3.938 kB / 1.026 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.6511, allocations: 0 / 1.026 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-06/0.6511, allocations: 0 / 1.026 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002113/0.6533, allocations: 1.055 MB / 1.027 GB, free: 7.582 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.6533, allocations: 0 / 1.027 GB, free: 7.582 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008274/0.6541, allocations: 111.7 kB / 1.028 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.6541, allocations: 0 / 1.028 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.669e-05/0.6542, allocations: 19.94 kB / 1.028 GB, free: 7.453 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.6542, allocations: 7.984 kB / 1.028 GB, free: 7.445 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.6542, allocations: 192 / 1.028 GB, free: 7.445 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002241/0.6565, allocations: 0.7878 MB / 1.028 GB, free: 6.641 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001369/0.6566, allocations: 121 kB / 1.028 GB, free: 6.504 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.703e-05/0.6567, allocations: 3.984 kB / 1.028 GB, free: 6.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006895/0.6574, allocations: 52 kB / 1.029 GB, free: 6.449 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.6575, allocations: 27.92 kB / 1.029 GB, free: 6.422 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.557e-05/0.6576, allocations: 19.94 kB / 1.029 GB, free: 6.402 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.127e-05/0.6576, allocations: 83.28 kB / 1.029 GB, free: 6.32 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.693e-06/0.6576, allocations: 0 / 1.029 GB, free: 6.32 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000367/0.658, allocations: 63.94 kB / 1.029 GB, free: 6.258 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.002615/0.6606, allocations: 1.356 MB / 1.03 GB, free: 4.875 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001382/0.662, allocations: 423.6 kB / 1.03 GB, free: 4.461 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.662, allocations: 0 / 1.03 GB, free: 4.461 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0006763/0.6627, allocations: 231.7 kB / 1.031 GB, free: 4.234 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.663, allocations: 10.98 kB / 1.031 GB, free: 4.227 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008301/0.6714, allocations: 2.953 MB / 1.034 GB, free: 1.195 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003507/0.6717, allocations: 0.6924 MB / 1.034 GB, free: 488 kB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0006972/0.6724, allocations: 96.66 kB / 1.034 GB, free: 392 kB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002566/0.6727, allocations: 63.3 kB / 1.034 GB, free: 328 kB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.6727, allocations: 0 / 1.034 GB, free: 328 kB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1249/0.7975, allocations: 4.457 MB / 1.039 GB, free: 12.02 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002185/0.7978, allocations: 226.2 kB / 1.039 GB, free: 11.77 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.652/3.45, allocations: 3.5 kB / 1.039 GB, free: 11.77 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