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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001195/0.001195, allocations: 116.7 kB / 16.37 MB, free: 6 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.001209/0.001209, allocations: 193.5 kB / 17.31 MB, free: 5.613 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.184/1.184, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.185/2.185, allocations: 442.6 MB / 0.7165 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 63.55 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2494, allocations: 153 MB / 1.027 GB, free: 2.086 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.00168/0.2512, allocations: 0.6042 MB / 1.027 GB, free: 1.48 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001648/0.2528, allocations: 1.456 MB / 1.029 GB, free: 8 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.339e-05/0.2529, allocations: 4 kB / 1.029 GB, free: 4 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.139e-05/0.2529, allocations: 0 / 1.029 GB, free: 4 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.986e-05/0.2529, allocations: 8.047 kB / 1.029 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005439/0.2535, allocations: 135.4 kB / 1.029 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.146e-05/0.2536, allocations: 31.97 kB / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.917e-05/0.2536, allocations: 7.984 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.425e-05/0.2537, allocations: 19.81 kB / 1.029 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.422e-05/0.2538, allocations: 19.97 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.936e-05/0.2538, allocations: 4 kB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004552/0.2543, allocations: 319.3 kB / 1.029 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.954e-05/0.2543, allocations: 7.984 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.126e-05/0.2543, allocations: 11.92 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003039/0.2546, allocations: 187.6 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2547, allocations: 0 / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2547, allocations: 0 / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.63e-06/0.2547, allocations: 0 / 1.029 GB, free: 15.27 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.0005165/0.2552, allocations: 367.5 kB / 1.03 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.2552, allocations: 8.031 kB / 1.03 GB, free: 14.85 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004368/0.2557, allocations: 68.84 kB / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001079/0.2558, allocations: 164.3 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.2558, allocations: 8.312 kB / 1.03 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.173e-05/0.2559, allocations: 8.359 kB / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002372/0.2561, allocations: 77.95 kB / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.632e-06/0.2561, allocations: 0 / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.2561, allocations: 0 / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.2561, allocations: 0 / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002733/0.2564, allocations: 67.92 kB / 1.03 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000175/0.2566, allocations: 161.7 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005393/0.2571, allocations: 122.5 kB / 1.03 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001466/0.2573, allocations: 48.91 kB / 1.031 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000422/0.2577, allocations: 149 kB / 1.031 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.2578, allocations: 34.5 kB / 1.031 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 3.196e-06/0.2578, allocations: 0 / 1.031 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.001038/0.2588, allocations: 414.1 kB / 1.031 GB, free: 13.37 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.55e-05/0.2589, allocations: 55.41 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.61e-05/0.2589, allocations: 93.84 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.259, allocations: 25.7 kB / 1.031 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.729e-05/0.259, allocations: 88.08 kB / 1.031 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.757e-05/0.259, allocations: 15.75 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.494e-05/0.2591, allocations: 25.7 kB / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001035/0.2592, allocations: 319 kB / 1.032 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001503/0.2593, allocations: 31.97 kB / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.2595, allocations: 39.97 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002549/0.2597, allocations: 72.73 kB / 1.032 GB, free: 12.57 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/0.2597, allocations: 4 kB / 1.032 GB, free: 12.57 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003175/0.2601, allocations: 117.8 kB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.2601, allocations: 8 kB / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.2601, allocations: 4 kB / 1.032 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.2601, allocations: 0 / 1.032 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/0.2603, allocations: 23.97 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.2603, allocations: 0 / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.671e-05/0.2604, allocations: 11.98 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.2604, allocations: 4 kB / 1.032 GB, free: 12.39 MB / 0.8106 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.146e-05/0.2605, allocations: 121.7 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.588e-05/0.2605, allocations: 8.172 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003988/0.2609, allocations: 129.2 kB / 1.032 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.2609, allocations: 7.984 kB / 1.032 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2609, allocations: 4 kB / 1.032 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-06/0.2609, allocations: 0 / 1.032 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001213/0.261, allocations: 169.6 kB / 1.032 GB, free: 11.89 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.261, allocations: 0 / 1.032 GB, free: 11.89 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001389/0.2612, allocations: 27.91 kB / 1.032 GB, free: 11.87 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.2612, allocations: 4 kB / 1.032 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.2612, allocations: 0 / 1.032 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.2612, allocations: 0 / 1.032 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.2612, allocations: 3.938 kB / 1.032 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005051/0.2617, allocations: 185 kB / 1.033 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.2619, allocations: 96.91 kB / 1.033 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.831e-05/0.2619, allocations: 3.984 kB / 1.033 GB, free: 11.54 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.262, allocations: 15.98 kB / 1.033 GB, free: 11.53 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.279e-05/0.262, allocations: 4.062 kB / 1.033 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.14e-05/0.262, allocations: 4.188 kB / 1.033 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.373e-05/0.2621, allocations: 79.27 kB / 1.033 GB, free: 11.44 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2621, allocations: 4 kB / 1.033 GB, free: 11.44 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002166/0.2623, allocations: 28 kB / 1.033 GB, free: 11.41 MB / 0.8106 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.0002021/0.2625, allocations: 131.2 kB / 1.033 GB, free: 11.27 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.00034/0.2629, allocations: 91.95 kB / 1.033 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2629, allocations: 0 / 1.033 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001467/0.263, allocations: 43.97 kB / 1.033 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001392/0.2632, allocations: 4 kB / 1.033 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005532/0.2637, allocations: 185.5 kB / 1.033 GB, free: 10.93 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002542/0.264, allocations: 0.6845 MB / 1.034 GB, free: 10.22 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.843e-05/0.2641, allocations: 12 kB / 1.034 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.245e-05/0.2641, allocations: 15.42 kB / 1.034 GB, free: 10.19 MB / 0.8106 GB Notification: Performance of SimCode: time 2.21e-07/0.2641, allocations: 0 / 1.034 GB, free: 10.19 MB / 0.8106 GB Notification: Performance of Templates: time 0.003131/0.2673, allocations: 1.155 MB / 1.035 GB, free: 9.039 MB / 0.8106 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 -s cvode -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/jenkins1/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