Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Utilities_Math_Functions_Examples_InverseXRegularized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXRegularized,fileNamePrefix="Buildings_9_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.005236/0.005236, allocations: 101.5 kB / 15.73 MB, free: 6.035 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.001108/0.001108, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.39/2.39, allocations: 390.2 MB / 0.6648 GB, free: 248 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 64.7 kB / 0.9504 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3159/0.3172, allocations: 140.4 MB / 1.088 GB, free: 1.984 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXRegularized): time 0.002281/0.3195, allocations: 0.6232 MB / 1.088 GB, free: 1.363 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002316/0.3219, allocations: 1.46 MB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.593e-05/0.322, allocations: 0 / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.6e-05/0.322, allocations: 0 / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.857e-05/0.3221, allocations: 7.922 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005459/0.3226, allocations: 123.5 kB / 1.09 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.338e-05/0.3227, allocations: 27.92 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.324e-05/0.3228, allocations: 4 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.529e-05/0.3228, allocations: 11.92 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.215e-05/0.3229, allocations: 23.91 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.006e-05/0.3229, allocations: 0 / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005283/0.3234, allocations: 319.3 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.14e-05/0.3235, allocations: 11.92 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.907e-05/0.3235, allocations: 11.92 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003387/0.3238, allocations: 190.4 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3239, allocations: 7.938 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.122e-06/0.3239, allocations: 0 / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.3239, allocations: 0 / 1.09 GB, free: 15.16 MB / 0.8575 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.000543/0.3244, allocations: 376.2 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.3245, allocations: 12.03 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.335e-05/0.3245, allocations: 30.75 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003789/0.3249, allocations: 72.75 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001585/0.3251, allocations: 168.4 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.3251, allocations: 384 / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.131e-05/0.3251, allocations: 8.281 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002568/0.3254, allocations: 77.77 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.3254, allocations: 4 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.197e-06/0.3254, allocations: 4 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.3254, allocations: 0 / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004251/0.3259, allocations: 71.86 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002018/0.3261, allocations: 169.7 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005381/0.3266, allocations: 126.5 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001806/0.3268, allocations: 40.94 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.807e-05/0.3268, allocations: 0 / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.005e-05/0.3269, allocations: 46.5 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.012e-06/0.3269, allocations: 0 / 1.091 GB, free: 13.81 MB / 0.8575 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.004076/0.331, allocations: 0.774 MB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/0.331, allocations: 59.39 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.3311, allocations: 109.8 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.3312, allocations: 25.7 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.621e-05/0.3312, allocations: 88.14 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.614e-05/0.3313, allocations: 31.55 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.229e-05/0.3314, allocations: 25.7 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.3315, allocations: 322.8 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004513/0.3319, allocations: 103.8 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004494/0.3324, allocations: 99.94 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008286/0.3332, allocations: 188.7 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.3332, allocations: 7.938 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000985/0.3342, allocations: 245.3 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.3343, allocations: 4 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.3343, allocations: 0 / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.3343, allocations: 0 / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003129/0.3346, allocations: 55.94 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.393e-06/0.3346, allocations: 4 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002249/0.3349, allocations: 35.95 kB / 1.094 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.3349, allocations: 0 / 1.094 GB, free: 11.6 MB / 0.8575 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.0001063/0.335, allocations: 125.7 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.327e-05/0.335, allocations: 4 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.677e-05/0.3351, allocations: 12.36 kB / 1.094 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.3351, allocations: 0 / 1.094 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.3351, allocations: 0.75 kB / 1.094 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.3351, allocations: 4 kB / 1.094 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001791/0.3369, allocations: 0.5935 MB / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.3369, allocations: 0 / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002749/0.3372, allocations: 67.94 kB / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.3372, allocations: 0 / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.3373, allocations: 4 kB / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.3373, allocations: 0 / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.3373, allocations: 8.203 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009977/0.3383, allocations: 344.9 kB / 1.095 GB, free: 10.35 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.263e-05/0.3383, allocations: 85.09 kB / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.27e-05/0.3384, allocations: 0 / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002468/0.3386, allocations: 35.95 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.4e-05/0.3387, allocations: 19.92 kB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.3387, allocations: 4 kB / 1.095 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.569e-05/0.3388, allocations: 95.64 kB / 1.095 GB, free: 10.1 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3388, allocations: 3.938 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000324/0.3391, allocations: 32 kB / 1.095 GB, free: 10.06 MB / 0.8575 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.001547/0.3407, allocations: 0.9052 MB / 1.096 GB, free: 9.125 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0009406/0.3417, allocations: 211.7 kB / 1.096 GB, free: 8.918 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.3417, allocations: 4 kB / 1.096 GB, free: 8.914 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004336/0.3421, allocations: 108 kB / 1.096 GB, free: 8.809 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.3424, allocations: 13.17 kB / 1.096 GB, free: 8.797 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005023/0.3474, allocations: 2.132 MB / 1.098 GB, free: 6.574 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/0.3478, allocations: 0.6807 MB / 1.099 GB, free: 5.867 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001337/0.348, allocations: 24.97 kB / 1.099 GB, free: 5.844 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.3481, allocations: 23.42 kB / 1.099 GB, free: 5.82 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.3481, allocations: 4 kB / 1.099 GB, free: 5.816 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02475/0.3728, allocations: 2.785 MB / 1.102 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.558/7.931, allocations: 13.25 kB / 1.102 GB, free: 3.129 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXRegularized_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXRegularized.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXRegularized_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_InverseXRegularized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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