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.001053/0.001053, allocations: 86.48 kB / 15.06 MB, free: 1.09 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.001061/0.001061, allocations: 168.7 kB / 15.95 MB, free: 204 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.392/1.392, allocations: 223.2 MB / 240 MB, free: 5.398 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.37/2.37, allocations: 390.4 MB / 0.6655 GB, free: 2.941 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003625/0.0003627, allocations: 12 kB / 0.8149 GB, free: 14.1 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7282/0.7286, allocations: 142.3 MB / 0.9539 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.0008453/0.7295, allocations: 0.4939 MB / 0.9543 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001407/0.7309, allocations: 1.406 MB / 0.9557 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.454e-05/0.7309, allocations: 1.188 kB / 0.9557 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.506e-05/0.731, allocations: 3.938 kB / 0.9557 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.152e-05/0.731, allocations: 0 / 0.9557 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003826/0.7314, allocations: 105.7 kB / 0.9558 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.664e-05/0.7315, allocations: 46.67 kB / 0.9559 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.428e-05/0.7315, allocations: 6.109 kB / 0.9559 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.625e-05/0.7316, allocations: 27.95 kB / 0.9559 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.408e-05/0.7317, allocations: 29.36 kB / 0.9559 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.472e-05/0.7317, allocations: 8.156 kB / 0.9559 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003689/0.7321, allocations: 304.3 kB / 0.9562 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.762e-05/0.7321, allocations: 22.69 kB / 0.9562 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.042e-05/0.7321, allocations: 29.27 kB / 0.9563 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001965/0.7323, allocations: 152.6 kB / 0.9564 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.7323, allocations: 1.562 kB / 0.9564 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.994e-06/0.7323, allocations: 0 / 0.9564 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.636e-06/0.7323, allocations: 0 / 0.9564 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.0004798/0.7328, allocations: 390 kB / 0.9568 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.7329, allocations: 8.906 kB / 0.9568 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.171e-05/0.7329, allocations: 41.23 kB / 0.9568 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004031/0.7333, allocations: 84.66 kB / 0.9569 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.751e-05/0.7334, allocations: 172.4 kB / 0.9571 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.813e-05/0.7334, allocations: 10.91 kB / 0.9571 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.423e-05/0.7335, allocations: 5.344 kB / 0.9571 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003321/0.7338, allocations: 114.3 kB / 0.9572 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.7338, allocations: 5.188 kB / 0.9572 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.7338, allocations: 5.25 kB / 0.9572 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.7339, allocations: 1.156 kB / 0.9572 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000432/0.7343, allocations: 125.8 kB / 0.9573 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004689/0.7348, allocations: 339.4 kB / 0.9577 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000566/0.7353, allocations: 181.2 kB / 0.9578 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002101/0.7356, allocations: 70.86 kB / 0.9579 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.7356, allocations: 5.75 kB / 0.9579 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.513e-05/0.7356, allocations: 40.23 kB / 0.9579 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.7356, allocations: 3.938 kB / 0.958 GB, free: 4.855 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.01614/0.7518, allocations: 3.187 MB / 0.9611 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.144e-05/0.7518, allocations: 52.84 kB / 0.9611 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.664e-05/0.7519, allocations: 102.8 kB / 0.9612 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.856e-05/0.7519, allocations: 26.98 kB / 0.9612 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.837e-05/0.752, allocations: 89.36 kB / 0.9613 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.771e-05/0.752, allocations: 40.17 kB / 0.9614 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.843e-05/0.7521, allocations: 5.438 kB / 0.9614 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.864e-05/0.7521, allocations: 323.8 kB / 0.9617 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006081/0.7527, allocations: 217.9 kB / 0.9619 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005616/0.7533, allocations: 214 kB / 0.9621 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006225/0.754, allocations: 217.6 kB / 0.9623 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.754, allocations: 9.531 kB / 0.9623 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001373/0.7553, allocations: 0.5113 MB / 0.9628 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.7554, allocations: 9.219 kB / 0.9628 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.7554, allocations: 3.938 kB / 0.9628 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.7554, allocations: 0.875 kB / 0.9628 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007344/0.7561, allocations: 117 kB / 0.9629 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.7562, allocations: 0.875 kB / 0.9629 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000511/0.7567, allocations: 56.97 kB / 0.963 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.311e-05/0.7567, allocations: 31.03 kB / 0.963 GB, free: 1.805 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.0001219/0.7569, allocations: 121.3 kB / 0.9631 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.903e-05/0.7569, allocations: 7.406 kB / 0.9631 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.341e-05/0.757, allocations: 7.969 kB / 0.9631 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.757, allocations: 11.58 kB / 0.9632 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.757, allocations: 0 / 0.9632 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.757, allocations: 0 / 0.9632 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001891/0.7589, allocations: 1.098 MB / 0.9642 GB, free: 0.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.7589, allocations: 0 / 0.9642 GB, free: 0.75 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007197/0.7596, allocations: 124.5 kB / 0.9643 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.7597, allocations: 5.328 kB / 0.9643 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.635e-05/0.7597, allocations: 20.25 kB / 0.9644 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.7597, allocations: 1.031 kB / 0.9644 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.7597, allocations: 0 / 0.9644 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002117/0.7619, allocations: 0.8655 MB / 0.9652 GB, free: 180 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.762, allocations: 119.9 kB / 0.9653 GB, free: 48 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.084e-05/0.762, allocations: 1.031 kB / 0.9653 GB, free: 48 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000563/0.7626, allocations: 62.94 kB / 0.9654 GB, free: 24 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.7627, allocations: 34.09 kB / 0.9654 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.663e-05/0.7628, allocations: 30.08 kB / 0.9655 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.478e-05/0.7628, allocations: 82.31 kB / 0.9655 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7628, allocations: 1 kB / 0.9655 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003866/0.7632, allocations: 50.31 kB / 0.9656 GB, free: 15.89 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.002565/0.7658, allocations: 1.413 MB / 0.967 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001369/0.7672, allocations: 475.1 kB / 0.9674 GB, free: 14.65 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.7672, allocations: 0 / 0.9674 GB, free: 14.65 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007175/0.7679, allocations: 251.1 kB / 0.9677 GB, free: 14.53 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000335/0.7683, allocations: 8.312 kB / 0.9677 GB, free: 14.53 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006239/0.7745, allocations: 1.875 MB / 0.9695 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002572/0.7748, allocations: 0.6908 MB / 0.9702 GB, free: 12.69 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0006855/0.7755, allocations: 92.44 kB / 0.9703 GB, free: 12.63 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003011/0.7758, allocations: 71.75 kB / 0.9703 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of SimCode: time 7.31e-07/0.7758, allocations: 4.969 kB / 0.9703 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.015/0.7908, allocations: 4.151 MB / 0.9744 GB, free: 10.49 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001683/0.791, allocations: 205.6 kB / 0.9746 GB, free: 10.25 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.769/2.56, allocations: 0 / 0.9746 GB, free: 10.25 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