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/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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 105.2 kB / 16.41 MB, free: 6.461 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.001527/0.001527, allocations: 192.2 kB / 17.34 MB, free: 5.715 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.434/1.434, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.717/2.717, allocations: 461.9 MB / 0.7355 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002237/0.002237, allocations: 64.12 kB / 1.055 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8233/0.8255, allocations: 157.4 MB / 1.208 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXRegularized): time 0.002867/0.8284, allocations: 0.6463 MB / 1.209 GB, free: 12.92 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002366/0.8309, allocations: 1.446 MB / 1.211 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.493e-05/0.8309, allocations: 4 kB / 1.211 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.017e-05/0.831, allocations: 3.938 kB / 1.211 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.185e-05/0.8311, allocations: 3.938 kB / 1.211 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005094/0.8316, allocations: 115.5 kB / 1.211 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.773e-05/0.8317, allocations: 31.86 kB / 1.211 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.019e-05/0.8317, allocations: 11.98 kB / 1.211 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.586e-05/0.8318, allocations: 7.938 kB / 1.211 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.016e-05/0.8318, allocations: 27.89 kB / 1.211 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.458e-05/0.8319, allocations: 3.938 kB / 1.211 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004855/0.8324, allocations: 311.4 kB / 1.211 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.847e-05/0.8324, allocations: 11.97 kB / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.38e-05/0.8324, allocations: 11.88 kB / 1.211 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003291/0.8328, allocations: 183.7 kB / 1.211 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.8328, allocations: 0 / 1.211 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.044e-06/0.8328, allocations: 0 / 1.211 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.8328, allocations: 4 kB / 1.211 GB, free: 10.74 MB / 0.9356 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.0005707/0.8334, allocations: 377.1 kB / 1.212 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.8334, allocations: 12.03 kB / 1.212 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004182/0.8339, allocations: 60.77 kB / 1.212 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001517/0.834, allocations: 180.2 kB / 1.212 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.8341, allocations: 8.312 kB / 1.212 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.408e-05/0.8341, allocations: 8.25 kB / 1.212 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002852/0.8344, allocations: 81.94 kB / 1.212 GB, free: 9.941 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.8344, allocations: 0 / 1.212 GB, free: 9.941 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.493e-05/0.8344, allocations: 4 kB / 1.212 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.8344, allocations: 4 kB / 1.212 GB, free: 9.934 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003681/0.8348, allocations: 67.92 kB / 1.212 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001957/0.835, allocations: 169.7 kB / 1.212 GB, free: 9.652 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005581/0.8356, allocations: 126.4 kB / 1.212 GB, free: 9.52 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001899/0.8358, allocations: 44.94 kB / 1.212 GB, free: 9.473 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.612e-05/0.8358, allocations: 0 / 1.212 GB, free: 9.473 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.002e-05/0.8358, allocations: 34.5 kB / 1.212 GB, free: 9.43 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=5): time 9.41e-07/0.8358, allocations: 4 kB / 1.212 GB, free: 9.426 MB / 0.9356 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.004273/0.8401, allocations: 0.7856 MB / 1.213 GB, free: 8.633 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.915e-05/0.8402, allocations: 55.41 kB / 1.213 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/0.8403, allocations: 109.8 kB / 1.213 GB, free: 8.449 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.8403, allocations: 25.7 kB / 1.213 GB, free: 8.418 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.128e-05/0.8404, allocations: 92.12 kB / 1.213 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.879e-05/0.8404, allocations: 27.61 kB / 1.213 GB, free: 8.297 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.127e-05/0.8405, allocations: 29.7 kB / 1.213 GB, free: 8.262 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001011/0.8406, allocations: 314.8 kB / 1.214 GB, free: 7.945 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004488/0.8411, allocations: 96.64 kB / 1.214 GB, free: 7.852 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004372/0.8415, allocations: 95.91 kB / 1.214 GB, free: 7.758 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000858/0.8424, allocations: 200.8 kB / 1.214 GB, free: 7.559 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.8424, allocations: 0 / 1.214 GB, free: 7.559 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0009635/0.8434, allocations: 245.3 kB / 1.214 GB, free: 7.312 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.8434, allocations: 5.562 kB / 1.214 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.8434, allocations: 0 / 1.214 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.8434, allocations: 11.94 kB / 1.214 GB, free: 7.297 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003251/0.8437, allocations: 51.94 kB / 1.214 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.523e-06/0.8438, allocations: 0 / 1.214 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000238/0.844, allocations: 39.95 kB / 1.214 GB, free: 7.207 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.564e-05/0.844, allocations: 4 kB / 1.214 GB, free: 7.203 MB / 0.9356 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.74e-05/0.8441, allocations: 121.7 kB / 1.215 GB, free: 7.074 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.336e-05/0.8442, allocations: 0 / 1.215 GB, free: 7.074 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.078e-05/0.8442, allocations: 16.36 kB / 1.215 GB, free: 7.055 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.8442, allocations: 7.938 kB / 1.215 GB, free: 7.047 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.8442, allocations: 0 / 1.215 GB, free: 7.047 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.8442, allocations: 0 / 1.215 GB, free: 7.047 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001744/0.846, allocations: 0.6012 MB / 1.215 GB, free: 6.383 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.846, allocations: 0 / 1.215 GB, free: 6.383 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002725/0.8463, allocations: 51.94 kB / 1.215 GB, free: 6.332 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.8463, allocations: 0 / 1.215 GB, free: 6.332 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.93e-05/0.8463, allocations: 12.06 kB / 1.215 GB, free: 6.32 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.8463, allocations: 3.984 kB / 1.215 GB, free: 6.316 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.8464, allocations: 0 / 1.215 GB, free: 6.316 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009837/0.8473, allocations: 340.9 kB / 1.216 GB, free: 5.961 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.307e-05/0.8474, allocations: 85.09 kB / 1.216 GB, free: 5.859 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.705e-05/0.8474, allocations: 4 kB / 1.216 GB, free: 5.855 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002696/0.8477, allocations: 31.95 kB / 1.216 GB, free: 5.824 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.971e-05/0.8478, allocations: 19.86 kB / 1.216 GB, free: 5.805 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.8478, allocations: 8 kB / 1.216 GB, free: 5.797 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.852e-05/0.8478, allocations: 91.27 kB / 1.216 GB, free: 5.707 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.2e-07/0.8479, allocations: 192 / 1.216 GB, free: 5.707 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003095/0.8482, allocations: 32 kB / 1.216 GB, free: 5.676 MB / 0.9356 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 (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.0002405/0.8484, allocations: 135.2 kB / 1.216 GB, free: 5.535 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0009683/0.8494, allocations: 211.7 kB / 1.216 GB, free: 5.328 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.8494, allocations: 4 kB / 1.216 GB, free: 5.324 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000464/0.8499, allocations: 108 kB / 1.216 GB, free: 5.219 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002508/0.8501, allocations: 6.062 kB / 1.216 GB, free: 5.215 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00162/0.8518, allocations: 436.7 kB / 1.217 GB, free: 4.75 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002479/0.852, allocations: 0.6807 MB / 1.217 GB, free: 4.043 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.177e-05/0.8521, allocations: 23.42 kB / 1.217 GB, free: 4.02 MB / 0.9356 GB Notification: Performance of SimCode: time 2.71e-07/0.8521, allocations: 0 / 1.217 GB, free: 4.02 MB / 0.9356 GB Notification: Performance of Templates: time 0.003129/0.8553, allocations: 1.443 MB / 1.219 GB, free: 2.582 MB / 0.9356 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches