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/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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001158, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001167/0.001166, allocations: 168.7 kB / 15.95 MB, free: 204 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.509/1.509, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.527/2.527, allocations: 390.9 MB / 0.666 GB, free: 2.535 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003425, allocations: 11.94 kB / 0.8154 GB, free: 13.65 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6837/0.684, allocations: 142.4 MB / 0.9545 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.0006741/0.6848, allocations: 334.4 kB / 0.9548 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00173/0.6865, allocations: 1.38 MB / 0.9561 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.807e-05/0.6865, allocations: 0 / 0.9561 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.795e-05/0.6866, allocations: 3.938 kB / 0.9561 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.619e-05/0.6866, allocations: 5.312 kB / 0.9561 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005009/0.6871, allocations: 109.7 kB / 0.9562 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.12e-05/0.6872, allocations: 24.31 kB / 0.9563 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.734e-05/0.6873, allocations: 1.406 kB / 0.9563 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.042e-05/0.6874, allocations: 21.44 kB / 0.9563 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.187e-05/0.6875, allocations: 26.62 kB / 0.9563 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.753e-05/0.6875, allocations: 1.312 kB / 0.9563 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005308/0.688, allocations: 302.9 kB / 0.9566 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.399e-05/0.6881, allocations: 9.047 kB / 0.9566 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.47e-05/0.6881, allocations: 27.98 kB / 0.9566 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000257/0.6884, allocations: 127.8 kB / 0.9568 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.6884, allocations: 1.375 kB / 0.9568 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.026e-06/0.6884, allocations: 0 / 0.9568 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.428e-06/0.6884, allocations: 0 / 0.9568 GB, free: 6.051 MB / 0.7169 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.0005257/0.6889, allocations: 364.3 kB / 0.9571 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.611e-05/0.689, allocations: 8.594 kB / 0.9571 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00048/0.6895, allocations: 82.48 kB / 0.9572 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.6896, allocations: 164.4 kB / 0.9573 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.855e-05/0.6896, allocations: 0 / 0.9573 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.402e-05/0.6897, allocations: 6.875 kB / 0.9574 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002694/0.6899, allocations: 86.88 kB / 0.9574 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.69, allocations: 0 / 0.9574 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.72e-05/0.69, allocations: 0 / 0.9574 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.69, allocations: 1.562 kB / 0.9574 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002975/0.6903, allocations: 82.77 kB / 0.9575 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001954/0.6905, allocations: 168.9 kB / 0.9577 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005489/0.6911, allocations: 144.5 kB / 0.9578 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001464/0.6912, allocations: 59.16 kB / 0.9579 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004253/0.6917, allocations: 171.1 kB / 0.958 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.037e-05/0.6917, allocations: 35.72 kB / 0.9581 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.352e-06/0.6917, allocations: 1.125 kB / 0.9581 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.001135/0.6928, allocations: 439 kB / 0.9585 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.866e-05/0.6929, allocations: 52.56 kB / 0.9585 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.381e-05/0.693, allocations: 100 kB / 0.9586 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.693, allocations: 26.67 kB / 0.9587 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.55e-05/0.693, allocations: 85.23 kB / 0.9587 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.862e-05/0.6931, allocations: 18.02 kB / 0.9588 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.646e-06/0.6931, allocations: 8 kB / 0.9588 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.143e-05/0.6932, allocations: 312 kB / 0.9591 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001804/0.6934, allocations: 39.12 kB / 0.9591 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001589/0.6935, allocations: 51.48 kB / 0.9591 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000161/0.6937, allocations: 43.22 kB / 0.9592 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.6937, allocations: 0 / 0.9592 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003454/0.6941, allocations: 120.7 kB / 0.9593 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.6941, allocations: 4.969 kB / 0.9593 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.6941, allocations: 0.8438 kB / 0.9593 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.6941, allocations: 0.8438 kB / 0.9593 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001532/0.6943, allocations: 31.16 kB / 0.9593 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.6943, allocations: 0 / 0.9593 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.667e-05/0.6944, allocations: 18.59 kB / 0.9594 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.6944, allocations: 2.031 kB / 0.9594 GB, free: 3.77 MB / 0.7169 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 7.807e-05/0.6945, allocations: 119.8 kB / 0.9595 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.566e-05/0.6945, allocations: 2.375 kB / 0.9595 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004838/0.695, allocations: 148.6 kB / 0.9596 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.695, allocations: 1.375 kB / 0.9596 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.695, allocations: 4.062 kB / 0.9596 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.695, allocations: 5.359 kB / 0.9596 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001302/0.6952, allocations: 167.2 kB / 0.9598 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.6952, allocations: 0 / 0.9598 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001587/0.6954, allocations: 27.22 kB / 0.9598 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.165e-06/0.6954, allocations: 4 kB / 0.9598 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.6954, allocations: 1.375 kB / 0.9598 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.6954, allocations: 1.375 kB / 0.9598 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.6954, allocations: 7.922 kB / 0.9598 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005678/0.696, allocations: 209.1 kB / 0.96 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.916e-05/0.6961, allocations: 87.84 kB / 0.9601 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.332e-05/0.6961, allocations: 1.375 kB / 0.9601 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.6962, allocations: 14.98 kB / 0.9601 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.108e-05/0.6962, allocations: 6.812 kB / 0.9601 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.6963, allocations: 9.297 kB / 0.9601 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.578e-05/0.6963, allocations: 82.03 kB / 0.9602 GB, free: 3 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6963, allocations: 0 / 0.9602 GB, free: 3 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002389/0.6965, allocations: 32.56 kB / 0.9603 GB, free: 2.988 MB / 0.7169 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.0002564/0.6968, allocations: 128 kB / 0.9604 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003874/0.6972, allocations: 106.9 kB / 0.9605 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6972, allocations: 0 / 0.9605 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001647/0.6974, allocations: 49.92 kB / 0.9605 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001717/0.6976, allocations: 7.328 kB / 0.9605 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006435/0.6982, allocations: 198.4 kB / 0.9607 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001708/0.6984, allocations: 0.6833 MB / 0.9614 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001128/0.6985, allocations: 18.44 kB / 0.9614 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.571e-05/0.6986, allocations: 15.67 kB / 0.9614 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.6986, allocations: 5.312 kB / 0.9614 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of Templates: time 0.003752/0.7023, allocations: 1.093 MB / 0.9625 GB, free: 1.367 MB / 0.7169 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches