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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXRegularized,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXRegularized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXRegularized,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXRegularized",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001455/0.001455, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.312/1.312, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.62/2.62, allocations: 461.9 MB / 0.7347 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 69.44 kB / 0.8992 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.249, allocations: 157.4 MB / 1.053 GB, free: 8.207 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXRegularized): time 0.00189/0.2509, allocations: 0.6322 MB / 1.054 GB, free: 7.57 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001683/0.2526, allocations: 1.466 MB / 1.055 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.542e-05/0.2527, allocations: 4 kB / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.277e-05/0.2527, allocations: 0 / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.893e-05/0.2528, allocations: 7.938 kB / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004202/0.2532, allocations: 123 kB / 1.055 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.292e-05/0.2533, allocations: 19.98 kB / 1.055 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.233e-05/0.2533, allocations: 8 kB / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.6e-05/0.2533, allocations: 19.86 kB / 1.055 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.001e-05/0.2534, allocations: 19.91 kB / 1.055 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.309e-05/0.2534, allocations: 4 kB / 1.055 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004343/0.2539, allocations: 311.4 kB / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.402e-05/0.2539, allocations: 19.91 kB / 1.055 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.626e-05/0.2539, allocations: 7.938 kB / 1.055 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002699/0.2542, allocations: 183.9 kB / 1.056 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.2542, allocations: 0 / 1.056 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.92e-07/0.2542, allocations: 0 / 1.056 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.925e-06/0.2542, allocations: 0 / 1.056 GB, free: 5.375 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004725/0.2547, allocations: 391.3 kB / 1.056 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.2548, allocations: 12.62 kB / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.056e-05/0.2548, allocations: 30.75 kB / 1.056 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003655/0.2552, allocations: 60.77 kB / 1.056 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001273/0.2553, allocations: 172.4 kB / 1.056 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.2553, allocations: 4.375 kB / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.54e-05/0.2554, allocations: 4.375 kB / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002612/0.2556, allocations: 77.77 kB / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.2556, allocations: 0 / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.798e-06/0.2557, allocations: 0 / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.2557, allocations: 4 kB / 1.056 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000349/0.256, allocations: 75.86 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00017/0.2562, allocations: 165.6 kB / 1.057 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000532/0.2567, allocations: 130.5 kB / 1.057 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001789/0.2569, allocations: 44.94 kB / 1.057 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.55e-05/0.2569, allocations: 0 / 1.057 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.084e-05/0.257, allocations: 34.5 kB / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.082e-06/0.257, allocations: 4 kB / 1.057 GB, free: 4.02 MB / 0.8106 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.004037/0.261, allocations: 0.7894 MB / 1.058 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.941e-05/0.2611, allocations: 51.41 kB / 1.058 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.75e-05/0.2612, allocations: 117.8 kB / 1.058 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.2612, allocations: 25.7 kB / 1.058 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.402e-05/0.2612, allocations: 88.14 kB / 1.058 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.344e-05/0.2613, allocations: 35.55 kB / 1.058 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.436e-05/0.2613, allocations: 25.7 kB / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.686e-05/0.2614, allocations: 314.8 kB / 1.058 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000426/0.2619, allocations: 95.89 kB / 1.058 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004149/0.2623, allocations: 99.84 kB / 1.058 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008305/0.2631, allocations: 192.7 kB / 1.059 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.2631, allocations: 3.938 kB / 1.059 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0009019/0.264, allocations: 249.3 kB / 1.059 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.2641, allocations: 4 kB / 1.059 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.2641, allocations: 0 / 1.059 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.2641, allocations: 4 kB / 1.059 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003005/0.2644, allocations: 51.94 kB / 1.059 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.2644, allocations: 0 / 1.059 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000222/0.2646, allocations: 36.7 kB / 1.059 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.2647, allocations: 8.688 kB / 1.059 GB, free: 1.793 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 (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 7.487e-05/0.2647, allocations: 117.7 kB / 1.059 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.085e-05/0.2648, allocations: 0 / 1.059 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.127e-05/0.2648, allocations: 24.36 kB / 1.059 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2648, allocations: 3.938 kB / 1.059 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.2648, allocations: 0 / 1.059 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.2648, allocations: 0 / 1.059 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001568/0.2664, allocations: 0.6052 MB / 1.06 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.2664, allocations: 0 / 1.06 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002651/0.2667, allocations: 51.94 kB / 1.06 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.2667, allocations: 4.062 kB / 1.06 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.2667, allocations: 11.94 kB / 1.06 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.077e-06/0.2667, allocations: 3.984 kB / 1.06 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.2667, allocations: 3.938 kB / 1.06 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009104/0.2677, allocations: 340.9 kB / 1.06 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.469e-05/0.2677, allocations: 81.09 kB / 1.06 GB, free: 456 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.577e-05/0.2677, allocations: 8 kB / 1.06 GB, free: 448 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002478/0.268, allocations: 35.95 kB / 1.06 GB, free: 412 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.933e-05/0.268, allocations: 11.92 kB / 1.06 GB, free: 400 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.099e-05/0.2681, allocations: 4 kB / 1.06 GB, free: 396 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.377e-05/0.2681, allocations: 91.27 kB / 1.06 GB, free: 304 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.2681, allocations: 0 / 1.06 GB, free: 304 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002802/0.2684, allocations: 36 kB / 1.06 GB, free: 268 kB / 0.8106 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.001255/0.2697, allocations: 0.9013 MB / 1.061 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0009024/0.2706, allocations: 215.7 kB / 1.061 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2706, allocations: 0 / 1.061 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004627/0.2711, allocations: 112 kB / 1.062 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002302/0.2713, allocations: 8.312 kB / 1.062 GB, free: 15 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00448/0.2758, allocations: 2.13 MB / 1.064 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001869/0.276, allocations: 0.6885 MB / 1.064 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001045/0.2761, allocations: 16.67 kB / 1.064 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.876e-05/0.2762, allocations: 27.42 kB / 1.064 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of SimCode: time 3e-07/0.2762, allocations: 0 / 1.064 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0181/0.2943, allocations: 2.711 MB / 1.067 GB, free: 9.426 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.992/7.286, allocations: 5.25 kB / 1.067 GB, free: 9.426 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXRegularized_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXRegularized.fmu > 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