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.00902/0.00902, allocations: 100.3 kB / 15.73 MB, free: 6 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.002214/0.002214, allocations: 195.1 kB / 16.67 MB, free: 5.922 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.734/2.734, allocations: 461.9 MB / 0.7348 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 67.91 kB / 1.054 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9858/0.9873, allocations: 157.4 MB / 1.207 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXRegularized): time 0.001819/0.9892, allocations: 0.6433 MB / 1.208 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002079/0.9913, allocations: 1.443 MB / 1.209 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.882e-05/0.9913, allocations: 3.938 kB / 1.209 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.284e-05/0.9914, allocations: 0 / 1.209 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.082e-05/0.9915, allocations: 7.938 kB / 1.209 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000625/0.9921, allocations: 119.5 kB / 1.209 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 8.59e-05/0.9922, allocations: 31.95 kB / 1.21 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.798e-05/0.9923, allocations: 4 kB / 1.21 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.457e-05/0.9924, allocations: 15.88 kB / 1.21 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.17e-05/0.9924, allocations: 19.91 kB / 1.21 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.6e-05/0.9925, allocations: 0 / 1.21 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005907/0.9931, allocations: 323.3 kB / 1.21 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.55e-05/0.9931, allocations: 7.938 kB / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.622e-05/0.9931, allocations: 11.92 kB / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003922/0.9935, allocations: 181.9 kB / 1.21 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.9936, allocations: 4 kB / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.244e-06/0.9936, allocations: 3.938 kB / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.065e-06/0.9936, allocations: 4 kB / 1.21 GB, free: 10.7 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.0006157/0.9942, allocations: 375.3 kB / 1.21 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.9943, allocations: 8.031 kB / 1.21 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.509e-05/0.9943, allocations: 42.67 kB / 1.21 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003938/0.9947, allocations: 64.77 kB / 1.211 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00015/0.9949, allocations: 172.2 kB / 1.211 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.9949, allocations: 384 / 1.211 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/0.9949, allocations: 8.375 kB / 1.211 GB, free: 9.945 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002774/0.9952, allocations: 81.77 kB / 1.211 GB, free: 9.859 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.9952, allocations: 0 / 1.211 GB, free: 9.859 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.9952, allocations: 0 / 1.211 GB, free: 9.859 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.9953, allocations: 0 / 1.211 GB, free: 9.859 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003614/0.9956, allocations: 75.91 kB / 1.211 GB, free: 9.785 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002108/0.9958, allocations: 177.6 kB / 1.211 GB, free: 9.562 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005318/0.9964, allocations: 126.5 kB / 1.211 GB, free: 9.43 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001749/0.9966, allocations: 36.95 kB / 1.211 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.951e-05/0.9966, allocations: 4 kB / 1.211 GB, free: 9.387 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/0.9966, allocations: 42.48 kB / 1.211 GB, free: 9.336 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=5): time 1.192e-06/0.9966, allocations: 0 / 1.211 GB, free: 9.336 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.004178/1.001, allocations: 0.7817 MB / 1.212 GB, free: 8.547 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/1.001, allocations: 51.41 kB / 1.212 GB, free: 8.484 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.524e-05/1.001, allocations: 113.8 kB / 1.212 GB, free: 8.363 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/1.001, allocations: 25.7 kB / 1.212 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.578e-05/1.001, allocations: 88.14 kB / 1.212 GB, free: 8.242 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.726e-05/1.001, allocations: 27.61 kB / 1.212 GB, free: 8.215 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.708e-05/1.001, allocations: 25.7 kB / 1.212 GB, free: 8.184 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001174/1.001, allocations: 318.8 kB / 1.213 GB, free: 7.863 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004288/1.002, allocations: 95.91 kB / 1.213 GB, free: 7.77 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004131/1.002, allocations: 99.83 kB / 1.213 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007949/1.003, allocations: 200.9 kB / 1.213 GB, free: 7.473 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/1.003, allocations: 3.938 kB / 1.213 GB, free: 7.469 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0008813/1.004, allocations: 237.3 kB / 1.213 GB, free: 7.23 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/1.004, allocations: 4 kB / 1.213 GB, free: 7.227 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/1.004, allocations: 8 kB / 1.213 GB, free: 7.219 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/1.004, allocations: 0 / 1.213 GB, free: 7.219 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003176/1.004, allocations: 51.88 kB / 1.213 GB, free: 7.168 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/1.004, allocations: 4 kB / 1.213 GB, free: 7.164 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002284/1.005, allocations: 36.7 kB / 1.213 GB, free: 7.129 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.711e-05/1.005, allocations: 7.984 kB / 1.213 GB, free: 7.121 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 0.0001024/1.005, allocations: 117.7 kB / 1.213 GB, free: 6.996 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.754e-05/1.005, allocations: 19.83 kB / 1.213 GB, free: 6.977 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.95e-05/1.005, allocations: 12.38 kB / 1.213 GB, free: 6.961 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/1.005, allocations: 4 kB / 1.213 GB, free: 6.957 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/1.005, allocations: 0 / 1.213 GB, free: 6.957 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/1.005, allocations: 0 / 1.213 GB, free: 6.957 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001692/1.006, allocations: 0.5975 MB / 1.214 GB, free: 6.297 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/1.006, allocations: 0 / 1.214 GB, free: 6.297 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002607/1.007, allocations: 52.02 kB / 1.214 GB, free: 6.246 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.273e-06/1.007, allocations: 7.984 kB / 1.214 GB, free: 6.238 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/1.007, allocations: 0 / 1.214 GB, free: 6.238 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/1.007, allocations: 7.938 kB / 1.214 GB, free: 6.23 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/1.007, allocations: 3.938 kB / 1.214 GB, free: 6.227 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009002/1.008, allocations: 341 kB / 1.214 GB, free: 5.871 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.272e-05/1.008, allocations: 85.11 kB / 1.215 GB, free: 5.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.406e-05/1.008, allocations: 3.938 kB / 1.215 GB, free: 5.766 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002555/1.008, allocations: 43.95 kB / 1.215 GB, free: 5.723 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.528e-05/1.008, allocations: 11.92 kB / 1.215 GB, free: 5.711 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/1.008, allocations: 7.984 kB / 1.215 GB, free: 5.703 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.303e-05/1.008, allocations: 87.28 kB / 1.215 GB, free: 5.617 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/1.008, allocations: 0 / 1.215 GB, free: 5.617 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003276/1.009, allocations: 43.98 kB / 1.215 GB, free: 5.574 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.001355/1.01, allocations: 0.8897 MB / 1.216 GB, free: 4.652 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0009007/1.011, allocations: 211.7 kB / 1.216 GB, free: 4.445 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/1.011, allocations: 0 / 1.216 GB, free: 4.445 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0004222/1.011, allocations: 108 kB / 1.216 GB, free: 4.34 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002638/1.012, allocations: 15.88 kB / 1.216 GB, free: 4.324 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004574/1.016, allocations: 2.142 MB / 1.218 GB, free: 2.094 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/1.016, allocations: 0.6885 MB / 1.219 GB, free: 1.379 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001144/1.017, allocations: 20.89 kB / 1.219 GB, free: 1.359 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/1.017, allocations: 31.05 kB / 1.219 GB, free: 1.332 MB / 0.9356 GB Notification: Performance of SimCode: time 7.72e-07/1.017, allocations: 0 / 1.219 GB, free: 1.332 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02147/1.038, allocations: 2.788 MB / 1.221 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.813/8.851, allocations: 6.578 kB / 1.221 GB, free: 14.68 MB / 0.9512 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