Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.0009043/0.0009043, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.005269/0.005269, allocations: 170 kB / 16.27 MB, free: 6.648 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.288/1.288, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.548/2.548, allocations: 462.7 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003244/0.0003245, allocations: 11.34 kB / 0.9029 GB, free: 36.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2562, allocations: 159.6 MB / 1.059 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.0008742/0.2571, allocations: 0.5113 MB / 1.059 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001612/0.2588, allocations: 1.482 MB / 1.061 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.907e-05/0.2588, allocations: 3.938 kB / 1.061 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.674e-05/0.2588, allocations: 0 / 1.061 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.56e-05/0.2589, allocations: 11.94 kB / 1.061 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003714/0.2592, allocations: 111.7 kB / 1.061 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.611e-05/0.2593, allocations: 47.91 kB / 1.061 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.882e-05/0.2594, allocations: 8 kB / 1.061 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.129e-05/0.2594, allocations: 27.91 kB / 1.061 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.428e-05/0.2595, allocations: 27.91 kB / 1.061 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.318e-05/0.2595, allocations: 4 kB / 1.061 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003908/0.2599, allocations: 315.3 kB / 1.061 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.987e-05/0.2599, allocations: 15.92 kB / 1.061 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.191e-05/0.26, allocations: 53.55 kB / 1.061 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002613/0.2603, allocations: 203.9 kB / 1.062 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.2603, allocations: 0 / 1.062 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.453e-06/0.2603, allocations: 3.938 kB / 1.062 GB, free: 2 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.458e-06/0.2603, allocations: 8 kB / 1.062 GB, free: 1.992 MB / 0.8106 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.0005315/0.2608, allocations: 383.4 kB / 1.062 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.487e-05/0.2609, allocations: 11.97 kB / 1.062 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.964e-05/0.2609, allocations: 42.73 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004395/0.2614, allocations: 84.84 kB / 1.062 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.153e-05/0.2615, allocations: 176.2 kB / 1.062 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.2615, allocations: 8.375 kB / 1.062 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.092e-05/0.2615, allocations: 8.375 kB / 1.062 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003551/0.2619, allocations: 121.7 kB / 1.062 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.2619, allocations: 3.938 kB / 1.062 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.2619, allocations: 3.984 kB / 1.062 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.2619, allocations: 4 kB / 1.062 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000485/0.2624, allocations: 123.9 kB / 1.062 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005073/0.2629, allocations: 344.6 kB / 1.063 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006517/0.2636, allocations: 186.4 kB / 1.063 GB, free: 372 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002393/0.2638, allocations: 68.8 kB / 1.063 GB, free: 300 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.31e-05/0.2639, allocations: 0 / 1.063 GB, free: 300 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.002e-05/0.2639, allocations: 34.56 kB / 1.063 GB, free: 256 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 9.32e-07/0.2639, allocations: 0 / 1.063 GB, free: 256 kB / 0.8106 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.01854/0.2824, allocations: 3.177 MB / 1.066 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.2825, allocations: 55.34 kB / 1.066 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.187e-05/0.2826, allocations: 105.8 kB / 1.066 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.148e-05/0.2826, allocations: 33.8 kB / 1.066 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.646e-05/0.2827, allocations: 91.92 kB / 1.066 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.386e-05/0.2827, allocations: 43.44 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.426e-05/0.2828, allocations: 21.7 kB / 1.067 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.941e-05/0.2829, allocations: 318.8 kB / 1.067 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006705/0.2836, allocations: 211.8 kB / 1.067 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006576/0.2842, allocations: 219.8 kB / 1.067 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001347/0.2856, allocations: 440.5 kB / 1.068 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.2856, allocations: 4 kB / 1.068 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001522/0.2871, allocations: 0.524 MB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.2872, allocations: 4 kB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.2872, allocations: 0 / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.2872, allocations: 0 / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007999/0.288, allocations: 123.7 kB / 1.068 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.288, allocations: 4 kB / 1.068 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006269/0.2886, allocations: 59.94 kB / 1.068 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.264e-05/0.2887, allocations: 23.92 kB / 1.068 GB, free: 10.68 MB / 0.8262 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.0001303/0.2888, allocations: 113.8 kB / 1.068 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.322e-05/0.2889, allocations: 7.906 kB / 1.068 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.623e-05/0.289, allocations: 19.95 kB / 1.069 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.289, allocations: 7.938 kB / 1.069 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.289, allocations: 0 / 1.069 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.289, allocations: 0 / 1.069 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002096/0.2911, allocations: 1.09 MB / 1.07 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.2911, allocations: 0 / 1.07 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008031/0.2919, allocations: 131.7 kB / 1.07 GB, free: 9.191 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.063e-06/0.2919, allocations: 0 / 1.07 GB, free: 9.191 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.673e-05/0.292, allocations: 19.94 kB / 1.07 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.292, allocations: 0 / 1.07 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.292, allocations: 0 / 1.07 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002302/0.2943, allocations: 0.8698 MB / 1.071 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001272/0.2944, allocations: 121 kB / 1.071 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.602e-05/0.2945, allocations: 0 / 1.071 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000684/0.2952, allocations: 64 kB / 1.071 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.252e-05/0.2953, allocations: 32.11 kB / 1.071 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.061e-05/0.2953, allocations: 23.92 kB / 1.071 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.549e-05/0.2954, allocations: 87.27 kB / 1.071 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2954, allocations: 0 / 1.071 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003402/0.2957, allocations: 52 kB / 1.071 GB, free: 7.895 MB / 0.8262 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.002575/0.2983, allocations: 1.425 MB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001399/0.2997, allocations: 471.5 kB / 1.073 GB, free: 5.984 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2997, allocations: 3.938 kB / 1.073 GB, free: 5.98 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0007122/0.3004, allocations: 252.2 kB / 1.073 GB, free: 5.734 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003147/0.3008, allocations: 8 kB / 1.073 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008404/0.3092, allocations: 3.172 MB / 1.076 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002035/0.3094, allocations: 0.6965 MB / 1.077 GB, free: 1.75 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0006189/0.31, allocations: 96.72 kB / 1.077 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002637/0.3103, allocations: 63.3 kB / 1.077 GB, free: 1.594 MB / 0.8262 GB Notification: Performance of SimCode: time 3.11e-07/0.3103, allocations: 0 / 1.077 GB, free: 1.594 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.201/1.511, allocations: 4.233 MB / 1.081 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002682/1.511, allocations: 230.1 kB / 1.081 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.952/3.463, allocations: 1.25 kB / 1.081 GB, free: 13.27 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check_fmu --startTime=-1.5 --stopTime=1.5 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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