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.00897/0.00897, allocations: 102 kB / 15.73 MB, free: 5.992 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.001857/0.001858, allocations: 197.5 kB / 16.67 MB, free: 5.918 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.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.612/2.612, allocations: 461.9 MB / 0.7348 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001616/0.001616, allocations: 63.89 kB / 1.054 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.784/0.7856, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001893/0.7876, allocations: 0.6087 MB / 1.208 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001895/0.7895, allocations: 1.444 MB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.623e-05/0.7895, allocations: 0 / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.822e-05/0.7896, allocations: 11.94 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 2.508e-05/0.7896, allocations: 0 / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005447/0.7902, allocations: 135.4 kB / 1.21 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.462e-05/0.7903, allocations: 31.91 kB / 1.21 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.002e-05/0.7903, allocations: 4 kB / 1.21 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 4.617e-05/0.7904, allocations: 19.98 kB / 1.21 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.878e-05/0.7905, allocations: 27.89 kB / 1.21 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.742e-05/0.7905, allocations: 4 kB / 1.21 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004704/0.791, allocations: 307.4 kB / 1.21 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.916e-05/0.791, allocations: 11.97 kB / 1.21 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.133e-05/0.791, allocations: 19.92 kB / 1.21 GB, free: 11 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002981/0.7913, allocations: 183.7 kB / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.7913, allocations: 0 / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.573e-06/0.7913, allocations: 0 / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.552e-06/0.7914, allocations: 0 / 1.21 GB, free: 10.82 MB / 0.9356 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.0005438/0.7919, allocations: 375.3 kB / 1.211 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.7919, allocations: 8.031 kB / 1.211 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004971/0.7925, allocations: 76.64 kB / 1.211 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001129/0.7926, allocations: 164.4 kB / 1.211 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.7926, allocations: 384 / 1.211 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.39e-05/0.7926, allocations: 4.375 kB / 1.211 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002616/0.7929, allocations: 77.77 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.7929, allocations: 0 / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.7929, allocations: 4 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.7929, allocations: 0 / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003053/0.7933, allocations: 67.92 kB / 1.211 GB, free: 9.973 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001874/0.7935, allocations: 161.7 kB / 1.211 GB, free: 9.766 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006052/0.7941, allocations: 122.5 kB / 1.212 GB, free: 9.637 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001763/0.7943, allocations: 48.91 kB / 1.212 GB, free: 9.586 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004598/0.7947, allocations: 153 kB / 1.212 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.7948, allocations: 34.5 kB / 1.212 GB, free: 9.375 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=4): time 1.142e-06/0.7948, allocations: 4 kB / 1.212 GB, free: 9.371 MB / 0.9356 GB Notification: Performance of matching and sorting (n=5): time 0.001183/0.796, allocations: 402.2 kB / 1.212 GB, free: 8.926 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.308e-05/0.796, allocations: 55.41 kB / 1.212 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.647e-05/0.7961, allocations: 93.84 kB / 1.212 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.7961, allocations: 29.7 kB / 1.212 GB, free: 8.723 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.078e-05/0.7962, allocations: 80.14 kB / 1.212 GB, free: 8.641 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.053e-05/0.7962, allocations: 13.64 kB / 1.212 GB, free: 8.629 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.137e-05/0.7963, allocations: 29.77 kB / 1.212 GB, free: 8.594 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.103e-05/0.7964, allocations: 318.8 kB / 1.213 GB, free: 8.273 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.7965, allocations: 32.03 kB / 1.213 GB, free: 8.242 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001611/0.7967, allocations: 43.95 kB / 1.213 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003117/0.797, allocations: 76.8 kB / 1.213 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.797, allocations: 0 / 1.213 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003727/0.7974, allocations: 113.5 kB / 1.213 GB, free: 8.004 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.7974, allocations: 8 kB / 1.213 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.7974, allocations: 4 kB / 1.213 GB, free: 7.992 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.7975, allocations: 0 / 1.213 GB, free: 7.992 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.7976, allocations: 27.91 kB / 1.213 GB, free: 7.965 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.7976, allocations: 0 / 1.213 GB, free: 7.965 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.7978, allocations: 11.98 kB / 1.213 GB, free: 7.953 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.7978, allocations: 7.938 kB / 1.213 GB, free: 7.945 MB / 0.9356 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 7.619e-05/0.7979, allocations: 113.8 kB / 1.213 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.702e-05/0.7979, allocations: 3.938 kB / 1.213 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004671/0.7984, allocations: 129.2 kB / 1.213 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.7984, allocations: 11.94 kB / 1.213 GB, free: 7.676 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.7984, allocations: 0 / 1.213 GB, free: 7.676 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.7984, allocations: 3.984 kB / 1.213 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001329/0.7985, allocations: 165.6 kB / 1.213 GB, free: 7.461 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.7985, allocations: 3.938 kB / 1.213 GB, free: 7.457 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001625/0.7987, allocations: 31.91 kB / 1.213 GB, free: 7.426 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.7987, allocations: 4 kB / 1.213 GB, free: 7.422 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.7987, allocations: 256 / 1.213 GB, free: 7.422 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.7987, allocations: 4 kB / 1.213 GB, free: 7.418 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.7988, allocations: 4 kB / 1.213 GB, free: 7.414 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005736/0.7993, allocations: 181 kB / 1.214 GB, free: 7.219 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.98e-05/0.7994, allocations: 96.91 kB / 1.214 GB, free: 7.105 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.758e-05/0.7994, allocations: 4 kB / 1.214 GB, free: 7.102 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/0.7996, allocations: 12.05 kB / 1.214 GB, free: 7.09 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.252e-05/0.7996, allocations: 4 kB / 1.214 GB, free: 7.086 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.7996, allocations: 7.984 kB / 1.214 GB, free: 7.078 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.455e-05/0.7997, allocations: 75.28 kB / 1.214 GB, free: 7.004 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7997, allocations: 3.938 kB / 1.214 GB, free: 7 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002345/0.7999, allocations: 32 kB / 1.214 GB, free: 6.969 MB / 0.9356 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.0002222/0.8001, allocations: 123.2 kB / 1.214 GB, free: 6.836 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003899/0.8005, allocations: 84.02 kB / 1.214 GB, free: 6.754 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.8005, allocations: 4 kB / 1.214 GB, free: 6.75 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001759/0.8007, allocations: 51.89 kB / 1.214 GB, free: 6.699 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001535/0.8009, allocations: 5.812 kB / 1.214 GB, free: 6.695 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007227/0.8016, allocations: 181.7 kB / 1.214 GB, free: 6.488 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002505/0.8019, allocations: 0.6807 MB / 1.215 GB, free: 5.781 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 9.657e-05/0.802, allocations: 19.97 kB / 1.215 GB, free: 5.762 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.105e-05/0.802, allocations: 15.38 kB / 1.215 GB, free: 5.746 MB / 0.9356 GB Notification: Performance of SimCode: time 4.61e-07/0.8021, allocations: 4 kB / 1.215 GB, free: 5.742 MB / 0.9356 GB Notification: Performance of Templates: time 0.003711/0.8058, allocations: 1.182 MB / 1.216 GB, free: 4.562 MB / 0.9356 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