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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.357/2.357, allocations: 393.5 MB / 408.4 MB, free: 11.03 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 183.8 kB / 0.4902 GB, free: 2.215 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.592/1.592, allocations: 223.1 MB / 0.7992 GB, free: 14.68 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001038, allocations: 93.95 kB / 0.9396 GB, free: 1.887 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004275/0.0004274, allocations: 17.59 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3256, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1957/0.5213, allocations: 150.8 MB / 1.376 GB, free: 2.719 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002668/0.5216, allocations: 79.94 kB / 1.377 GB, free: 2.641 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0125/0.5342, allocations: 4.134 MB / 1.381 GB, free: 14.5 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.675e-06/0.5342, allocations: 0 / 1.381 GB, free: 14.5 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.143e-06/0.5342, allocations: 0 / 1.381 GB, free: 14.5 MB / 0.8855 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.0004263/0.5346, allocations: 371.2 kB / 1.381 GB, free: 14.09 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.5347, allocations: 8.562 kB / 1.381 GB, free: 14.08 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003938/0.5351, allocations: 63.92 kB / 1.381 GB, free: 14.02 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001442/0.5353, allocations: 167 kB / 1.381 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.047e-05/0.5353, allocations: 8 kB / 1.381 GB, free: 13.81 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.135e-05/0.5353, allocations: 7.906 kB / 1.381 GB, free: 13.8 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002633/0.5356, allocations: 77.62 kB / 1.381 GB, free: 13.72 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.5356, allocations: 7.938 kB / 1.381 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.5356, allocations: 0 / 1.381 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/0.5356, allocations: 4 kB / 1.381 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000302/0.5359, allocations: 75.94 kB / 1.381 GB, free: 13.63 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002142/0.5362, allocations: 165.6 kB / 1.382 GB, free: 13.42 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006062/0.5368, allocations: 146.5 kB / 1.382 GB, free: 13.27 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.667e-05/0.5368, allocations: 4 kB / 1.382 GB, free: 13.27 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.549e-05/0.5369, allocations: 34.56 kB / 1.382 GB, free: 13.22 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=4): time 2.846e-06/0.5369, allocations: 0 / 1.382 GB, free: 13.22 MB / 0.8855 GB Notification: Performance of matching and sorting (n=5): time 0.001171/0.538, allocations: 442.3 kB / 1.382 GB, free: 12.74 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.16e-05/0.5381, allocations: 55.41 kB / 1.382 GB, free: 12.67 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.036e-05/0.5382, allocations: 92.98 kB / 1.382 GB, free: 12.57 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/0.5382, allocations: 29.7 kB / 1.382 GB, free: 12.54 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 3.244e-05/0.5382, allocations: 80.14 kB / 1.382 GB, free: 12.46 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.686e-05/0.5383, allocations: 15.75 kB / 1.382 GB, free: 12.44 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.205e-06/0.5383, allocations: 4 kB / 1.382 GB, free: 12.44 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.5384, allocations: 314.8 kB / 1.383 GB, free: 12.12 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.5386, allocations: 48.08 kB / 1.383 GB, free: 12.07 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001447/0.5387, allocations: 43.97 kB / 1.383 GB, free: 12.03 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001519/0.5389, allocations: 39.91 kB / 1.383 GB, free: 11.99 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.52e-07/0.5389, allocations: 4 kB / 1.383 GB, free: 11.99 MB / 0.8855 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003703/0.5393, allocations: 125.6 kB / 1.383 GB, free: 11.86 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.5393, allocations: 8 kB / 1.383 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.5393, allocations: 0 / 1.383 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.5393, allocations: 0 / 1.383 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000146/0.5395, allocations: 23.98 kB / 1.383 GB, free: 11.83 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.5395, allocations: 256 / 1.383 GB, free: 11.83 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.886e-05/0.5396, allocations: 15.98 kB / 1.383 GB, free: 11.81 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.5396, allocations: 11.98 kB / 1.383 GB, free: 11.8 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.574e-05/0.5397, allocations: 113.8 kB / 1.383 GB, free: 11.68 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.504e-05/0.5397, allocations: 7.906 kB / 1.383 GB, free: 11.67 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004555/0.5402, allocations: 149.1 kB / 1.383 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.5402, allocations: 0 / 1.383 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.5402, allocations: 0 / 1.383 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.5402, allocations: 4 kB / 1.383 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001439/0.5404, allocations: 173.6 kB / 1.383 GB, free: 11.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.5404, allocations: 0 / 1.383 GB, free: 11.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001632/0.5406, allocations: 27.92 kB / 1.383 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.5406, allocations: 0 / 1.383 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.5406, allocations: 0 / 1.383 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.5406, allocations: 3.984 kB / 1.383 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.5406, allocations: 0 / 1.383 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005662/0.5412, allocations: 209 kB / 1.384 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 7.55e-05/0.5413, allocations: 93.09 kB / 1.384 GB, free: 10.93 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.692e-05/0.5413, allocations: 0 / 1.384 GB, free: 10.93 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001163/0.5414, allocations: 15.98 kB / 1.384 GB, free: 10.92 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.928e-05/0.5415, allocations: 7.984 kB / 1.384 GB, free: 10.91 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.677e-06/0.5415, allocations: 0 / 1.384 GB, free: 10.91 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 3.718e-05/0.5415, allocations: 83.28 kB / 1.384 GB, free: 10.83 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5415, allocations: 4.094 kB / 1.384 GB, free: 10.82 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002331/0.5418, allocations: 43.92 kB / 1.384 GB, free: 10.78 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002301/0.542, allocations: 135.9 kB / 1.384 GB, free: 10.64 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003716/0.5424, allocations: 103.9 kB / 1.384 GB, free: 10.54 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.5424, allocations: 0 / 1.384 GB, free: 10.54 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001557/0.5425, allocations: 47.97 kB / 1.384 GB, free: 10.49 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001081/0.5427, allocations: 4 kB / 1.384 GB, free: 10.49 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006255/0.5433, allocations: 207.2 kB / 1.384 GB, free: 10.26 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002769/0.5436, allocations: 0.6848 MB / 1.385 GB, free: 9.547 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001115/0.5437, allocations: 16 kB / 1.385 GB, free: 9.531 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.396e-05/0.5438, allocations: 11.44 kB / 1.385 GB, free: 9.523 MB / 0.8855 GB Notification: Performance of SimCode: time 2.61e-07/0.5438, allocations: 3.938 kB / 1.385 GB, free: 9.52 MB / 0.8855 GB Notification: Performance of Templates: time 0.003187/0.5469, allocations: 1.095 MB / 1.386 GB, free: 8.422 MB / 0.8855 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","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches