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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001039/0.001039, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.007725/0.007725, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.458/1.458, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.797/2.797, allocations: 462.7 MB / 0.7364 GB, free: 312 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004285/0.0004286, allocations: 12.09 kB / 0.9028 GB, free: 36.74 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.349/0.3494, allocations: 159.6 MB / 1.059 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.0007552/0.3502, allocations: 350.7 kB / 1.059 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0019/0.3521, allocations: 1.454 MB / 1.06 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.491e-05/0.3522, allocations: 3.938 kB / 1.06 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.235e-05/0.3522, allocations: 0 / 1.06 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.05e-05/0.3522, allocations: 7.938 kB / 1.06 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005108/0.3527, allocations: 111.7 kB / 1.061 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.972e-05/0.3528, allocations: 31.91 kB / 1.061 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.049e-05/0.3529, allocations: 4 kB / 1.061 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.808e-05/0.3529, allocations: 11.98 kB / 1.061 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.044e-05/0.353, allocations: 23.91 kB / 1.061 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.548e-05/0.353, allocations: 4 kB / 1.061 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004775/0.3535, allocations: 319.3 kB / 1.061 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.705e-05/0.3535, allocations: 7.984 kB / 1.061 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.698e-05/0.3536, allocations: 33.64 kB / 1.061 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002973/0.3539, allocations: 183.7 kB / 1.061 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.3539, allocations: 0 / 1.061 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3539, allocations: 0 / 1.061 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.3539, allocations: 0 / 1.061 GB, free: 2.961 MB / 0.8106 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.000521/0.3544, allocations: 363.7 kB / 1.061 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.3545, allocations: 12.03 kB / 1.062 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004709/0.3549, allocations: 80.84 kB / 1.062 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.3551, allocations: 164.4 kB / 1.062 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.299e-05/0.3551, allocations: 384 / 1.062 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.05e-05/0.3551, allocations: 4.312 kB / 1.062 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002622/0.3554, allocations: 97.88 kB / 1.062 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.3554, allocations: 0 / 1.062 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.3554, allocations: 0 / 1.062 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.3554, allocations: 0 / 1.062 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003036/0.3557, allocations: 75.94 kB / 1.062 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000194/0.3559, allocations: 173.5 kB / 1.062 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006569/0.3566, allocations: 142.6 kB / 1.062 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001768/0.3568, allocations: 52.86 kB / 1.062 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004833/0.3573, allocations: 173 kB / 1.062 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.3573, allocations: 38.48 kB / 1.062 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.413e-06/0.3573, allocations: 0 / 1.062 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.00125/0.3586, allocations: 442.2 kB / 1.063 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/0.3586, allocations: 51.41 kB / 1.063 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.847e-05/0.3587, allocations: 93.86 kB / 1.063 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.192e-05/0.3588, allocations: 29.7 kB / 1.063 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.171e-05/0.3588, allocations: 80.14 kB / 1.063 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.646e-05/0.3588, allocations: 19.73 kB / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-05/0.3589, allocations: 13.72 kB / 1.063 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.359, allocations: 310.8 kB / 1.063 GB, free: 324 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001697/0.3592, allocations: 44.09 kB / 1.063 GB, free: 280 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.3593, allocations: 47.95 kB / 1.064 GB, free: 232 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003082/0.3596, allocations: 88.8 kB / 1.064 GB, free: 140 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3596, allocations: 7.938 kB / 1.064 GB, free: 132 kB / 0.8106 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003704/0.36, allocations: 117.8 kB / 1.064 GB, free: 8 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.3601, allocations: 8 kB / 1.064 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.355e-05/0.3601, allocations: 304 / 1.064 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.3601, allocations: 8.125 kB / 1.064 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.3603, allocations: 31.91 kB / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.3603, allocations: 0 / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.3604, allocations: 19.98 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.3604, allocations: 4 kB / 1.064 GB, free: 15.93 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 9.596e-05/0.3605, allocations: 111.4 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.745e-05/0.3605, allocations: 4.031 kB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004643/0.361, allocations: 161 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.361, allocations: 0 / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.361, allocations: 0 / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.361, allocations: 7.984 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001323/0.3612, allocations: 161.6 kB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3612, allocations: 0 / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.3613, allocations: 35.91 kB / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.3614, allocations: 0 / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.3614, allocations: 0 / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3614, allocations: 0 / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3614, allocations: 4 kB / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005754/0.362, allocations: 209 kB / 1.064 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.927e-05/0.362, allocations: 85.03 kB / 1.065 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.3621, allocations: 4.031 kB / 1.065 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001214/0.3622, allocations: 20.05 kB / 1.065 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.154e-05/0.3622, allocations: 4 kB / 1.065 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.3622, allocations: 7.984 kB / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.143e-05/0.3623, allocations: 75.28 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3623, allocations: 0 / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002313/0.3625, allocations: 31.88 kB / 1.065 GB, free: 14.94 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.000212/0.3627, allocations: 131.2 kB / 1.065 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000393/0.3631, allocations: 104.1 kB / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3632, allocations: 0 / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000178/0.3633, allocations: 51.95 kB / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001667/0.3635, allocations: 11.94 kB / 1.065 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006504/0.3642, allocations: 204.7 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.3644, allocations: 0.6809 MB / 1.066 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001257/0.3646, allocations: 16 kB / 1.066 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.659e-05/0.3646, allocations: 15.42 kB / 1.066 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of SimCode: time 3.31e-07/0.3646, allocations: 0 / 1.066 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of Templates: time 0.00354/0.3682, allocations: 1.119 MB / 1.067 GB, free: 12.55 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