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 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: translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001401/0.001402, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.343/1.343, allocations: 222.9 MB / 240.2 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.771/2.771, allocations: 472.6 MB / 0.7451 GB, free: 4.598 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 76.56 kB / 0.9121 GB, free: 33.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2978, allocations: 159.9 MB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001921/0.2997, allocations: 0.599 MB / 1.069 GB, free: 9.742 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001896/0.3016, allocations: 1.452 MB / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.475e-05/0.3017, allocations: 0 / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.317e-05/0.3017, allocations: 3.938 kB / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.813e-05/0.3017, allocations: 0 / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000458/0.3022, allocations: 139.4 kB / 1.07 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.379e-05/0.3023, allocations: 35.91 kB / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.647e-05/0.3023, allocations: 7.984 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.096e-05/0.3024, allocations: 11.98 kB / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.995e-05/0.3025, allocations: 23.91 kB / 1.07 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.73e-05/0.3025, allocations: 4 kB / 1.07 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004312/0.3029, allocations: 319.3 kB / 1.071 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.678e-05/0.3029, allocations: 7.984 kB / 1.071 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.843e-05/0.303, allocations: 15.92 kB / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002807/0.3033, allocations: 183.7 kB / 1.071 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3033, allocations: 0 / 1.071 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3033, allocations: 0 / 1.071 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.147e-06/0.3033, allocations: 4 kB / 1.071 GB, free: 7.531 MB / 0.8262 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.0005105/0.3038, allocations: 363.7 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.3039, allocations: 8.031 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004763/0.3043, allocations: 76.75 kB / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.899e-05/0.3044, allocations: 160.4 kB / 1.072 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/0.3045, allocations: 4.375 kB / 1.072 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.14e-05/0.3045, allocations: 4.375 kB / 1.072 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002476/0.3047, allocations: 81.88 kB / 1.072 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.3048, allocations: 0 / 1.072 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.504e-05/0.3048, allocations: 4 kB / 1.072 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.3048, allocations: 0 / 1.072 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003009/0.3051, allocations: 63.92 kB / 1.072 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001881/0.3053, allocations: 165.7 kB / 1.072 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005977/0.3059, allocations: 118.6 kB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001669/0.3061, allocations: 48.91 kB / 1.072 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004634/0.3066, allocations: 153 kB / 1.072 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.3066, allocations: 34.5 kB / 1.072 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 1.192e-06/0.3066, allocations: 0 / 1.072 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5): time 0.001126/0.3077, allocations: 406.4 kB / 1.073 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.938e-05/0.3078, allocations: 55.41 kB / 1.073 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.589e-05/0.3078, allocations: 97.84 kB / 1.073 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.3079, allocations: 29.7 kB / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.563e-05/0.3079, allocations: 80.14 kB / 1.073 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.911e-05/0.3079, allocations: 15.75 kB / 1.073 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.504e-05/0.308, allocations: 25.7 kB / 1.073 GB, free: 5.309 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.722e-05/0.3081, allocations: 310.8 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001702/0.3082, allocations: 36.09 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001476/0.3084, allocations: 35.97 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002943/0.3087, allocations: 76.73 kB / 1.073 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-07/0.3087, allocations: 0 / 1.073 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003661/0.3091, allocations: 133.6 kB / 1.073 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.3091, allocations: 8 kB / 1.073 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.3091, allocations: 3.938 kB / 1.073 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.3091, allocations: 0 / 1.073 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/0.3093, allocations: 27.97 kB / 1.073 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.3093, allocations: 0 / 1.073 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.904e-05/0.3094, allocations: 11.98 kB / 1.073 GB, free: 4.66 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.3094, allocations: 4 kB / 1.073 GB, free: 4.656 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 7.516e-05/0.3095, allocations: 111.4 kB / 1.074 GB, free: 4.539 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.779e-05/0.3095, allocations: 3.938 kB / 1.074 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004496/0.31, allocations: 137.1 kB / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.31, allocations: 4 kB / 1.074 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.31, allocations: 0 / 1.074 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.31, allocations: 0 / 1.074 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001266/0.3101, allocations: 169.6 kB / 1.074 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-06/0.3101, allocations: 4 kB / 1.074 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001555/0.3103, allocations: 27.91 kB / 1.074 GB, free: 4.145 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.3103, allocations: 4 kB / 1.074 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.3103, allocations: 0 / 1.074 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3103, allocations: 0 / 1.074 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3103, allocations: 0 / 1.074 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005607/0.3109, allocations: 189 kB / 1.074 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.604e-05/0.311, allocations: 92.97 kB / 1.074 GB, free: 3.828 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.917e-05/0.311, allocations: 3.984 kB / 1.074 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.3111, allocations: 15.98 kB / 1.074 GB, free: 3.809 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.409e-05/0.3112, allocations: 4 kB / 1.074 GB, free: 3.805 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.704e-06/0.3112, allocations: 192 / 1.074 GB, free: 3.805 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.384e-05/0.3112, allocations: 87.33 kB / 1.074 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3112, allocations: 0 / 1.074 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002187/0.3114, allocations: 24 kB / 1.074 GB, free: 3.695 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.0001928/0.3116, allocations: 131.8 kB / 1.074 GB, free: 3.555 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000371/0.312, allocations: 91.95 kB / 1.075 GB, free: 3.465 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.312, allocations: 0 / 1.075 GB, free: 3.465 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.00018/0.3122, allocations: 39.97 kB / 1.075 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001443/0.3124, allocations: 12.5 kB / 1.075 GB, free: 3.414 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000593/0.313, allocations: 197.5 kB / 1.075 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002116/0.3132, allocations: 0.684 MB / 1.075 GB, free: 2.488 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001069/0.3133, allocations: 15.98 kB / 1.075 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.297e-05/0.3134, allocations: 23.36 kB / 1.075 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.3134, allocations: 0 / 1.075 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of Templates: time 0.003156/0.3165, allocations: 1.156 MB / 1.077 GB, free: 1.297 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches