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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008309/0.0008309, allocations: 96.7 kB / 20.21 MB, free: 4.219 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009771/0.0009771, allocations: 157.3 kB / 23.51 MB, free: 0.9102 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9135/0.9135, allocations: 177.2 MB / 203.9 MB, free: 5.57 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.949/1.949, allocations: 429.6 MB / 0.6737 GB, free: 3.906 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 0.8784 GB, free: 6.445 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.336e-05/1.46e-05, allocations: 2.312 kB / 0.8784 GB, free: 6.441 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001033/0.001047, allocations: 0.6124 MB / 0.879 GB, free: 5.852 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001476/0.002523, allocations: 1.437 MB / 0.8804 GB, free: 4.41 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.124e-05/0.002554, allocations: 0 / 0.8804 GB, free: 4.41 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 1.316e-05/0.002568, allocations: 0 / 0.8804 GB, free: 4.41 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 3.085e-05/0.002598, allocations: 0 / 0.8804 GB, free: 4.41 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004203/0.003019, allocations: 157.2 kB / 0.8805 GB, free: 4.258 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 6.599e-05/0.003085, allocations: 27.91 kB / 0.8806 GB, free: 4.23 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.507e-05/0.00312, allocations: 4 kB / 0.8806 GB, free: 4.227 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 6.093e-05/0.003181, allocations: 21.08 kB / 0.8806 GB, free: 4.207 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 7.068e-05/0.003251, allocations: 15.97 kB / 0.8806 GB, free: 4.191 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.663e-05/0.003268, allocations: 0 / 0.8806 GB, free: 4.191 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002657/0.003534, allocations: 256.5 kB / 0.8808 GB, free: 3.941 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.564e-05/0.003549, allocations: 3.984 kB / 0.8808 GB, free: 3.938 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.312e-05/0.003572, allocations: 15.61 kB / 0.8809 GB, free: 3.926 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.000241/0.003813, allocations: 203.4 kB / 0.8811 GB, free: 3.727 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.003e-06/0.003815, allocations: 0 / 0.8811 GB, free: 3.727 MB / 0.8386 GB Notification: Performance of FrontEnd: time 7.62e-07/0.003816, allocations: 0 / 0.8811 GB, free: 3.727 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.003821, allocations: 0 / 0.8811 GB, free: 3.727 MB / 0.8386 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.0004352/0.004256, allocations: 297.9 kB / 0.8813 GB, free: 3.406 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.004295, allocations: 8.031 kB / 0.8813 GB, free: 3.398 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003549/0.00465, allocations: 73.25 kB / 0.8814 GB, free: 3.332 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001021/0.004752, allocations: 109.7 kB / 0.8815 GB, free: 3.199 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.004765, allocations: 384 / 0.8815 GB, free: 3.199 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.004789, allocations: 384 / 0.8815 GB, free: 3.199 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001941/0.004983, allocations: 97.62 kB / 0.8816 GB, free: 3.094 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.607e-06/0.004991, allocations: 8.172 kB / 0.8816 GB, free: 3.086 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.005005, allocations: 4.375 kB / 0.8816 GB, free: 3.082 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.005011, allocations: 3.938 kB / 0.8816 GB, free: 3.078 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001588/0.005169, allocations: 59.94 kB / 0.8817 GB, free: 3.02 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001374/0.005307, allocations: 117.3 kB / 0.8818 GB, free: 2.875 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003549/0.005662, allocations: 118.4 kB / 0.8819 GB, free: 2.75 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.283e-05/0.005745, allocations: 44.97 kB / 0.882 GB, free: 2.703 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002267/0.005971, allocations: 79.91 kB / 0.882 GB, free: 2.625 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.807e-05/0.006009, allocations: 34.56 kB / 0.8821 GB, free: 2.582 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.00601, allocations: 0 / 0.8821 GB, free: 2.582 MB / 0.8386 GB Notification: Performance of matching and sorting (n=5): time 0.0007043/0.006715, allocations: 333.1 kB / 0.8824 GB, free: 2.223 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.758e-05/0.006742, allocations: 55.34 kB / 0.8824 GB, free: 2.156 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.936e-05/0.006792, allocations: 97.84 kB / 0.8825 GB, free: 2.051 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.006806, allocations: 29.7 kB / 0.8826 GB, free: 2.016 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.172e-05/0.006828, allocations: 80.14 kB / 0.8826 GB, free: 1.934 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.633e-05/0.006854, allocations: 23.97 kB / 0.8827 GB, free: 1.91 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.463e-05/0.006889, allocations: 21.7 kB / 0.8827 GB, free: 1.883 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.006998, allocations: 314.8 kB / 0.883 GB, free: 1.566 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.696e-05/0.007075, allocations: 31.97 kB / 0.883 GB, free: 1.535 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.809e-05/0.007153, allocations: 39.91 kB / 0.883 GB, free: 1.496 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001489/0.007302, allocations: 76.8 kB / 0.8831 GB, free: 1.418 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.12e-07/0.007302, allocations: 4 kB / 0.8831 GB, free: 1.414 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001934/0.007496, allocations: 109.9 kB / 0.8832 GB, free: 1.301 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.007508, allocations: 15.94 kB / 0.8832 GB, free: 1.285 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.167e-06/0.007513, allocations: 0 / 0.8832 GB, free: 1.285 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.007524, allocations: 4 kB / 0.8832 GB, free: 1.281 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.085e-05/0.007595, allocations: 27.91 kB / 0.8833 GB, free: 1.254 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.613e-06/0.007602, allocations: 3.938 kB / 0.8833 GB, free: 1.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.266e-05/0.007645, allocations: 11.98 kB / 0.8833 GB, free: 1.238 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-06/0.007651, allocations: 0 / 0.8833 GB, free: 1.238 MB / 0.8386 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 5.273e-05/0.007704, allocations: 117.8 kB / 0.8834 GB, free: 1.113 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.163e-05/0.007715, allocations: 7.953 kB / 0.8834 GB, free: 1.105 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000246/0.007961, allocations: 129.4 kB / 0.8835 GB, free: 0.9727 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.007963, allocations: 336 / 0.8835 GB, free: 0.9727 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.007969, allocations: 3.938 kB / 0.8835 GB, free: 0.9688 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.007972, allocations: 4 kB / 0.8835 GB, free: 0.9648 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.164e-05/0.008043, allocations: 109.3 kB / 0.8836 GB, free: 0.8281 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.008045, allocations: 7.984 kB / 0.8837 GB, free: 0.8203 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.417e-05/0.00812, allocations: 27.92 kB / 0.8837 GB, free: 0.793 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/0.008122, allocations: 3.984 kB / 0.8837 GB, free: 0.7891 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.854e-06/0.00813, allocations: 0 / 0.8837 GB, free: 0.7891 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.00813, allocations: 0 / 0.8837 GB, free: 0.7891 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.008131, allocations: 0 / 0.8837 GB, free: 0.7891 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003122/0.008443, allocations: 193 kB / 0.8839 GB, free: 0.582 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.745e-05/0.008481, allocations: 11.88 kB / 0.8839 GB, free: 0.5703 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.438e-05/0.008495, allocations: 8.031 kB / 0.8839 GB, free: 0.5625 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.977e-05/0.008545, allocations: 11.98 kB / 0.8839 GB, free: 0.5508 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.929e-05/0.008574, allocations: 7.922 kB / 0.8839 GB, free: 0.543 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.008581, allocations: 4 kB / 0.8839 GB, free: 0.5391 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 2.222e-05/0.008603, allocations: 75.28 kB / 0.884 GB, free: 476 kB / 0.8386 GB Notification: Performance of sort global known variables: time 7e-08/0.008603, allocations: 0 / 0.884 GB, free: 476 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001528/0.008756, allocations: 40.08 kB / 0.884 GB, free: 436 kB / 0.8386 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.0001322/0.008888, allocations: 131 kB / 0.8841 GB, free: 296 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002038/0.009092, allocations: 84.05 kB / 0.8842 GB, free: 212 kB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.273e-06/0.009093, allocations: 0 / 0.8842 GB, free: 212 kB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.646e-05/0.00917, allocations: 43.91 kB / 0.8843 GB, free: 168 kB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001164/0.009286, allocations: 18.42 kB / 0.8843 GB, free: 152 kB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003698/0.009656, allocations: 180.4 kB / 0.8845 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.485e-05/0.009691, allocations: 63.34 kB / 0.8845 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.8e-05/0.009749, allocations: 23.94 kB / 0.8845 GB, free: 15.84 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.566e-05/0.009784, allocations: 16.48 kB / 0.8846 GB, free: 15.82 MB / 0.8542 GB Notification: Performance of SimCode: time 2.81e-07/0.009784, allocations: 0 / 0.8846 GB, free: 15.82 MB / 0.8542 GB Notification: Performance of Templates: time 0.002383/0.01217, allocations: 1.215 MB / 0.8857 GB, free: 14.62 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile [Timeout 300] (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=800 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.035901889204979]