Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.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.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|y_comp|der_y|der_y_comp|der_err|err",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|y_comp|der_y|der_y_comp|der_err|err",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.258/2.258, allocations: 393.5 MB / 408.4 MB, free: 11.07 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.001291/0.001291, allocations: 185.9 kB / 0.4902 GB, free: 2.273 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.739/1.739, allocations: 223.1 MB / 0.7992 GB, free: 14.7 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.0009867/0.0009867, allocations: 103.1 kB / 0.9396 GB, free: 1.867 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003754/0.0003754, allocations: 15.12 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3149/0.3152, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1935/0.5088, allocations: 151.6 MB / 1.377 GB, free: 1.914 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/0.5092, allocations: 83.94 kB / 1.377 GB, free: 1.832 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01766/0.5268, allocations: 5.538 MB / 1.383 GB, free: 12.29 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.084e-06/0.5269, allocations: 0 / 1.383 GB, free: 12.29 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.564e-06/0.5269, allocations: 0 / 1.383 GB, free: 12.29 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005794/0.5275, allocations: 399 kB / 1.383 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.5275, allocations: 8.562 kB / 1.383 GB, free: 11.84 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003932/0.5279, allocations: 63.94 kB / 1.383 GB, free: 11.78 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001437/0.5281, allocations: 174.9 kB / 1.383 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.18e-05/0.5281, allocations: 4 kB / 1.383 GB, free: 11.56 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.191e-05/0.5282, allocations: 8 kB / 1.383 GB, free: 11.55 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003869/0.5286, allocations: 125.6 kB / 1.383 GB, free: 11.43 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.5286, allocations: 0 / 1.383 GB, free: 11.43 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.706e-05/0.5286, allocations: 7.938 kB / 1.383 GB, free: 11.42 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.227e-06/0.5286, allocations: 0 / 1.383 GB, free: 11.42 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004861/0.5291, allocations: 127.9 kB / 1.384 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006601/0.5298, allocations: 356.5 kB / 1.384 GB, free: 10.89 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006632/0.5305, allocations: 178.4 kB / 1.384 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.5305, allocations: 4 kB / 1.384 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/0.5305, allocations: 30.56 kB / 1.384 GB, free: 10.67 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.5306, allocations: 0 / 1.384 GB, free: 10.67 MB / 0.8855 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=11): time 0.02016/0.5507, allocations: 3.178 MB / 1.387 GB, free: 7.395 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.795e-05/0.5508, allocations: 55.41 kB / 1.387 GB, free: 7.328 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.351e-05/0.5509, allocations: 93 kB / 1.387 GB, free: 7.23 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.759e-05/0.551, allocations: 29.7 kB / 1.387 GB, free: 7.195 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.476e-05/0.551, allocations: 88.03 kB / 1.388 GB, free: 7.105 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 7.517e-05/0.5511, allocations: 39.47 kB / 1.388 GB, free: 7.066 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.516e-05/0.5511, allocations: 7.875 kB / 1.388 GB, free: 7.059 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.5513, allocations: 318.8 kB / 1.388 GB, free: 6.738 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006487/0.5519, allocations: 215.8 kB / 1.388 GB, free: 6.527 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006306/0.5526, allocations: 215.8 kB / 1.388 GB, free: 6.316 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006552/0.5532, allocations: 215.8 kB / 1.388 GB, free: 6.105 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.5533, allocations: 0 / 1.388 GB, free: 6.105 MB / 0.8855 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001537/0.5548, allocations: 0.5233 MB / 1.389 GB, free: 5.578 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.5548, allocations: 7.953 kB / 1.389 GB, free: 5.57 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.5548, allocations: 0 / 1.389 GB, free: 5.57 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.5549, allocations: 0 / 1.389 GB, free: 5.57 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009153/0.5558, allocations: 131.7 kB / 1.389 GB, free: 5.441 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.053e-05/0.5558, allocations: 4.062 kB / 1.389 GB, free: 5.438 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006862/0.5565, allocations: 55.94 kB / 1.389 GB, free: 5.383 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.397e-05/0.5566, allocations: 23.94 kB / 1.389 GB, free: 5.359 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 (13): * Single equations (assignments): 13 * 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 0.0001623/0.5568, allocations: 113.8 kB / 1.389 GB, free: 5.238 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.154e-05/0.5568, allocations: 7.984 kB / 1.389 GB, free: 5.23 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.248e-05/0.5569, allocations: 15.92 kB / 1.389 GB, free: 5.215 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.5569, allocations: 4 kB / 1.389 GB, free: 5.211 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.5569, allocations: 0 / 1.389 GB, free: 5.211 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.5569, allocations: 0 / 1.389 GB, free: 5.211 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002366/0.5593, allocations: 1.109 MB / 1.39 GB, free: 3.984 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.5593, allocations: 4 kB / 1.39 GB, free: 3.98 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009089/0.5602, allocations: 119.8 kB / 1.391 GB, free: 3.863 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.5602, allocations: 0 / 1.391 GB, free: 3.863 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.953e-05/0.5603, allocations: 23.94 kB / 1.391 GB, free: 3.84 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.5603, allocations: 4 kB / 1.391 GB, free: 3.836 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.5603, allocations: 96 / 1.391 GB, free: 3.836 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002383/0.5627, allocations: 0.8777 MB / 1.391 GB, free: 2.941 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001815/0.5629, allocations: 117.1 kB / 1.392 GB, free: 2.809 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.109e-05/0.563, allocations: 4 kB / 1.392 GB, free: 2.805 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000747/0.5637, allocations: 60 kB / 1.392 GB, free: 2.746 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.512e-05/0.5638, allocations: 27.91 kB / 1.392 GB, free: 2.719 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.877e-05/0.5639, allocations: 31.92 kB / 1.392 GB, free: 2.688 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.792e-05/0.564, allocations: 79.28 kB / 1.392 GB, free: 2.609 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.564, allocations: 0 / 1.392 GB, free: 2.609 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004172/0.5644, allocations: 59.94 kB / 1.392 GB, free: 2.551 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_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 (11): * Single equations (assignments): 11 * 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.000297/0.5647, allocations: 120 kB / 1.392 GB, free: 2.426 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001497/0.5662, allocations: 479.5 kB / 1.392 GB, free: 1.957 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.5662, allocations: 0 / 1.392 GB, free: 1.957 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0007277/0.567, allocations: 247.7 kB / 1.393 GB, free: 1.715 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002552/0.5672, allocations: 10.25 kB / 1.393 GB, free: 1.707 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004472/0.5717, allocations: 0.8692 MB / 1.393 GB, free: 0.8047 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003516/0.5721, allocations: 0.6965 MB / 1.394 GB, free: 84 kB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0006903/0.5728, allocations: 84.67 kB / 1.394 GB, free: 0 / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002862/0.5731, allocations: 59.3 kB / 1.394 GB, free: 15.94 MB / 0.9011 GB Notification: Performance of SimCode: time 9.52e-07/0.5731, allocations: 0 / 1.394 GB, free: 15.94 MB / 0.9011 GB Notification: Performance of Templates: time 0.007451/0.5805, allocations: 3.237 MB / 1.397 GB, free: 12.7 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches