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: 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.001233/0.001233, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001505/0.001505, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 223.2 MB / 239.9 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.918/2.918, allocations: 436.5 MB / 0.7104 GB, free: 7.926 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003173/0.0003173, allocations: 12 kB / 0.8708 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.801/0.8013, allocations: 153.7 MB / 1.021 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.0008616/0.8023, allocations: 333.3 kB / 1.021 GB, free: 0.7773 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001924/0.8042, allocations: 1.385 MB / 1.022 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.781e-05/0.8042, allocations: 0 / 1.022 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.337e-05/0.8043, allocations: 3.938 kB / 1.022 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 3.563e-05/0.8043, allocations: 4 kB / 1.022 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004255/0.8047, allocations: 107.7 kB / 1.023 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.615e-05/0.8048, allocations: 19.97 kB / 1.023 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.631e-05/0.8049, allocations: 0 / 1.023 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.805, allocations: 23.97 kB / 1.023 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.735e-05/0.8051, allocations: 23.91 kB / 1.023 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.636e-05/0.8051, allocations: 8 kB / 1.023 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004378/0.8056, allocations: 307.4 kB / 1.023 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.059e-05/0.8056, allocations: 15.92 kB / 1.023 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.791e-05/0.8056, allocations: 25.7 kB / 1.023 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002444/0.8059, allocations: 139.8 kB / 1.023 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.8059, allocations: 0 / 1.023 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.923e-06/0.8059, allocations: 0 / 1.023 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.8059, allocations: 0 / 1.023 GB, free: 14.7 MB / 0.7794 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.000612/0.8065, allocations: 361.3 kB / 1.023 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 7.987e-05/0.8066, allocations: 19.97 kB / 1.024 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004575/0.8071, allocations: 71.92 kB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001302/0.8072, allocations: 171 kB / 1.024 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.677e-05/0.8072, allocations: 4 kB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.054e-05/0.8073, allocations: 4 kB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002727/0.8075, allocations: 89.53 kB / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.8076, allocations: 0 / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.8076, allocations: 0 / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.8076, allocations: 0 / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003069/0.8079, allocations: 83.92 kB / 1.024 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002072/0.8081, allocations: 165.6 kB / 1.024 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005996/0.8087, allocations: 134.5 kB / 1.024 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005003/0.8092, allocations: 181.1 kB / 1.024 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/0.8093, allocations: 38.45 kB / 1.024 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.472e-06/0.8093, allocations: 0 / 1.024 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.001245/0.8105, allocations: 438.2 kB / 1.025 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.131e-05/0.8106, allocations: 51.41 kB / 1.025 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.281e-05/0.8107, allocations: 97.8 kB / 1.025 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/0.8107, allocations: 29.7 kB / 1.025 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.704e-05/0.8107, allocations: 84.27 kB / 1.025 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.558e-05/0.8108, allocations: 19.7 kB / 1.025 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.315e-06/0.8108, allocations: 4 kB / 1.025 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.00014/0.8109, allocations: 310.8 kB / 1.025 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.8111, allocations: 43.97 kB / 1.025 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.8113, allocations: 43.95 kB / 1.025 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001517/0.8114, allocations: 39.97 kB / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.8114, allocations: 0 / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003551/0.8118, allocations: 125.6 kB / 1.026 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.8118, allocations: 11.95 kB / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.8118, allocations: 0 / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.8118, allocations: 0 / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.812, allocations: 31.97 kB / 1.026 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.423e-06/0.812, allocations: 0 / 1.026 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.466e-05/0.8121, allocations: 11.98 kB / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/0.8121, allocations: 7.938 kB / 1.026 GB, free: 11.81 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001115/0.8123, allocations: 115.7 kB / 1.026 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.637e-05/0.8123, allocations: 7.984 kB / 1.026 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004652/0.8127, allocations: 149.1 kB / 1.026 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.8128, allocations: 0 / 1.026 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.8128, allocations: 0 / 1.026 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.8128, allocations: 3.984 kB / 1.026 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001545/0.8129, allocations: 166 kB / 1.026 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.8129, allocations: 4 kB / 1.026 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001548/0.8131, allocations: 31.97 kB / 1.026 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.8131, allocations: 0 / 1.026 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.8131, allocations: 0 / 1.026 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.8131, allocations: 3.953 kB / 1.026 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.8132, allocations: 0 / 1.026 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005857/0.8137, allocations: 205.2 kB / 1.026 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001095/0.8139, allocations: 89.12 kB / 1.026 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.046e-05/0.8139, allocations: 3.938 kB / 1.026 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.814, allocations: 23.97 kB / 1.026 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.864e-05/0.8141, allocations: 11.95 kB / 1.026 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.8141, allocations: 3.984 kB / 1.026 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.031e-05/0.8141, allocations: 83.28 kB / 1.027 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8141, allocations: 0 / 1.027 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002636/0.8144, allocations: 27.94 kB / 1.027 GB, free: 10.79 MB / 0.7794 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 (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.000242/0.8146, allocations: 127.2 kB / 1.027 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003858/0.815, allocations: 104 kB / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.815, allocations: 0 / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001647/0.8152, allocations: 51.89 kB / 1.027 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001244/0.8153, allocations: 4.75 kB / 1.027 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006576/0.816, allocations: 192.6 kB / 1.027 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003361/0.8164, allocations: 0.6809 MB / 1.028 GB, free: 9.582 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001103/0.8165, allocations: 19.98 kB / 1.028 GB, free: 9.562 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.365e-05/0.8165, allocations: 15.38 kB / 1.028 GB, free: 9.551 MB / 0.7794 GB Notification: Performance of SimCode: time 2e-07/0.8165, allocations: 4 kB / 1.028 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of Templates: time 0.003583/0.8201, allocations: 1.094 MB / 1.029 GB, free: 8.453 MB / 0.7794 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","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches