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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.01142/0.01142, allocations: 101.1 kB / 15.73 MB, free: 6.035 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.001807/0.001807, allocations: 199.3 kB / 16.67 MB, free: 5.969 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.353/1.353, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.462/2.462, allocations: 390.2 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 63.03 kB / 0.9509 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3284, allocations: 140.4 MB / 1.088 GB, free: 1.418 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.00181/0.3303, allocations: 0.5921 MB / 1.089 GB, free: 0.8281 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00228/0.3326, allocations: 1.464 MB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.421e-05/0.3327, allocations: 0 / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.114e-05/0.3327, allocations: 3.938 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.237e-05/0.3328, allocations: 0 / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006768/0.3334, allocations: 147.4 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.48e-05/0.3335, allocations: 27.97 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.997e-05/0.3336, allocations: 0 / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.166e-05/0.3336, allocations: 15.98 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.986e-05/0.3337, allocations: 23.91 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.633e-05/0.3338, allocations: 0 / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004949/0.3343, allocations: 323.3 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.224e-05/0.3343, allocations: 7.984 kB / 1.09 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.982e-05/0.3343, allocations: 11.92 kB / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003258/0.3347, allocations: 183.7 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.3347, allocations: 4 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.905e-06/0.3347, allocations: 0 / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.103e-06/0.3347, allocations: 3.938 kB / 1.091 GB, free: 14.61 MB / 0.8575 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.0005787/0.3353, allocations: 363.5 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.3353, allocations: 12.03 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004564/0.3358, allocations: 64.84 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001285/0.3359, allocations: 172.2 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.321e-05/0.336, allocations: 384 / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.916e-05/0.336, allocations: 8.344 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000264/0.3363, allocations: 77.95 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.3363, allocations: 0 / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.3363, allocations: 4 kB / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.3363, allocations: 0 / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000277/0.3366, allocations: 63.92 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002015/0.3368, allocations: 165.7 kB / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005716/0.3374, allocations: 126.5 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001542/0.3376, allocations: 44.97 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004554/0.338, allocations: 157 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.3381, allocations: 38.5 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.503e-06/0.3381, allocations: 0 / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.001137/0.3392, allocations: 402.2 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.917e-05/0.3393, allocations: 51.41 kB / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.394e-05/0.3393, allocations: 101.8 kB / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3e-05/0.3394, allocations: 29.7 kB / 1.092 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.964e-05/0.3394, allocations: 84.27 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.464e-05/0.3395, allocations: 15.75 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.055e-05/0.3395, allocations: 21.7 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.3396, allocations: 314.8 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001449/0.3398, allocations: 31.97 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.3399, allocations: 39.91 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002902/0.3402, allocations: 84.98 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.3402, allocations: 3.938 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003348/0.3406, allocations: 113.6 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.3406, allocations: 5.875 kB / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.3406, allocations: 0 / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.3406, allocations: 0 / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.3408, allocations: 27.97 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.3408, allocations: 4 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.964e-05/0.3409, allocations: 15.98 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.3409, allocations: 0 / 1.093 GB, free: 11.73 MB / 0.8575 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 9.566e-05/0.341, allocations: 113.8 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.815e-05/0.341, allocations: 7.844 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004309/0.3415, allocations: 137.2 kB / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.3415, allocations: 0 / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.3415, allocations: 0 / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.3415, allocations: 4 kB / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001488/0.3417, allocations: 161.7 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.3417, allocations: 0 / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002033/0.3419, allocations: 27.91 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.3419, allocations: 7.938 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.3419, allocations: 8 kB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3419, allocations: 0 / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3419, allocations: 336 / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005462/0.3425, allocations: 181.2 kB / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.864e-05/0.3426, allocations: 88.94 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.247e-05/0.3426, allocations: 11.97 kB / 1.094 GB, free: 10.9 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.3427, allocations: 16.05 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.616e-05/0.3428, allocations: 4 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.3428, allocations: 4 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.635e-05/0.3428, allocations: 79.27 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3428, allocations: 3.938 kB / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002382/0.3431, allocations: 32 kB / 1.094 GB, free: 10.76 MB / 0.8575 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.0002498/0.3433, allocations: 135.8 kB / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003571/0.3437, allocations: 79.86 kB / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.3437, allocations: 8 kB / 1.094 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.3439, allocations: 39.97 kB / 1.094 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001549/0.344, allocations: 4 kB / 1.094 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006879/0.3447, allocations: 193.3 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.345, allocations: 0.6768 MB / 1.095 GB, free: 9.57 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.561e-05/0.3451, allocations: 20 kB / 1.095 GB, free: 9.551 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.019e-05/0.3452, allocations: 15.42 kB / 1.095 GB, free: 9.535 MB / 0.8575 GB Notification: Performance of SimCode: time 2.01e-07/0.3452, allocations: 0 / 1.095 GB, free: 9.535 MB / 0.8575 GB Notification: Performance of Templates: time 0.003819/0.349, allocations: 1.16 MB / 1.096 GB, free: 8.379 MB / 0.8575 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