Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-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.InverseXDerivative_2_Check,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",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.001054/0.001054, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001408/0.001408, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 223.2 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.496/2.496, allocations: 409.4 MB / 0.684 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003486/0.0003487, allocations: 12 kB / 0.8378 GB, free: 6.465 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5935/0.5939, allocations: 146.8 MB / 0.9811 GB, free: 6.215 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.0009218/0.5948, allocations: 498.6 kB / 0.9816 GB, free: 5.727 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00155/0.5964, allocations: 1.41 MB / 0.983 GB, free: 4.297 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.794e-05/0.5964, allocations: 0 / 0.983 GB, free: 4.297 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.44e-05/0.5964, allocations: 0 / 0.983 GB, free: 4.297 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.726e-05/0.5965, allocations: 3.938 kB / 0.983 GB, free: 4.293 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004088/0.5969, allocations: 111.7 kB / 0.9831 GB, free: 4.184 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.487e-05/0.597, allocations: 39.91 kB / 0.9832 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.916e-05/0.5971, allocations: 7.984 kB / 0.9832 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.223e-05/0.5971, allocations: 27.91 kB / 0.9832 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.242e-05/0.5972, allocations: 27.91 kB / 0.9832 GB, free: 4.082 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.862e-05/0.5972, allocations: 4 kB / 0.9832 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004389/0.5977, allocations: 315.2 kB / 0.9835 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.916e-05/0.5977, allocations: 15.98 kB / 0.9835 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.838e-05/0.5977, allocations: 33.64 kB / 0.9836 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002178/0.598, allocations: 150.2 kB / 0.9837 GB, free: 3.57 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.598, allocations: 0 / 0.9837 GB, free: 3.57 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.282e-06/0.598, allocations: 0 / 0.9837 GB, free: 3.57 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.396e-06/0.598, allocations: 0 / 0.9837 GB, free: 3.57 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000574/0.5986, allocations: 391.2 kB / 0.9841 GB, free: 3.141 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.5986, allocations: 8.031 kB / 0.9841 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.298e-05/0.5987, allocations: 38.55 kB / 0.9841 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004077/0.5991, allocations: 83.83 kB / 0.9842 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001194/0.5992, allocations: 167 kB / 0.9844 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.885e-05/0.5992, allocations: 8 kB / 0.9844 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.05e-05/0.5993, allocations: 4 kB / 0.9844 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003584/0.5996, allocations: 133.5 kB / 0.9845 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.5997, allocations: 3.906 kB / 0.9845 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/0.5997, allocations: 4 kB / 0.9845 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.5997, allocations: 0 / 0.9845 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004452/0.6001, allocations: 123.9 kB / 0.9846 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005242/0.6007, allocations: 340.7 kB / 0.985 GB, free: 2.141 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005945/0.6013, allocations: 186.3 kB / 0.9851 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002167/0.6015, allocations: 64.81 kB / 0.9852 GB, free: 1.883 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.581e-05/0.6015, allocations: 3.984 kB / 0.9852 GB, free: 1.879 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.566e-05/0.6016, allocations: 34.56 kB / 0.9852 GB, free: 1.836 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.6016, allocations: 4 kB / 0.9852 GB, free: 1.832 MB / 0.7325 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=11): time 0.01652/0.6181, allocations: 3.174 MB / 0.9883 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.337e-05/0.6182, allocations: 59.44 kB / 0.9884 GB, free: 14.49 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.699e-05/0.6182, allocations: 109.9 kB / 0.9885 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.83e-05/0.6183, allocations: 33.7 kB / 0.9885 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 3.866e-05/0.6183, allocations: 84.05 kB / 0.9886 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 6.579e-05/0.6184, allocations: 43.38 kB / 0.9886 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.036e-05/0.6185, allocations: 8 kB / 0.9887 GB, free: 14.2 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 9.238e-05/0.6186, allocations: 314.8 kB / 0.989 GB, free: 13.88 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006225/0.6192, allocations: 219.8 kB / 0.9892 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006037/0.6198, allocations: 214.7 kB / 0.9894 GB, free: 13.46 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006308/0.6204, allocations: 223.8 kB / 0.9896 GB, free: 13.24 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.6205, allocations: 0 / 0.9896 GB, free: 13.24 MB / 0.7481 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001453/0.6219, allocations: 0.5207 MB / 0.9901 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.6219, allocations: 4 kB / 0.9901 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.622, allocations: 0 / 0.9901 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.622, allocations: 4.031 kB / 0.9901 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007649/0.6227, allocations: 131.7 kB / 0.9902 GB, free: 12.58 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.6228, allocations: 0 / 0.9902 GB, free: 12.58 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005546/0.6233, allocations: 59.94 kB / 0.9903 GB, free: 12.52 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.291e-05/0.6234, allocations: 31.88 kB / 0.9903 GB, free: 12.49 MB / 0.7481 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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001261/0.6235, allocations: 109.8 kB / 0.9904 GB, free: 12.37 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.211e-05/0.6236, allocations: 4 kB / 0.9904 GB, free: 12.37 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.885e-05/0.6237, allocations: 11.97 kB / 0.9904 GB, free: 12.36 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.6237, allocations: 7.984 kB / 0.9904 GB, free: 12.35 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.6237, allocations: 0 / 0.9904 GB, free: 12.35 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.6237, allocations: 0 / 0.9904 GB, free: 12.35 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002092/0.6258, allocations: 1.101 MB / 0.9915 GB, free: 11.13 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.6258, allocations: 4 kB / 0.9915 GB, free: 11.13 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007677/0.6266, allocations: 123.8 kB / 0.9916 GB, free: 11.01 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.6266, allocations: 0 / 0.9916 GB, free: 11.01 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.433e-05/0.6266, allocations: 19.94 kB / 0.9917 GB, free: 10.99 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.6267, allocations: 3.953 kB / 0.9917 GB, free: 10.98 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.6267, allocations: 0 / 0.9917 GB, free: 10.98 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002191/0.6289, allocations: 0.8659 MB / 0.9925 GB, free: 10.1 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001362/0.629, allocations: 124.9 kB / 0.9926 GB, free: 9.961 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.648e-05/0.6291, allocations: 0 / 0.9926 GB, free: 9.961 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006251/0.6297, allocations: 64 kB / 0.9927 GB, free: 9.898 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.788e-05/0.6298, allocations: 27.88 kB / 0.9927 GB, free: 9.871 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.732e-05/0.6299, allocations: 27.92 kB / 0.9927 GB, free: 9.844 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 3.821e-05/0.6299, allocations: 83.28 kB / 0.9928 GB, free: 9.762 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6299, allocations: 4 kB / 0.9928 GB, free: 9.758 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003876/0.6303, allocations: 48 kB / 0.9929 GB, free: 9.711 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_y_comp) * 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 (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002501/0.6328, allocations: 1.424 MB / 0.9943 GB, free: 8.262 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001381/0.6342, allocations: 474.5 kB / 0.9947 GB, free: 7.801 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.6342, allocations: 0 / 0.9947 GB, free: 7.801 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0006941/0.6349, allocations: 255.7 kB / 0.995 GB, free: 7.551 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000357/0.6353, allocations: 11.95 kB / 0.995 GB, free: 7.539 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006205/0.6415, allocations: 1.854 MB / 0.9968 GB, free: 5.641 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00028/0.6418, allocations: 0.6965 MB / 0.9975 GB, free: 4.918 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0007122/0.6425, allocations: 88.66 kB / 0.9975 GB, free: 4.832 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000279/0.6428, allocations: 67.3 kB / 0.9976 GB, free: 4.766 MB / 0.7481 GB Notification: Performance of SimCode: time 4.51e-07/0.6428, allocations: 0 / 0.9976 GB, free: 4.766 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01507/0.6579, allocations: 4.158 MB / 1.002 GB, free: 0.7773 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001831/0.6581, allocations: 217.5 kB / 1.002 GB, free: 0.5391 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.844/2.502, allocations: 0 / 1.002 GB, free: 0.5391 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check_fmu --startTime=-1.5 --stopTime=1.5 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat does not exist to compare? outputFormat=mat