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.001218/0.001218, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 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.0009565/0.0009565, allocations: 169 kB / 23.02 MB, free: 1.551 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.8983/0.8983, allocations: 177.1 MB / 203.4 MB, free: 5.633 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 2.091/2.091, allocations: 429.5 MB / 0.6732 GB, free: 4.023 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.102e-06/1.102e-06, allocations: 0 / 0.8782 GB, free: 6.25 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.38e-05/1.49e-05, allocations: 4.844 kB / 0.8782 GB, free: 6.246 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001143/0.001158, allocations: 0.636 MB / 0.8788 GB, free: 5.629 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.00135/0.002509, allocations: 1.47 MB / 0.8803 GB, free: 4.148 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.416e-05/0.002533, allocations: 0 / 0.8803 GB, free: 4.148 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 1.937e-05/0.002552, allocations: 4.438 kB / 0.8803 GB, free: 4.145 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 2.639e-05/0.002578, allocations: 0 / 0.8803 GB, free: 4.145 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004014/0.00298, allocations: 146.6 kB / 0.8804 GB, free: 4.004 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 5.714e-05/0.003037, allocations: 28.91 kB / 0.8805 GB, free: 3.977 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 4.321e-05/0.00308, allocations: 3.984 kB / 0.8805 GB, free: 3.973 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 5.519e-05/0.003135, allocations: 23.92 kB / 0.8805 GB, free: 3.949 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.522e-05/0.003201, allocations: 17.56 kB / 0.8805 GB, free: 3.934 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.665e-05/0.003217, allocations: 4 kB / 0.8805 GB, free: 3.93 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002558/0.003473, allocations: 247.5 kB / 0.8807 GB, free: 3.688 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.801e-05/0.003491, allocations: 15.97 kB / 0.8808 GB, free: 3.672 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 1.995e-05/0.003511, allocations: 6.422 kB / 0.8808 GB, free: 3.668 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002253/0.003736, allocations: 203.4 kB / 0.881 GB, free: 3.469 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.003738, allocations: 0 / 0.881 GB, free: 3.469 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.82e-07/0.003739, allocations: 0 / 0.881 GB, free: 3.469 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.003742, allocations: 0 / 0.881 GB, free: 3.469 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.0003858/0.004128, allocations: 392.3 kB / 0.8813 GB, free: 3.051 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.004163, allocations: 14.11 kB / 0.8813 GB, free: 3.039 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002406/0.004403, allocations: 54.78 kB / 0.8814 GB, free: 2.988 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.538e-05/0.004479, allocations: 108.6 kB / 0.8815 GB, free: 2.855 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.004493, allocations: 4.375 kB / 0.8815 GB, free: 2.852 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.377e-05/0.004517, allocations: 8.312 kB / 0.8815 GB, free: 2.844 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001629/0.00468, allocations: 104.6 kB / 0.8816 GB, free: 2.727 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.004687, allocations: 4.125 kB / 0.8816 GB, free: 2.723 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.004699, allocations: 384 / 0.8816 GB, free: 2.723 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.004708, allocations: 3.938 kB / 0.8816 GB, free: 2.719 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.757e-05/0.004755, allocations: 19.98 kB / 0.8816 GB, free: 2.699 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001331/0.004888, allocations: 120.6 kB / 0.8817 GB, free: 2.547 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002099/0.005098, allocations: 63.14 kB / 0.8818 GB, free: 2.473 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.463e-05/0.005133, allocations: 19.69 kB / 0.8818 GB, free: 2.449 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000173/0.005306, allocations: 52.03 kB / 0.8819 GB, free: 2.398 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.376e-05/0.005329, allocations: 37.33 kB / 0.8819 GB, free: 2.352 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=4): time 9.92e-07/0.00533, allocations: 4 kB / 0.8819 GB, free: 2.348 MB / 0.8386 GB Notification: Performance of matching and sorting (n=5): time 0.0004375/0.005768, allocations: 214 kB / 0.8821 GB, free: 2.102 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.355e-05/0.005791, allocations: 59.34 kB / 0.8822 GB, free: 2.031 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.582e-05/0.005847, allocations: 149.9 kB / 0.8823 GB, free: 1.867 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.126e-05/0.005859, allocations: 25.7 kB / 0.8823 GB, free: 1.836 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.043e-05/0.005889, allocations: 134.9 kB / 0.8825 GB, free: 1.699 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.541e-05/0.005914, allocations: 19.8 kB / 0.8825 GB, free: 1.68 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.467e-05/0.005949, allocations: 27.38 kB / 0.8825 GB, free: 1.645 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.006049, allocations: 0.4885 MB / 0.883 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.894e-05/0.006078, allocations: 12 kB / 0.883 GB, free: 1.133 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.553e-05/0.006104, allocations: 16.17 kB / 0.883 GB, free: 1.117 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.543e-05/0.006159, allocations: 31.69 kB / 0.8831 GB, free: 1.082 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/0.00616, allocations: 0 / 0.8831 GB, free: 1.082 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6) (initialization): time 9.149e-05/0.006251, allocations: 69.66 kB / 0.8831 GB, free: 1.008 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.018e-05/0.006262, allocations: 4 kB / 0.8831 GB, free: 1.004 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.006266, allocations: 0 / 0.8831 GB, free: 1.004 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.00628, allocations: 0 / 0.8831 GB, free: 1.004 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.411e-05/0.006364, allocations: 31.92 kB / 0.8832 GB, free: 0.9727 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.538e-06/0.006368, allocations: 0 / 0.8832 GB, free: 0.9727 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.298e-05/0.006401, allocations: 7.984 kB / 0.8832 GB, free: 0.9648 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-06/0.006408, allocations: 4 kB / 0.8832 GB, free: 0.9609 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.641e-05/0.006464, allocations: 152.6 kB / 0.8833 GB, free: 0.8008 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.338e-05/0.006478, allocations: 11.95 kB / 0.8833 GB, free: 0.7891 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001388/0.006617, allocations: 93.33 kB / 0.8834 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.006618, allocations: 0 / 0.8834 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.006622, allocations: 3.938 kB / 0.8834 GB, free: 0.6875 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.006624, allocations: 0 / 0.8834 GB, free: 0.6875 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.45e-05/0.006699, allocations: 120.6 kB / 0.8835 GB, free: 0.5352 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.0067, allocations: 0 / 0.8835 GB, free: 0.5352 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.505e-05/0.006765, allocations: 23.98 kB / 0.8836 GB, free: 0.5117 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.006766, allocations: 0 / 0.8836 GB, free: 0.5117 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.006777, allocations: 7.984 kB / 0.8836 GB, free: 0.5039 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.006778, allocations: 0 / 0.8836 GB, free: 0.5039 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.00678, allocations: 4 kB / 0.8836 GB, free: 0.5 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001551/0.006935, allocations: 124.4 kB / 0.8837 GB, free: 364 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.025e-05/0.006965, allocations: 7.938 kB / 0.8837 GB, free: 356 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.178e-05/0.006977, allocations: 4 kB / 0.8837 GB, free: 352 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.968e-05/0.007016, allocations: 8.031 kB / 0.8837 GB, free: 344 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.323e-05/0.00704, allocations: 15.92 kB / 0.8837 GB, free: 328 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.17e-06/0.007045, allocations: 0 / 0.8837 GB, free: 328 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 2.746e-05/0.007072, allocations: 123.2 kB / 0.8838 GB, free: 204 kB / 0.8386 GB Notification: Performance of sort global known variables: time 5e-08/0.007072, allocations: 0 / 0.8838 GB, free: 204 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001491/0.007221, allocations: 31.86 kB / 0.8839 GB, free: 172 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.0001261/0.007348, allocations: 131.1 kB / 0.884 GB, free: 32 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001146/0.007462, allocations: 43.66 kB / 0.884 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.007464, allocations: 4.094 kB / 0.884 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 3.025e-05/0.007494, allocations: 23.62 kB / 0.8841 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001107/0.007604, allocations: 8 kB / 0.8841 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003005/0.007905, allocations: 158.1 kB / 0.8842 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.628e-05/0.007931, allocations: 55.36 kB / 0.8843 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.077e-05/0.007982, allocations: 16 kB / 0.8843 GB, free: 15.67 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.753e-05/0.00802, allocations: 20.48 kB / 0.8843 GB, free: 15.65 MB / 0.8542 GB Notification: Performance of SimCode: time 5.01e-07/0.00802, allocations: 0 / 0.8843 GB, free: 15.65 MB / 0.8542 GB Notification: Performance of Templates: time 0.002677/0.0107, allocations: 1.222 MB / 0.8855 GB, free: 14.45 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","",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.351348028983921]