Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.289/2.289, allocations: 387.1 MB / 399.7 MB, free: 9.41 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001013, allocations: 173 kB / 492.3 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.61/1.61, allocations: 221.3 MB / 0.7871 GB, free: 12.91 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008677/0.0008676, allocations: 95.88 kB / 0.9267 GB, free: 13.97 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.081e-05/3.082e-05, allocations: 7.938 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3195, allocations: 142.3 MB / 1.212 GB, free: 38.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.116/1.435, allocations: 149.9 MB / 1.359 GB, free: 18.97 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000264/1.436, allocations: 80.92 kB / 1.359 GB, free: 18.96 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01264/1.448, allocations: 4.11 MB / 1.363 GB, free: 34.43 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.757e-06/1.449, allocations: 0 / 1.363 GB, free: 34.43 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.12e-05/1.449, allocations: 0 / 1.363 GB, free: 34.43 MB / 0.8386 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.000546/1.449, allocations: 362.6 kB / 1.363 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.672e-05/1.449, allocations: 9.031 kB / 1.363 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004116/1.45, allocations: 69.22 kB / 1.363 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/1.45, allocations: 163 kB / 1.363 GB, free: 33.85 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.579e-05/1.45, allocations: 6.641 kB / 1.363 GB, free: 33.84 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.749e-05/1.45, allocations: 7.75 kB / 1.364 GB, free: 33.84 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000159/1.45, allocations: 50.36 kB / 1.364 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/1.45, allocations: 3.844 kB / 1.364 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.928e-05/1.45, allocations: 3.25 kB / 1.364 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/1.45, allocations: 0 / 1.364 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.411e-05/1.45, allocations: 16.41 kB / 1.364 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002171/1.45, allocations: 171.5 kB / 1.364 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002882/1.451, allocations: 61.25 kB / 1.364 GB, free: 33.58 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.363e-05/1.451, allocations: 23.97 kB / 1.364 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 5.519e-05/1.451, allocations: 9.453 kB / 1.364 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/1.451, allocations: 42.12 kB / 1.364 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/1.451, allocations: 0 / 1.364 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of matching and sorting (n=5): time 0.0006346/1.451, allocations: 280.2 kB / 1.364 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/1.452, allocations: 52.95 kB / 1.364 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.784e-05/1.452, allocations: 88.88 kB / 1.364 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/1.452, allocations: 28.77 kB / 1.364 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.209e-05/1.452, allocations: 80.14 kB / 1.364 GB, free: 33 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.7e-05/1.452, allocations: 26.2 kB / 1.364 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.705e-06/1.452, allocations: 0 / 1.364 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001063/1.452, allocations: 314.9 kB / 1.365 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.859e-05/1.452, allocations: 18.75 kB / 1.365 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.373e-05/1.452, allocations: 15.5 kB / 1.365 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.912e-05/1.452, allocations: 9.562 kB / 1.365 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.52e-07/1.452, allocations: 0 / 1.365 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001192/1.452, allocations: 71.22 kB / 1.365 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/1.452, allocations: 3.875 kB / 1.365 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.782e-06/1.452, allocations: 0 / 1.365 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/1.452, allocations: 3.969 kB / 1.365 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/1.452, allocations: 29.06 kB / 1.365 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/1.452, allocations: 0 / 1.365 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.796e-05/1.452, allocations: 16.39 kB / 1.365 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/1.452, allocations: 3.812 kB / 1.365 GB, free: 32.63 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.003e-05/1.453, allocations: 106.2 kB / 1.365 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.337e-05/1.453, allocations: 11.81 kB / 1.365 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002237/1.453, allocations: 88.44 kB / 1.365 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/1.453, allocations: 0 / 1.365 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/1.453, allocations: 4 kB / 1.365 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/1.453, allocations: 1.969 kB / 1.365 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000116/1.453, allocations: 170.5 kB / 1.365 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/1.453, allocations: 0 / 1.365 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000151/1.453, allocations: 26.08 kB / 1.365 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/1.453, allocations: 320 / 1.365 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/1.453, allocations: 0.6094 kB / 1.365 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/1.453, allocations: 8 kB / 1.365 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/1.453, allocations: 7.75 kB / 1.365 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002124/1.453, allocations: 113.2 kB / 1.365 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.738e-05/1.453, allocations: 92.91 kB / 1.365 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/1.453, allocations: 0 / 1.365 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/1.454, allocations: 21.47 kB / 1.365 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.679e-05/1.454, allocations: 5.234 kB / 1.365 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/1.454, allocations: 3.312 kB / 1.365 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.71e-05/1.454, allocations: 79.09 kB / 1.366 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.21e-07/1.454, allocations: 3.938 kB / 1.366 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002517/1.454, allocations: 37.77 kB / 1.366 GB, free: 32.01 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002544/1.454, allocations: 143.7 kB / 1.366 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001419/1.454, allocations: 37.97 kB / 1.366 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/1.454, allocations: 7.906 kB / 1.366 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.26e-05/1.454, allocations: 20.34 kB / 1.366 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001236/1.455, allocations: 3.438 kB / 1.366 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004964/1.455, allocations: 138.5 kB / 1.366 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002617/1.455, allocations: 0.6808 MB / 1.367 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001199/1.455, allocations: 21.08 kB / 1.367 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.399e-05/1.455, allocations: 12.84 kB / 1.367 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.455, allocations: 0 / 1.367 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of Templates: time 0.003591/1.459, allocations: 1.097 MB / 1.368 GB, free: 30.99 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches