Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="Buildings_9_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_9_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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.419/2.419, allocations: 390.3 MB / 405.3 MB, free: 13.49 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001414/0.001414, allocations: 175.4 kB / 498.1 MB, free: 5.75 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.739/1.739, allocations: 223.2 MB / 0.7948 GB, free: 17.96 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008585/0.0008585, allocations: 94.39 kB / 0.9346 GB, free: 6.309 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003884/0.0003884, allocations: 14.31 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3101/0.3105, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2224/0.533, allocations: 150.8 MB / 1.37 GB, free: 11.32 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/0.5333, allocations: 83.89 kB / 1.37 GB, free: 11.24 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01702/0.5503, allocations: 5.536 MB / 1.376 GB, free: 5.691 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.704e-06/0.5504, allocations: 0 / 1.376 GB, free: 5.691 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.176e-06/0.5504, allocations: 4 kB / 1.376 GB, free: 5.688 MB / 0.8698 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.0005709/0.551, allocations: 403 kB / 1.376 GB, free: 5.246 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.551, allocations: 8.031 kB / 1.376 GB, free: 5.238 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.474e-05/0.5511, allocations: 42.55 kB / 1.376 GB, free: 5.188 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003792/0.5515, allocations: 67.84 kB / 1.376 GB, free: 5.121 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001273/0.5516, allocations: 175 kB / 1.376 GB, free: 4.91 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.04e-05/0.5516, allocations: 8 kB / 1.376 GB, free: 4.902 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.688e-05/0.5517, allocations: 4 kB / 1.376 GB, free: 4.898 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003838/0.5521, allocations: 121.5 kB / 1.376 GB, free: 4.773 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.5521, allocations: 0 / 1.376 GB, free: 4.773 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.655e-05/0.5521, allocations: 4 kB / 1.376 GB, free: 4.77 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.5521, allocations: 0 / 1.376 GB, free: 4.77 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004922/0.5526, allocations: 123.9 kB / 1.377 GB, free: 4.648 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006648/0.5533, allocations: 340.7 kB / 1.377 GB, free: 4.266 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006676/0.554, allocations: 190.4 kB / 1.377 GB, free: 4.07 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.554, allocations: 3.984 kB / 1.377 GB, free: 4.066 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.554, allocations: 34.52 kB / 1.377 GB, free: 4.023 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.5541, allocations: 0 / 1.377 GB, free: 4.023 MB / 0.8698 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.02066/0.5747, allocations: 3.192 MB / 1.38 GB, free: 0.7383 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.552e-05/0.5748, allocations: 51.41 kB / 1.38 GB, free: 0.6758 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.636e-05/0.5749, allocations: 92.98 kB / 1.38 GB, free: 0.5781 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 6.263e-05/0.575, allocations: 33.64 kB / 1.38 GB, free: 0.5391 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.789e-05/0.5751, allocations: 88.08 kB / 1.381 GB, free: 460 kB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 7.655e-05/0.5752, allocations: 43.53 kB / 1.381 GB, free: 416 kB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.662e-05/0.5752, allocations: 7.938 kB / 1.381 GB, free: 408 kB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.5753, allocations: 322.8 kB / 1.381 GB, free: 76 kB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006541/0.576, allocations: 211.8 kB / 1.381 GB, free: 15.87 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006242/0.5766, allocations: 215.8 kB / 1.381 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006925/0.5773, allocations: 215.8 kB / 1.381 GB, free: 15.45 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.5773, allocations: 0 / 1.381 GB, free: 15.45 MB / 0.8855 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001524/0.5789, allocations: 0.5245 MB / 1.382 GB, free: 14.92 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.5789, allocations: 8 kB / 1.382 GB, free: 14.91 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.5789, allocations: 0 / 1.382 GB, free: 14.91 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.121e-05/0.5789, allocations: 0 / 1.382 GB, free: 14.91 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009146/0.5799, allocations: 123.7 kB / 1.382 GB, free: 14.79 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.5799, allocations: 3.984 kB / 1.382 GB, free: 14.79 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006843/0.5806, allocations: 59.94 kB / 1.382 GB, free: 14.73 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.949e-05/0.5807, allocations: 23.94 kB / 1.382 GB, free: 14.7 MB / 0.8855 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.0001795/0.5808, allocations: 113.8 kB / 1.382 GB, free: 14.58 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.309e-05/0.5809, allocations: 11.86 kB / 1.382 GB, free: 14.57 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.36e-05/0.581, allocations: 19.95 kB / 1.382 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.581, allocations: 0 / 1.382 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.581, allocations: 0 / 1.382 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.581, allocations: 4 kB / 1.382 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00226/0.5833, allocations: 1.102 MB / 1.383 GB, free: 13.33 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.5833, allocations: 0 / 1.383 GB, free: 13.33 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009136/0.5842, allocations: 119.8 kB / 1.384 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.5842, allocations: 0 / 1.384 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.738e-05/0.5843, allocations: 27.94 kB / 1.384 GB, free: 13.19 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.5843, allocations: 0 / 1.384 GB, free: 13.19 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.5843, allocations: 0 / 1.384 GB, free: 13.19 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002348/0.5867, allocations: 0.8697 MB / 1.384 GB, free: 12.3 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001672/0.5869, allocations: 117 kB / 1.385 GB, free: 12.17 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.284e-05/0.5869, allocations: 4 kB / 1.385 GB, free: 12.16 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007556/0.5877, allocations: 56 kB / 1.385 GB, free: 12.11 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.868e-05/0.5878, allocations: 31.92 kB / 1.385 GB, free: 12.08 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.065e-05/0.5879, allocations: 31.92 kB / 1.385 GB, free: 12.05 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.382e-05/0.5879, allocations: 75.28 kB / 1.385 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.9e-07/0.5879, allocations: 0 / 1.385 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004126/0.5883, allocations: 56 kB / 1.385 GB, free: 11.92 MB / 0.8855 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.002668/0.591, allocations: 1.434 MB / 1.386 GB, free: 10.46 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001395/0.5924, allocations: 471.6 kB / 1.387 GB, free: 9.996 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.5924, allocations: 0 / 1.387 GB, free: 9.996 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0007252/0.5932, allocations: 251.7 kB / 1.387 GB, free: 9.75 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002684/0.5934, allocations: 7.938 kB / 1.387 GB, free: 9.742 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007197/0.6007, allocations: 1.861 MB / 1.389 GB, free: 7.828 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000341/0.601, allocations: 0.6965 MB / 1.389 GB, free: 7.105 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0007031/0.6017, allocations: 96.75 kB / 1.389 GB, free: 7.012 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002912/0.602, allocations: 67.28 kB / 1.39 GB, free: 6.945 MB / 0.8855 GB Notification: Performance of SimCode: time 6.71e-07/0.602, allocations: 0 / 1.39 GB, free: 6.945 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01681/0.6189, allocations: 4.136 MB / 1.394 GB, free: 2.973 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002053/0.6191, allocations: 204.1 kB / 1.394 GB, free: 2.73 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.707/2.326, allocations: 0 / 1.394 GB, free: 2.73 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check_fmu --startTime=-1.5 --stopTime=1.5 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat does not exist to compare? outputFormat=mat