Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.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.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",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.000973/0.000973, allocations: 92.16 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.001214/0.001214, 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.446/1.446, allocations: 223.2 MB / 240 MB, free: 5.348 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.304/2.304, allocations: 390.4 MB / 0.6655 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000365/0.0003652, allocations: 8 kB / 0.8149 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7608/0.7612, allocations: 142.3 MB / 0.9539 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.001219/0.7624, allocations: 0.9629 MB / 0.9548 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007417/0.7632, allocations: 0.54 MB / 0.9553 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.705e-05/0.7632, allocations: 1.406 kB / 0.9553 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.129e-05/0.7633, allocations: 0 / 0.9553 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.757e-05/0.7633, allocations: 0 / 0.9553 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003843/0.7637, allocations: 114.3 kB / 0.9554 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.85e-05/0.7637, allocations: 11.81 kB / 0.9554 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.917e-05/0.7638, allocations: 1.25 kB / 0.9554 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.643e-05/0.7638, allocations: 6.375 kB / 0.9555 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.048e-05/0.7638, allocations: 6.031 kB / 0.9555 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.588e-06/0.7639, allocations: 1.438 kB / 0.9555 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004196/0.7643, allocations: 334.8 kB / 0.9558 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.216e-06/0.7643, allocations: 7.922 kB / 0.9558 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.925e-05/0.7643, allocations: 27.17 kB / 0.9558 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001681/0.7645, allocations: 99.67 kB / 0.9559 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.7645, allocations: 0 / 0.9559 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.603e-06/0.7645, allocations: 0 / 0.9559 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.7645, allocations: 0 / 0.9559 GB, free: 6.547 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003065/0.7648, allocations: 350.1 kB / 0.9562 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.7649, allocations: 9.25 kB / 0.9562 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.097e-05/0.7649, allocations: 35.41 kB / 0.9563 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.435e-05/0.765, allocations: 8.766 kB / 0.9563 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.715e-05/0.765, allocations: 160 kB / 0.9564 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.7651, allocations: 4.859 kB / 0.9564 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-06/0.7651, allocations: 1.375 kB / 0.9564 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.127e-05/0.7652, allocations: 32.05 kB / 0.9565 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.951e-06/0.7652, allocations: 0 / 0.9565 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.854e-06/0.7652, allocations: 9.469 kB / 0.9565 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.7652, allocations: 0 / 0.9565 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.523e-05/0.7652, allocations: 10.64 kB / 0.9565 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001109/0.7653, allocations: 148 kB / 0.9566 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.498e-05/0.7654, allocations: 24.98 kB / 0.9567 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.743e-05/0.7654, allocations: 11.2 kB / 0.9567 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.965e-05/0.7654, allocations: 3.938 kB / 0.9567 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.553e-05/0.7655, allocations: 35.81 kB / 0.9567 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.7655, allocations: 0 / 0.9567 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001318/0.7656, allocations: 42.69 kB / 0.9568 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.581e-05/0.7656, allocations: 52.62 kB / 0.9568 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.67e-05/0.7657, allocations: 96.19 kB / 0.9569 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.572e-06/0.7657, allocations: 25.7 kB / 0.9569 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.323e-05/0.7657, allocations: 85.33 kB / 0.957 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.32e-05/0.7658, allocations: 13.39 kB / 0.957 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.845e-06/0.7658, allocations: 4 kB / 0.957 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.822e-05/0.7658, allocations: 311.9 kB / 0.9573 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.14e-05/0.7658, allocations: 1.281 kB / 0.9573 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.566e-06/0.7658, allocations: 6.406 kB / 0.9573 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.585e-05/0.7659, allocations: 6.375 kB / 0.9573 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.7659, allocations: 0 / 0.9573 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.31e-05/0.7659, allocations: 34.42 kB / 0.9574 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.7659, allocations: 9.203 kB / 0.9574 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.766, allocations: 4.094 kB / 0.9574 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.766, allocations: 1.031 kB / 0.9574 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001455/0.7661, allocations: 7.062 kB / 0.9574 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002274/0.7664, allocations: 0.5908 MB / 0.958 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.945e-05/0.7664, allocations: 8.953 kB / 0.958 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.741e-06/0.7664, allocations: 1.062 kB / 0.958 GB, free: 4.285 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 6.612e-05/0.7665, allocations: 114.8 kB / 0.9581 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.035e-06/0.7665, allocations: 8.766 kB / 0.9581 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.879e-05/0.7666, allocations: 45.03 kB / 0.9581 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.7666, allocations: 4.953 kB / 0.9581 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.7666, allocations: 0 / 0.9581 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.7666, allocations: 0.9375 kB / 0.9581 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.43e-05/0.7667, allocations: 144.3 kB / 0.9583 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.7667, allocations: 0 / 0.9583 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.832e-05/0.7667, allocations: 12.2 kB / 0.9583 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.7668, allocations: 7.969 kB / 0.9583 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-06/0.7668, allocations: 1.375 kB / 0.9583 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001657/0.7669, allocations: 0.5862 MB / 0.9589 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.7669, allocations: 1.219 kB / 0.9589 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.283e-05/0.767, allocations: 66.16 kB / 0.9589 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.551e-05/0.767, allocations: 82.25 kB / 0.959 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.058e-05/0.767, allocations: 0 / 0.959 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.394e-05/0.7671, allocations: 5.219 kB / 0.959 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.39e-05/0.7671, allocations: 3.984 kB / 0.959 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-06/0.7671, allocations: 0.9688 kB / 0.959 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.553e-05/0.7671, allocations: 77.41 kB / 0.9591 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7671, allocations: 0 / 0.9591 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001902/0.7673, allocations: 8.031 kB / 0.9591 GB, free: 3.059 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002651/0.7676, allocations: 0.6178 MB / 0.9597 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001434/0.7677, allocations: 20.98 kB / 0.9597 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.7677, allocations: 0 / 0.9597 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.723e-05/0.7678, allocations: 18.11 kB / 0.9597 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001394/0.768, allocations: 6.156 kB / 0.9597 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003475/0.7683, allocations: 137.8 kB / 0.9599 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.803e-05/0.7684, allocations: 0.6725 MB / 0.9605 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.528e-05/0.7684, allocations: 0 / 0.9605 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.85e-05/0.7685, allocations: 16.36 kB / 0.9605 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.7685, allocations: 1.031 kB / 0.9605 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01135/0.7798, allocations: 1.158 MB / 0.9617 GB, free: 1.066 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001511/0.78, allocations: 246.5 kB / 0.9619 GB, free: 0.7461 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.636/2.416, allocations: 0 / 0.9619 GB, free: 0.7461 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.mat does not exist to compare? outputFormat=mat