Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.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.InverseXRegularized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|xInv|dy_dt|d2y_dt2",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXRegularized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|xInv|dy_dt|d2y_dt2",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.46/2.46, allocations: 393.5 MB / 408.4 MB, free: 10.99 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.001186/0.001186, allocations: 170.8 kB / 0.4902 GB, free: 2.25 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.587/1.587, allocations: 223.2 MB / 0.7992 GB, free: 14.75 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.001005/0.001005, allocations: 96.27 kB / 0.9396 GB, free: 1.914 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004045/0.0004046, allocations: 13.81 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3049, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2035/0.5084, allocations: 150.8 MB / 1.376 GB, free: 2.824 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/0.5087, allocations: 83.95 kB / 1.377 GB, free: 2.742 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01325/0.522, allocations: 4.208 MB / 1.381 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.192e-06/0.522, allocations: 0 / 1.381 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.394e-06/0.522, allocations: 0 / 1.381 GB, free: 14.53 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004681/0.5225, allocations: 380.2 kB / 1.381 GB, free: 14.11 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.5226, allocations: 8.562 kB / 1.381 GB, free: 14.1 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003902/0.5229, allocations: 59.88 kB / 1.381 GB, free: 14.04 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001799/0.5231, allocations: 178.9 kB / 1.381 GB, free: 13.83 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.5232, allocations: 4 kB / 1.381 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.645e-05/0.5232, allocations: 4 kB / 1.381 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002656/0.5235, allocations: 77.64 kB / 1.381 GB, free: 13.74 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.5235, allocations: 0 / 1.381 GB, free: 13.74 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.5235, allocations: 7.984 kB / 1.381 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.5235, allocations: 4 kB / 1.381 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003635/0.5239, allocations: 79.92 kB / 1.381 GB, free: 13.65 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002019/0.5241, allocations: 173.7 kB / 1.382 GB, free: 13.43 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005403/0.5246, allocations: 146.4 kB / 1.382 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.5247, allocations: 8.062 kB / 1.382 GB, free: 13.27 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.494e-05/0.5247, allocations: 34.55 kB / 1.382 GB, free: 13.23 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.5247, allocations: 0 / 1.382 GB, free: 13.23 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=9): time 0.005352/0.5301, allocations: 1.024 MB / 1.383 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.717e-05/0.5301, allocations: 51.41 kB / 1.383 GB, free: 12.13 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.672e-05/0.5302, allocations: 101 kB / 1.383 GB, free: 12.03 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.629e-05/0.5303, allocations: 25.7 kB / 1.383 GB, free: 12 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.992e-05/0.5303, allocations: 88.12 kB / 1.383 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.375e-05/0.5304, allocations: 27.56 kB / 1.383 GB, free: 11.88 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.378e-05/0.5304, allocations: 0 / 1.383 GB, free: 11.88 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.5305, allocations: 326.8 kB / 1.383 GB, free: 11.55 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004688/0.531, allocations: 132 kB / 1.383 GB, free: 11.42 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000433/0.5315, allocations: 127.8 kB / 1.384 GB, free: 11.3 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004423/0.5319, allocations: 131.8 kB / 1.384 GB, free: 11.17 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.5319, allocations: 0 / 1.384 GB, free: 11.17 MB / 0.8855 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000985/0.5329, allocations: 309.3 kB / 1.384 GB, free: 10.86 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.5329, allocations: 10.34 kB / 1.384 GB, free: 10.85 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.533, allocations: 0 / 1.384 GB, free: 10.85 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.533, allocations: 0 / 1.384 GB, free: 10.85 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003998/0.5334, allocations: 79.84 kB / 1.384 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.5334, allocations: 192 / 1.384 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003017/0.5337, allocations: 47.95 kB / 1.384 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.668e-05/0.5337, allocations: 11.98 kB / 1.384 GB, free: 10.71 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 (9): * Single equations (assignments): 9 * 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.675e-05/0.5338, allocations: 113.8 kB / 1.384 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.3e-05/0.5339, allocations: 3.906 kB / 1.384 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.387e-05/0.5339, allocations: 16.38 kB / 1.384 GB, free: 10.57 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.5339, allocations: 3.984 kB / 1.384 GB, free: 10.57 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.5339, allocations: 0 / 1.384 GB, free: 10.57 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.5339, allocations: 4 kB / 1.384 GB, free: 10.56 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001987/0.5359, allocations: 0.689 MB / 1.385 GB, free: 9.812 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.536, allocations: 0 / 1.385 GB, free: 9.812 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003315/0.5363, allocations: 67.98 kB / 1.385 GB, free: 9.746 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.5363, allocations: 4 kB / 1.385 GB, free: 9.742 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.5363, allocations: 7.922 kB / 1.385 GB, free: 9.734 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.131e-06/0.5363, allocations: 7.953 kB / 1.385 GB, free: 9.727 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.5364, allocations: 4 kB / 1.385 GB, free: 9.723 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009946/0.5374, allocations: 432.5 kB / 1.385 GB, free: 9.266 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.583e-05/0.5374, allocations: 88.97 kB / 1.386 GB, free: 9.16 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.204e-05/0.5374, allocations: 0 / 1.386 GB, free: 9.16 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003155/0.5378, allocations: 47.95 kB / 1.386 GB, free: 9.113 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.457e-05/0.5378, allocations: 7.984 kB / 1.386 GB, free: 9.105 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.5378, allocations: 11.98 kB / 1.386 GB, free: 9.094 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.414e-05/0.5379, allocations: 91.27 kB / 1.386 GB, free: 9.004 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5379, allocations: 0 / 1.386 GB, free: 9.004 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002966/0.5382, allocations: 39.94 kB / 1.386 GB, free: 8.965 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (9): * Single equations (assignments): 9 * 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.0002211/0.5384, allocations: 139.9 kB / 1.386 GB, free: 8.82 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0009198/0.5394, allocations: 263.7 kB / 1.386 GB, free: 8.562 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.5394, allocations: 0 / 1.386 GB, free: 8.562 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0004355/0.5398, allocations: 144 kB / 1.386 GB, free: 8.422 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001422/0.54, allocations: 0 / 1.386 GB, free: 8.422 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0018/0.5418, allocations: 0.4923 MB / 1.387 GB, free: 7.891 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002845/0.5421, allocations: 0.6965 MB / 1.387 GB, free: 7.168 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001517/0.5422, allocations: 24.66 kB / 1.387 GB, free: 7.141 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000105/0.5423, allocations: 27.39 kB / 1.387 GB, free: 7.113 MB / 0.8855 GB Notification: Performance of SimCode: time 2.51e-07/0.5423, allocations: 0 / 1.387 GB, free: 7.113 MB / 0.8855 GB Notification: Performance of Templates: time 0.004054/0.5464, allocations: 1.793 MB / 1.389 GB, free: 5.316 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXRegularized.csv","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches