Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",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.0008024/0.0008023, allocations: 91.28 kB / 15.06 MB, free: 1.078 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.0008181/0.0008181, allocations: 176.7 kB / 15.95 MB, free: 188 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.42/1.42, allocations: 223.3 MB / 240 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.458/2.458, allocations: 409.4 MB / 0.684 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003469/0.0003471, allocations: 12 kB / 0.8378 GB, free: 6.543 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7181/0.7185, allocations: 146.8 MB / 0.9811 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001375/0.7199, allocations: 0.973 MB / 0.9821 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0009554/0.7209, allocations: 0.5321 MB / 0.9826 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.108e-05/0.7209, allocations: 0 / 0.9826 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.461e-05/0.721, allocations: 0 / 0.9826 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.345e-05/0.721, allocations: 7.938 kB / 0.9826 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000445/0.7215, allocations: 119.6 kB / 0.9827 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 4.367e-05/0.7215, allocations: 7.938 kB / 0.9827 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.531e-05/0.7216, allocations: 0 / 0.9827 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 1.974e-05/0.7216, allocations: 8 kB / 0.9827 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.169e-05/0.7217, allocations: 15.97 kB / 0.9828 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.067e-05/0.7217, allocations: 0 / 0.9828 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004969/0.7222, allocations: 331.3 kB / 0.9831 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 8.796e-06/0.7222, allocations: 0 / 0.9831 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.366e-05/0.7222, allocations: 29.64 kB / 0.9831 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001746/0.7224, allocations: 94.08 kB / 0.9832 GB, free: 4.184 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.7224, allocations: 4 kB / 0.9832 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.853e-06/0.7224, allocations: 0 / 0.9832 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.7224, allocations: 0 / 0.9832 GB, free: 4.18 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0004119/0.7229, allocations: 343.3 kB / 0.9835 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.7229, allocations: 19.97 kB / 0.9835 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.786e-05/0.723, allocations: 38.5 kB / 0.9836 GB, free: 3.73 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.287e-05/0.723, allocations: 0 / 0.9836 GB, free: 3.73 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001331/0.7231, allocations: 163.1 kB / 0.9837 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.7231, allocations: 0 / 0.9837 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.36e-05/0.7232, allocations: 4 kB / 0.9837 GB, free: 3.527 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000105/0.7233, allocations: 29.66 kB / 0.9838 GB, free: 3.492 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.7233, allocations: 4 kB / 0.9838 GB, free: 3.488 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.314e-06/0.7233, allocations: 0 / 0.9838 GB, free: 3.488 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.7233, allocations: 4 kB / 0.9838 GB, free: 3.484 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.466e-05/0.7234, allocations: 0 / 0.9838 GB, free: 3.484 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001754/0.7235, allocations: 153.7 kB / 0.9839 GB, free: 3.285 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 6.014e-05/0.7236, allocations: 34.55 kB / 0.984 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.664e-05/0.7236, allocations: 4.859 kB / 0.984 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.308e-05/0.7237, allocations: 0 / 0.984 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.7237, allocations: 38.61 kB / 0.984 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 8.31e-07/0.7237, allocations: 4 kB / 0.984 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0001431/0.7239, allocations: 45.59 kB / 0.984 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.7239, allocations: 51.41 kB / 0.9841 GB, free: 3.07 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.033e-05/0.724, allocations: 93.86 kB / 0.9842 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.724, allocations: 25.7 kB / 0.9842 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.764e-05/0.7241, allocations: 84.12 kB / 0.9843 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.967e-05/0.7241, allocations: 11.84 kB / 0.9843 GB, free: 2.84 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.156e-06/0.7241, allocations: 256 / 0.9843 GB, free: 2.84 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001667/0.7243, allocations: 318.8 kB / 0.9846 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.105e-05/0.7243, allocations: 0 / 0.9846 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.054e-05/0.7243, allocations: 4 kB / 0.9846 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.994e-05/0.7243, allocations: 4 kB / 0.9846 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.7244, allocations: 0 / 0.9846 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.956e-05/0.7244, allocations: 37.69 kB / 0.9846 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.7244, allocations: 8 kB / 0.9847 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.7244, allocations: 0 / 0.9847 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.7245, allocations: 8.047 kB / 0.9847 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001747/0.7246, allocations: 11.94 kB / 0.9847 GB, free: 2.441 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004662/0.7251, allocations: 0.5821 MB / 0.9852 GB, free: 1.836 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.329e-05/0.7252, allocations: 7.906 kB / 0.9852 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.241e-06/0.7252, allocations: 7.875 kB / 0.9853 GB, free: 1.82 MB / 0.7325 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 0.0001013/0.7253, allocations: 118 kB / 0.9854 GB, free: 1.695 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.775e-06/0.7253, allocations: 3.953 kB / 0.9854 GB, free: 1.691 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000113/0.7254, allocations: 48.75 kB / 0.9854 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.7254, allocations: 0 / 0.9854 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.7254, allocations: 0 / 0.9854 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.7254, allocations: 0 / 0.9854 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001187/0.7256, allocations: 149.7 kB / 0.9856 GB, free: 1.445 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.7256, allocations: 0 / 0.9856 GB, free: 1.445 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.661e-05/0.7256, allocations: 8 kB / 0.9856 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.7256, allocations: 3.953 kB / 0.9856 GB, free: 1.434 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.7257, allocations: 4.031 kB / 0.9856 GB, free: 1.43 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004084/0.7261, allocations: 0.59 MB / 0.9862 GB, free: 0.8164 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.7261, allocations: 0 / 0.9862 GB, free: 0.8164 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.494e-05/0.7262, allocations: 65.03 kB / 0.9862 GB, free: 0.7344 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.027e-05/0.7262, allocations: 81.23 kB / 0.9863 GB, free: 0.6367 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.336e-05/0.7262, allocations: 3.984 kB / 0.9863 GB, free: 0.6328 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.732e-05/0.7263, allocations: 4 kB / 0.9863 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.534e-05/0.7263, allocations: 0 / 0.9863 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-06/0.7263, allocations: 3.984 kB / 0.9863 GB, free: 0.625 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.643e-05/0.7263, allocations: 75.28 kB / 0.9864 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7263, allocations: 0 / 0.9864 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0001969/0.7265, allocations: 8 kB / 0.9864 GB, free: 0.543 MB / 0.7325 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.0004771/0.727, allocations: 0.6324 MB / 0.987 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0001484/0.7272, allocations: 15.98 kB / 0.987 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.7272, allocations: 0 / 0.987 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 7.654e-05/0.7273, allocations: 12 kB / 0.987 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001574/0.7275, allocations: 4.156 kB / 0.987 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004534/0.7279, allocations: 138.5 kB / 0.9872 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003238/0.7283, allocations: 0.6809 MB / 0.9878 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 1.655e-05/0.7283, allocations: 0 / 0.9878 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.019e-05/0.7283, allocations: 8.844 kB / 0.9878 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of SimCode: time 2.41e-07/0.7283, allocations: 0 / 0.9878 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01294/0.7413, allocations: 1.172 MB / 0.989 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002022/0.7415, allocations: 254.3 kB / 0.9892 GB, free: 13.71 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.815/2.556, allocations: 0 / 0.9892 GB, free: 13.71 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat does not exist to compare? outputFormat=mat