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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.004585/0.004585, allocations: 101.3 kB / 15.73 MB, free: 6.016 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.001145/0.001145, allocations: 194.4 kB / 16.68 MB, free: 5.934 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.795/2.795, allocations: 482.6 MB / 0.755 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 63.91 kB / 1.083 GB, free: 12.13 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2921, allocations: 162.3 MB / 1.242 GB, free: 9.723 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001974/0.2941, allocations: 0.7836 MB / 1.243 GB, free: 8.938 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001961/0.2961, allocations: 1.47 MB / 1.244 GB, free: 7.449 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.285e-05/0.2961, allocations: 0 / 1.244 GB, free: 7.449 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.128e-05/0.2962, allocations: 3.938 kB / 1.244 GB, free: 7.445 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.607e-05/0.2962, allocations: 7.938 kB / 1.244 GB, free: 7.438 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005031/0.2968, allocations: 139.4 kB / 1.244 GB, free: 7.301 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001042/0.2969, allocations: 47.91 kB / 1.244 GB, free: 7.254 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.034e-05/0.2969, allocations: 11.98 kB / 1.244 GB, free: 7.242 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.166e-05/0.297, allocations: 23.92 kB / 1.244 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.86e-05/0.2971, allocations: 31.89 kB / 1.244 GB, free: 7.188 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.805e-05/0.2971, allocations: 4 kB / 1.244 GB, free: 7.184 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004955/0.2976, allocations: 327.3 kB / 1.245 GB, free: 6.863 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.257e-05/0.2976, allocations: 15.92 kB / 1.245 GB, free: 6.848 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.512e-05/0.2977, allocations: 23.86 kB / 1.245 GB, free: 6.824 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003273/0.298, allocations: 207.4 kB / 1.245 GB, free: 6.621 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.298, allocations: 4 kB / 1.245 GB, free: 6.617 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.893e-06/0.298, allocations: 0 / 1.245 GB, free: 6.617 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.298, allocations: 0 / 1.245 GB, free: 6.617 MB / 0.9981 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.0006517/0.2987, allocations: 406.9 kB / 1.245 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.2987, allocations: 12.03 kB / 1.245 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.271e-05/0.2988, allocations: 38.73 kB / 1.245 GB, free: 6.113 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000438/0.2992, allocations: 76.8 kB / 1.245 GB, free: 6.039 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/0.2994, allocations: 172.3 kB / 1.246 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.688e-05/0.2994, allocations: 8.375 kB / 1.246 GB, free: 5.824 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.622e-05/0.2994, allocations: 4.375 kB / 1.246 GB, free: 5.82 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003724/0.2998, allocations: 125 kB / 1.246 GB, free: 5.695 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.2998, allocations: 0 / 1.246 GB, free: 5.695 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.2999, allocations: 0 / 1.246 GB, free: 5.695 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.2999, allocations: 4 kB / 1.246 GB, free: 5.691 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005554/0.3004, allocations: 103.9 kB / 1.246 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005718/0.301, allocations: 332.7 kB / 1.246 GB, free: 5.215 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006472/0.3017, allocations: 146.5 kB / 1.246 GB, free: 5.062 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002552/0.3019, allocations: 64.8 kB / 1.246 GB, free: 4.996 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.155e-05/0.302, allocations: 160 / 1.246 GB, free: 4.996 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.302, allocations: 34.56 kB / 1.246 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 9.21e-07/0.302, allocations: 0 / 1.246 GB, free: 4.953 MB / 0.9981 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.32, allocations: 2.844 MB / 1.249 GB, free: 2.016 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.843e-05/0.3201, allocations: 59.34 kB / 1.249 GB, free: 1.945 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.305e-05/0.3202, allocations: 97.86 kB / 1.249 GB, free: 1.84 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.634e-05/0.3202, allocations: 29.7 kB / 1.249 GB, free: 1.805 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.238e-05/0.3203, allocations: 88.12 kB / 1.249 GB, free: 1.715 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 6.765e-05/0.3204, allocations: 43.58 kB / 1.249 GB, free: 1.672 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001707/0.3205, allocations: 69.58 kB / 1.25 GB, free: 1.598 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3207, allocations: 314.8 kB / 1.25 GB, free: 1.281 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006901/0.3214, allocations: 195.8 kB / 1.25 GB, free: 1.09 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006814/0.3221, allocations: 191.8 kB / 1.25 GB, free: 0.9023 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001401/0.3235, allocations: 388.5 kB / 1.251 GB, free: 0.5195 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.3235, allocations: 0 / 1.251 GB, free: 0.5195 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001634/0.3251, allocations: 485.2 kB / 1.251 GB, free: 40 kB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.3251, allocations: 8 kB / 1.251 GB, free: 32 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.3252, allocations: 0 / 1.251 GB, free: 32 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.3252, allocations: 0 / 1.251 GB, free: 32 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.5447/0.8699, allocations: 105.7 kB / 1.251 GB, free: 15.03 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.87, allocations: 1.484 kB / 1.251 GB, free: 15.03 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006131/0.8706, allocations: 44.89 kB / 1.251 GB, free: 15.03 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.832e-05/0.8707, allocations: 28.89 kB / 1.251 GB, free: 15.03 MB / 0.9981 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.0001356/0.8708, allocations: 115.7 kB / 1.251 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.417e-05/0.8709, allocations: 7.344 kB / 1.251 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.714e-05/0.8709, allocations: 15.77 kB / 1.251 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.871, allocations: 1.781 kB / 1.251 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.871, allocations: 1.094 kB / 1.251 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.871, allocations: 1.625 kB / 1.251 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002154/0.8731, allocations: 1.047 MB / 1.252 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/0.8732, allocations: 5.953 kB / 1.252 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008355/0.874, allocations: 105.2 kB / 1.252 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.874, allocations: 0.8125 kB / 1.252 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.006e-05/0.8741, allocations: 25.5 kB / 1.253 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.8741, allocations: 0.9062 kB / 1.253 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.8741, allocations: 4.094 kB / 1.253 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0024/0.8765, allocations: 0.7979 MB / 1.253 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.8766, allocations: 116.1 kB / 1.253 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.334e-05/0.8767, allocations: 1.516 kB / 1.253 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006737/0.8774, allocations: 49.3 kB / 1.253 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001148/0.8775, allocations: 27.59 kB / 1.253 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.447e-05/0.8776, allocations: 24.02 kB / 1.254 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 2.8e-05/0.8776, allocations: 82.73 kB / 1.254 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8776, allocations: 0.75 kB / 1.254 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003981/0.878, allocations: 50.2 kB / 1.254 GB, free: 14.06 MB / 0.9981 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.002629/0.8807, allocations: 1.35 MB / 1.255 GB, free: 13.41 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001592/0.8823, allocations: 423 kB / 1.255 GB, free: 13.41 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.8823, allocations: 0 / 1.255 GB, free: 13.41 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007839/0.8831, allocations: 225.9 kB / 1.256 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003849/0.8835, allocations: 15.34 kB / 1.256 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008543/0.892, allocations: 2.937 MB / 1.258 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001151/0.8922, allocations: 0.6943 MB / 1.259 GB, free: 11.13 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0005194/0.8927, allocations: 92.84 kB / 1.259 GB, free: 11.08 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000268/0.893, allocations: 67.7 kB / 1.259 GB, free: 11.06 MB / 0.9981 GB Notification: Performance of SimCode: time 8.72e-07/0.893, allocations: 0 / 1.259 GB, free: 11.06 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2198/1.113, allocations: 4.58 MB / 1.264 GB, free: 10.59 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.232/9.345, allocations: 6.234 kB / 1.264 GB, free: 10.59 MB / 0.9981 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=400 --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[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