Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.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.InverseXDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",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.0009073/0.0009073, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005452/0.005452, allocations: 170.7 kB / 16.26 MB, free: 6.676 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.259/1.259, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.524/2.524, allocations: 462.6 MB / 0.7364 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003132/0.0003133, allocations: 11.62 kB / 0.9029 GB, free: 36.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2636, allocations: 159.6 MB / 1.059 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.0006569/0.2643, allocations: 354.6 kB / 1.059 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001628/0.266, allocations: 1.454 MB / 1.061 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.156e-05/0.266, allocations: 3.938 kB / 1.061 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.629e-06/0.266, allocations: 0 / 1.061 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.548e-05/0.2661, allocations: 0 / 1.061 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003698/0.2664, allocations: 115.7 kB / 1.061 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.73e-05/0.2665, allocations: 23.98 kB / 1.061 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.037e-05/0.2665, allocations: 0 / 1.061 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.461e-05/0.2666, allocations: 19.92 kB / 1.061 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.105e-05/0.2667, allocations: 31.89 kB / 1.061 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.327e-05/0.2667, allocations: 0 / 1.061 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000384/0.2671, allocations: 315.4 kB / 1.061 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.486e-05/0.2671, allocations: 11.98 kB / 1.061 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.32e-05/0.2671, allocations: 37.62 kB / 1.061 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002471/0.2674, allocations: 183.7 kB / 1.061 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.2674, allocations: 0 / 1.061 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2674, allocations: 0 / 1.061 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.975e-06/0.2674, allocations: 0 / 1.061 GB, free: 2.277 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004416/0.2678, allocations: 363.7 kB / 1.062 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.2679, allocations: 11.97 kB / 1.062 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.039e-05/0.2679, allocations: 38.75 kB / 1.062 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004291/0.2684, allocations: 80.84 kB / 1.062 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.333e-05/0.2685, allocations: 160.4 kB / 1.062 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.2685, allocations: 8.375 kB / 1.062 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.032e-05/0.2685, allocations: 4.281 kB / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002456/0.2688, allocations: 97.67 kB / 1.062 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.961e-06/0.2688, allocations: 0 / 1.062 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.2688, allocations: 4 kB / 1.062 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.2688, allocations: 0 / 1.062 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000289/0.2691, allocations: 75.94 kB / 1.062 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001608/0.2693, allocations: 165.7 kB / 1.062 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005656/0.2698, allocations: 138.6 kB / 1.062 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.27, allocations: 56.8 kB / 1.062 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004469/0.2705, allocations: 177 kB / 1.063 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.391e-05/0.2705, allocations: 38.5 kB / 1.063 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.202e-06/0.2705, allocations: 0 / 1.063 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.001114/0.2716, allocations: 442.1 kB / 1.063 GB, free: 220 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.992e-05/0.2717, allocations: 55.41 kB / 1.063 GB, free: 152 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.186e-05/0.2717, allocations: 89.86 kB / 1.063 GB, free: 52 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.2718, allocations: 29.7 kB / 1.063 GB, free: 16 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.461e-05/0.2718, allocations: 80.14 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.458e-05/0.2718, allocations: 15.75 kB / 1.063 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.916e-05/0.2719, allocations: 17.7 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.369e-05/0.272, allocations: 315 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.2721, allocations: 43.97 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001449/0.2723, allocations: 43.95 kB / 1.064 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002932/0.2726, allocations: 84.81 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.11e-07/0.2726, allocations: 3.938 kB / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003586/0.2729, allocations: 129.6 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.273, allocations: 4 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.273, allocations: 7.938 kB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/0.273, allocations: 4 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001403/0.2731, allocations: 23.97 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/0.2732, allocations: 4 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.963e-05/0.2733, allocations: 15.98 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.2733, allocations: 8 kB / 1.064 GB, free: 15.2 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 (6): * Single equations (assignments): 6 * 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 6.92e-05/0.2733, allocations: 105.8 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.535e-05/0.2734, allocations: 11.84 kB / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004397/0.2738, allocations: 149.1 kB / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.2738, allocations: 320 / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.2738, allocations: 0 / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.2738, allocations: 0 / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001171/0.274, allocations: 173.7 kB / 1.064 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.274, allocations: 3.938 kB / 1.064 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000156/0.2741, allocations: 31.97 kB / 1.064 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.2741, allocations: 0 / 1.064 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.926e-06/0.2742, allocations: 0 / 1.064 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.2742, allocations: 0 / 1.064 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.2742, allocations: 0 / 1.064 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005528/0.2747, allocations: 213 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.512e-05/0.2748, allocations: 88.97 kB / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.541e-05/0.2748, allocations: 336 / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.2749, allocations: 20.05 kB / 1.065 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.272e-05/0.275, allocations: 8 kB / 1.065 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-06/0.275, allocations: 0 / 1.065 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.853e-05/0.275, allocations: 87.27 kB / 1.065 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.275, allocations: 0 / 1.065 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002193/0.2752, allocations: 24 kB / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0008501/0.2761, allocations: 0.7866 MB / 1.066 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003493/0.2765, allocations: 92 kB / 1.066 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2765, allocations: 0 / 1.066 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001721/0.2767, allocations: 59.89 kB / 1.066 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001436/0.2768, allocations: 7.875 kB / 1.066 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001835/0.2786, allocations: 1.406 MB / 1.067 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001922/0.2788, allocations: 0.677 MB / 1.068 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001049/0.279, allocations: 20.06 kB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.233e-05/0.279, allocations: 19.42 kB / 1.068 GB, free: 11 MB / 0.8262 GB Notification: Performance of SimCode: time 2.9e-07/0.279, allocations: 0 / 1.068 GB, free: 11 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.293/1.572, allocations: 1.839 MB / 1.07 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002343/1.572, allocations: 221.9 kB / 1.07 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.706/3.278, allocations: 3.094 kB / 1.07 GB, free: 9.09 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[1]=-1.000000 " Variables in the reference:time,y_comp,y Variables in the result:delta,der(x),der(y_comp),err,time,x,y,y_comp