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/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.1-maint.9.1.x/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009446/0.0009446, allocations: 101.5 kB / 15.06 MB, free: 1.094 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.001005/0.001005, allocations: 177.3 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.325/1.325, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.318/2.318, allocations: 390.3 MB / 0.6653 GB, free: 3.051 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003661/0.0003662, allocations: 8 kB / 0.8146 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7358/0.7361, allocations: 142.3 MB / 0.9536 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.0008758/0.7371, allocations: 499.4 kB / 0.9541 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001436/0.7385, allocations: 1.408 MB / 0.9555 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.813e-05/0.7386, allocations: 0 / 0.9555 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.595e-05/0.7386, allocations: 9.016 kB / 0.9555 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.583e-05/0.7386, allocations: 8 kB / 0.9555 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003945/0.739, allocations: 105.1 kB / 0.9556 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7e-05/0.7391, allocations: 35.23 kB / 0.9556 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.483e-05/0.7392, allocations: 2.844 kB / 0.9556 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.211e-05/0.7392, allocations: 23.36 kB / 0.9556 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.854e-05/0.7393, allocations: 36.95 kB / 0.9557 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.728e-05/0.7393, allocations: 4.562 kB / 0.9557 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003852/0.7397, allocations: 307 kB / 0.956 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.663e-05/0.7398, allocations: 14.14 kB / 0.956 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.372e-05/0.7398, allocations: 29.98 kB / 0.956 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002192/0.74, allocations: 155.5 kB / 0.9562 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.74, allocations: 3.938 kB / 0.9562 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.714e-06/0.74, allocations: 3.938 kB / 0.9562 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.178e-06/0.74, allocations: 1.25 kB / 0.9562 GB, free: 6.176 MB / 0.7169 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.0005143/0.7406, allocations: 392.8 kB / 0.9565 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.7406, allocations: 10.41 kB / 0.9565 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.012e-05/0.7406, allocations: 35.66 kB / 0.9566 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004446/0.7411, allocations: 97.05 kB / 0.9567 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.269e-05/0.7412, allocations: 168.8 kB / 0.9568 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.489e-05/0.7412, allocations: 7.094 kB / 0.9568 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.513e-05/0.7412, allocations: 4.875 kB / 0.9568 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003567/0.7416, allocations: 122.7 kB / 0.957 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.7416, allocations: 0 / 0.957 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.7416, allocations: 1.031 kB / 0.957 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.7416, allocations: 1.969 kB / 0.957 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004835/0.7421, allocations: 130.1 kB / 0.9571 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000479/0.7426, allocations: 335.9 kB / 0.9574 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006104/0.7432, allocations: 188.1 kB / 0.9576 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.773e-05/0.7433, allocations: 10.11 kB / 0.9576 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.546e-05/0.7433, allocations: 30.56 kB / 0.9576 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.253e-06/0.7433, allocations: 0 / 0.9576 GB, free: 4.887 MB / 0.7169 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.01735/0.7606, allocations: 3.187 MB / 0.9607 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.397e-05/0.7607, allocations: 53.31 kB / 0.9608 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.302e-05/0.7608, allocations: 98.34 kB / 0.9609 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.552e-05/0.7608, allocations: 30.7 kB / 0.9609 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.938e-05/0.7608, allocations: 86.17 kB / 0.961 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.817e-05/0.7609, allocations: 48.14 kB / 0.961 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.632e-05/0.7609, allocations: 0.9688 kB / 0.961 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.447e-05/0.761, allocations: 319.8 kB / 0.9613 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006388/0.7616, allocations: 214.5 kB / 0.9616 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006284/0.7623, allocations: 217.8 kB / 0.9618 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006562/0.7629, allocations: 221.2 kB / 0.962 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.763, allocations: 5.375 kB / 0.962 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001485/0.7644, allocations: 0.5168 MB / 0.9625 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.7645, allocations: 3.5 kB / 0.9625 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.7645, allocations: 0 / 0.9625 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.7645, allocations: 3.688 kB / 0.9625 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007759/0.7653, allocations: 118.1 kB / 0.9626 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.7653, allocations: 1.781 kB / 0.9626 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005853/0.7659, allocations: 63.59 kB / 0.9627 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.9e-05/0.766, allocations: 22.44 kB / 0.9627 GB, free: 1.84 MB / 0.7169 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.0001277/0.7661, allocations: 121 kB / 0.9628 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.323e-05/0.7662, allocations: 15.69 kB / 0.9628 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.956e-05/0.7662, allocations: 16.95 kB / 0.9628 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.7662, allocations: 1.062 kB / 0.9628 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.7662, allocations: 0.9688 kB / 0.9628 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.7662, allocations: 0 / 0.9628 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001979/0.7682, allocations: 1.096 MB / 0.9639 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.7682, allocations: 0 / 0.9639 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007899/0.769, allocations: 123.9 kB / 0.964 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.768e-06/0.769, allocations: 1.094 kB / 0.964 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.185e-05/0.7691, allocations: 24.75 kB / 0.964 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.7691, allocations: 1.031 kB / 0.964 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.7691, allocations: 4.25 kB / 0.9641 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002294/0.7714, allocations: 0.8623 MB / 0.9649 GB, free: 212 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001303/0.7716, allocations: 119.8 kB / 0.965 GB, free: 80 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.923e-05/0.7716, allocations: 9.125 kB / 0.965 GB, free: 72 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006678/0.7723, allocations: 61.31 kB / 0.9651 GB, free: 48 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.695e-05/0.7724, allocations: 30.36 kB / 0.9651 GB, free: 24 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.988e-05/0.7725, allocations: 31.05 kB / 0.9651 GB, free: 0 / 0.7169 GB Notification: Performance of sorting global known variables: time 6.305e-05/0.7725, allocations: 78.28 kB / 0.9652 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7725, allocations: 0 / 0.9652 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003847/0.7729, allocations: 51.66 kB / 0.9653 GB, free: 15.92 MB / 0.7325 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.002766/0.7757, allocations: 1.412 MB / 0.9666 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001558/0.7773, allocations: 475 kB / 0.9671 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.7773, allocations: 3.938 kB / 0.9671 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007289/0.778, allocations: 251 kB / 0.9673 GB, free: 14.56 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000245/0.7783, allocations: 8.062 kB / 0.9673 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006719/0.785, allocations: 1.863 MB / 0.9692 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002858/0.7853, allocations: 0.6968 MB / 0.9698 GB, free: 12.72 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0006737/0.786, allocations: 96.72 kB / 0.9699 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002653/0.7863, allocations: 63.08 kB / 0.97 GB, free: 12.61 MB / 0.7325 GB Notification: Performance of SimCode: time 9.62e-07/0.7863, allocations: 0 / 0.97 GB, free: 12.61 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0151/0.8014, allocations: 4.141 MB / 0.974 GB, free: 10.53 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001668/0.8016, allocations: 200.2 kB / 0.9742 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.666/2.468, allocations: 0 / 0.9742 GB, free: 10.29 MB / 0.7325 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