Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001149/0.001149, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 194.9 kB / 16.53 MB, free: 6.391 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.354/1.354, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.566/2.566, allocations: 437 MB / 0.7104 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 63.91 kB / 0.8692 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6235/0.6249, allocations: 151.6 MB / 1.017 GB, free: 2.617 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001886/0.6268, allocations: 0.594 MB / 1.018 GB, free: 2.02 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001867/0.6287, allocations: 1.443 MB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.396e-05/0.6287, allocations: 4 kB / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.133e-05/0.6287, allocations: 0 / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.214e-05/0.6288, allocations: 3.938 kB / 1.019 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005229/0.6293, allocations: 139.4 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.219e-05/0.6294, allocations: 31.91 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.097e-05/0.6294, allocations: 4 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.022e-05/0.6295, allocations: 15.98 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.86e-05/0.6296, allocations: 23.91 kB / 1.019 GB, free: 348 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.01e-05/0.6296, allocations: 4 kB / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004634/0.6301, allocations: 315.3 kB / 1.02 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.869e-05/0.6301, allocations: 19.92 kB / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.621e-05/0.6301, allocations: 7.984 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0003146/0.6305, allocations: 187.6 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.6305, allocations: 0 / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.783e-06/0.6305, allocations: 0 / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.361e-06/0.6305, allocations: 0 / 1.02 GB, free: 15.82 MB / 0.7794 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.0005542/0.6311, allocations: 371.3 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.6311, allocations: 8.031 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004865/0.6316, allocations: 64.86 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001149/0.6317, allocations: 168.4 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.265e-05/0.6317, allocations: 384 / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.706e-05/0.6318, allocations: 12.31 kB / 1.021 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002648/0.632, allocations: 77.89 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.6321, allocations: 3.984 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.564e-05/0.6321, allocations: 4 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.832e-06/0.6321, allocations: 4 kB / 1.021 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003099/0.6324, allocations: 63.92 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002201/0.6326, allocations: 173.5 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006741/0.6333, allocations: 118.5 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001874/0.6335, allocations: 48.91 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005001/0.634, allocations: 157 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/0.6341, allocations: 34.5 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.513e-06/0.6341, allocations: 0 / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.00123/0.6353, allocations: 398.2 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/0.6354, allocations: 55.41 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.174e-05/0.6354, allocations: 97.84 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2e-05/0.6355, allocations: 29.7 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.301e-05/0.6355, allocations: 84.14 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.183e-05/0.6355, allocations: 11.72 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.259e-05/0.6356, allocations: 25.7 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001096/0.6357, allocations: 314.8 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001759/0.6359, allocations: 36.09 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001631/0.6361, allocations: 39.95 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003277/0.6364, allocations: 76.73 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.6364, allocations: 0 / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003959/0.6368, allocations: 113.6 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.6369, allocations: 8 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.6369, allocations: 0 / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.6369, allocations: 0 / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001578/0.637, allocations: 27.97 kB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.6371, allocations: 0 / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.6372, allocations: 11.98 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.6372, allocations: 3.938 kB / 1.023 GB, free: 12.95 MB / 0.7794 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.374e-05/0.6373, allocations: 117.8 kB / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.896e-05/0.6373, allocations: 4.188 kB / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004909/0.6378, allocations: 137.2 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.6378, allocations: 7.938 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.6378, allocations: 0 / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.6378, allocations: 3.984 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001429/0.638, allocations: 161.6 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.638, allocations: 0 / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000165/0.6382, allocations: 35.91 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.711e-06/0.6382, allocations: 4 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.117e-05/0.6382, allocations: 0 / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.6382, allocations: 0 / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.6382, allocations: 0 / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006046/0.6388, allocations: 189 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.459e-05/0.6389, allocations: 93.06 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.052e-05/0.639, allocations: 0 / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001231/0.6391, allocations: 11.98 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.577e-05/0.6391, allocations: 336 / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.6391, allocations: 7.984 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.308e-05/0.6392, allocations: 75.28 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6392, allocations: 4.156 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002503/0.6394, allocations: 39.94 kB / 1.023 GB, free: 11.97 MB / 0.7794 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.0002302/0.6397, allocations: 127.2 kB / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004033/0.6401, allocations: 91.86 kB / 1.024 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.6401, allocations: 0 / 1.024 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001763/0.6403, allocations: 43.95 kB / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001557/0.6404, allocations: 4 kB / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006692/0.6411, allocations: 197.3 kB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002335/0.6414, allocations: 0.6768 MB / 1.024 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001131/0.6415, allocations: 19.97 kB / 1.024 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.419e-05/0.6416, allocations: 19.38 kB / 1.025 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of SimCode: time 4.31e-07/0.6416, allocations: 0 / 1.025 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of Templates: time 0.00372/0.6453, allocations: 1.15 MB / 1.026 GB, free: 9.586 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches