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.007117/0.007117, allocations: 100.1 kB / 15.73 MB, free: 6.043 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.001664/0.001664, allocations: 190.6 kB / 16.67 MB, free: 5.977 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.821/2.821, allocations: 461.9 MB / 0.7348 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 67.89 kB / 1.054 GB, free: 7.578 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3347/0.336, allocations: 157.4 MB / 1.207 GB, free: 10.07 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXRegularized): time 0.001759/0.3378, allocations: 0.6342 MB / 1.208 GB, free: 9.43 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001817/0.3397, allocations: 1.442 MB / 1.209 GB, free: 7.969 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.053e-05/0.3397, allocations: 0 / 1.209 GB, free: 7.969 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.796e-05/0.3398, allocations: 3.938 kB / 1.209 GB, free: 7.965 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.815e-05/0.3398, allocations: 7.938 kB / 1.209 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004311/0.3403, allocations: 123.5 kB / 1.209 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.767e-05/0.3404, allocations: 31.95 kB / 1.21 GB, free: 7.805 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.251e-05/0.3404, allocations: 4 kB / 1.21 GB, free: 7.801 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.442e-05/0.3404, allocations: 11.92 kB / 1.21 GB, free: 7.789 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.82e-05/0.3405, allocations: 23.86 kB / 1.21 GB, free: 7.766 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.29e-05/0.3405, allocations: 0 / 1.21 GB, free: 7.766 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004674/0.341, allocations: 323.3 kB / 1.21 GB, free: 7.449 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.596e-05/0.341, allocations: 11.94 kB / 1.21 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.408e-05/0.3411, allocations: 11.92 kB / 1.21 GB, free: 7.426 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003001/0.3414, allocations: 191.9 kB / 1.21 GB, free: 7.238 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.3414, allocations: 0 / 1.21 GB, free: 7.238 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3414, allocations: 0 / 1.21 GB, free: 7.238 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.24e-06/0.3414, allocations: 4 kB / 1.21 GB, free: 7.234 MB / 0.9669 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.0005107/0.3419, allocations: 375.2 kB / 1.21 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.342, allocations: 8.625 kB / 1.21 GB, free: 6.812 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.225e-05/0.342, allocations: 38.73 kB / 1.21 GB, free: 6.766 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003877/0.3424, allocations: 60.86 kB / 1.211 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.3426, allocations: 180.2 kB / 1.211 GB, free: 6.492 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.507e-05/0.3426, allocations: 384 / 1.211 GB, free: 6.492 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.081e-05/0.3426, allocations: 8.375 kB / 1.211 GB, free: 6.484 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002752/0.3429, allocations: 77.77 kB / 1.211 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.3429, allocations: 0 / 1.211 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.388e-06/0.3429, allocations: 0 / 1.211 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.3429, allocations: 4 kB / 1.211 GB, free: 6.398 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003811/0.3433, allocations: 67.91 kB / 1.211 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001883/0.3435, allocations: 181.7 kB / 1.211 GB, free: 6.105 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005769/0.3441, allocations: 122.4 kB / 1.211 GB, free: 5.977 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001938/0.3443, allocations: 40.95 kB / 1.211 GB, free: 5.934 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.3443, allocations: 0 / 1.211 GB, free: 5.934 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.3444, allocations: 46.48 kB / 1.211 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=5): time 1.493e-06/0.3444, allocations: 0 / 1.211 GB, free: 5.879 MB / 0.9669 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.004214/0.3486, allocations: 0.7841 MB / 1.212 GB, free: 5.09 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.3487, allocations: 59.41 kB / 1.212 GB, free: 5.02 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.84e-05/0.3488, allocations: 109.8 kB / 1.212 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.3488, allocations: 29.7 kB / 1.212 GB, free: 4.867 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.431e-05/0.3488, allocations: 80.14 kB / 1.212 GB, free: 4.785 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.164e-05/0.3489, allocations: 31.55 kB / 1.212 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.063e-05/0.3489, allocations: 25.7 kB / 1.212 GB, free: 4.723 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.787e-05/0.349, allocations: 322.8 kB / 1.213 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000465/0.3495, allocations: 95.91 kB / 1.213 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004412/0.35, allocations: 99.92 kB / 1.213 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008525/0.3508, allocations: 196.6 kB / 1.213 GB, free: 4.012 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.3508, allocations: 3.938 kB / 1.213 GB, free: 4.008 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000953/0.3518, allocations: 241.3 kB / 1.213 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.3518, allocations: 4 kB / 1.213 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.3518, allocations: 3.938 kB / 1.213 GB, free: 3.758 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.3519, allocations: 4 kB / 1.213 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003183/0.3522, allocations: 55.94 kB / 1.213 GB, free: 3.699 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.3522, allocations: 0 / 1.213 GB, free: 3.699 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002302/0.3524, allocations: 40.7 kB / 1.213 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.729e-05/0.3525, allocations: 7.984 kB / 1.213 GB, free: 3.652 MB / 0.9669 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 8.418e-05/0.3525, allocations: 113.8 kB / 1.213 GB, free: 3.531 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.298e-05/0.3526, allocations: 7.906 kB / 1.213 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.333e-05/0.3526, allocations: 8.375 kB / 1.213 GB, free: 3.512 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.3526, allocations: 4 kB / 1.213 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3526, allocations: 0 / 1.213 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3526, allocations: 0 / 1.213 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001749/0.3544, allocations: 0.6052 MB / 1.214 GB, free: 2.84 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.3544, allocations: 0 / 1.214 GB, free: 2.84 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000275/0.3547, allocations: 56 kB / 1.214 GB, free: 2.785 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.3547, allocations: 0 / 1.214 GB, free: 2.785 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/0.3547, allocations: 4 kB / 1.214 GB, free: 2.781 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3547, allocations: 0 / 1.214 GB, free: 2.781 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.3547, allocations: 8.219 kB / 1.214 GB, free: 2.773 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009831/0.3557, allocations: 344.8 kB / 1.214 GB, free: 2.414 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.164e-05/0.3558, allocations: 85.02 kB / 1.215 GB, free: 2.312 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.264e-05/0.3558, allocations: 0 / 1.215 GB, free: 2.312 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002673/0.3561, allocations: 43.89 kB / 1.215 GB, free: 2.27 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.263e-05/0.3562, allocations: 19.91 kB / 1.215 GB, free: 2.25 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.3562, allocations: 7.984 kB / 1.215 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.312e-05/0.3562, allocations: 87.28 kB / 1.215 GB, free: 2.156 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.41e-07/0.3562, allocations: 0 / 1.215 GB, free: 2.156 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003191/0.3566, allocations: 47.98 kB / 1.215 GB, free: 2.109 MB / 0.9669 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.001454/0.358, allocations: 0.8897 MB / 1.216 GB, free: 1.188 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0009863/0.359, allocations: 207.7 kB / 1.216 GB, free: 0.9844 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.3591, allocations: 3.938 kB / 1.216 GB, free: 0.9805 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0004775/0.3595, allocations: 112 kB / 1.216 GB, free: 0.8711 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002779/0.3598, allocations: 15.05 kB / 1.216 GB, free: 0.8594 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004927/0.3648, allocations: 2.13 MB / 1.218 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002572/0.365, allocations: 0.6885 MB / 1.219 GB, free: 13.93 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001314/0.3652, allocations: 25.77 kB / 1.219 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.304e-05/0.3653, allocations: 23.42 kB / 1.219 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of SimCode: time 7.21e-07/0.3653, allocations: 0 / 1.219 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01839/0.3837, allocations: 2.781 MB / 1.221 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.655/8.039, allocations: 5.5 kB / 1.221 GB, free: 11.23 MB / 0.9825 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) "" Variables in the reference:time,y,xInv,dy_dt,d2y_dt2 Variables in the result:a,b,c,d,d2y_dt2,delta,deltaInv,der(der(x)),der(dy_dt),der(x),der(y),dy_dt,e,f,time,x,xInv,y