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/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.675/2.675, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.001189/0.001189, allocations: 179.5 kB / 0.4901 GB, free: 2.223 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.595/1.595, allocations: 223.1 MB / 0.7992 GB, free: 14.74 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.001136/0.001136, allocations: 106.8 kB / 0.9396 GB, free: 1.887 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004562/0.0004559, allocations: 14.41 kB / 1.09 GB, free: 216.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3181/0.3186, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1867/0.5053, allocations: 150.5 MB / 1.376 GB, free: 2.93 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/0.5056, allocations: 79.95 kB / 1.376 GB, free: 2.852 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.006996/0.5126, allocations: 2.313 MB / 1.379 GB, free: 0.5352 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.274e-06/0.5127, allocations: 4 kB / 1.379 GB, free: 0.5312 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.271e-05/0.5127, allocations: 4 kB / 1.379 GB, free: 0.5273 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003127/0.513, allocations: 343.2 kB / 1.379 GB, free: 148 kB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/0.5131, allocations: 8.031 kB / 1.379 GB, free: 140 kB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.464e-05/0.5131, allocations: 30.56 kB / 1.379 GB, free: 100 kB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.44e-05/0.5131, allocations: 3.953 kB / 1.379 GB, free: 96 kB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.5133, allocations: 163.1 kB / 1.379 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.718e-06/0.5133, allocations: 4 kB / 1.379 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.023e-05/0.5133, allocations: 0 / 1.379 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.138e-05/0.5134, allocations: 37.69 kB / 1.379 GB, free: 15.85 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.5134, allocations: 0 / 1.379 GB, free: 15.85 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.356e-06/0.5134, allocations: 0 / 1.379 GB, free: 15.85 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.5134, allocations: 3.938 kB / 1.379 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.756e-05/0.5135, allocations: 7.938 kB / 1.379 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001541/0.5136, allocations: 157.7 kB / 1.379 GB, free: 15.63 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 5.275e-05/0.5137, allocations: 18.58 kB / 1.379 GB, free: 15.61 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.04e-05/0.5137, allocations: 4 kB / 1.379 GB, free: 15.6 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.488e-05/0.5138, allocations: 34.56 kB / 1.379 GB, free: 15.56 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=2): time 2.405e-06/0.5138, allocations: 3.984 kB / 1.379 GB, free: 15.55 MB / 0.8855 GB Notification: Performance of matching and sorting (n=2): time 0.0001403/0.5139, allocations: 45.61 kB / 1.379 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.218e-05/0.514, allocations: 55.39 kB / 1.379 GB, free: 15.44 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.253e-05/0.514, allocations: 89 kB / 1.38 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.514, allocations: 29.7 kB / 1.38 GB, free: 15.31 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 2.874e-05/0.5141, allocations: 84.39 kB / 1.38 GB, free: 15.22 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.095e-05/0.5141, allocations: 0 / 1.38 GB, free: 15.22 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.644e-06/0.5141, allocations: 0 / 1.38 GB, free: 15.22 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.606e-05/0.5142, allocations: 318.8 kB / 1.38 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.169e-05/0.5142, allocations: 4 kB / 1.38 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.592e-06/0.5142, allocations: 0 / 1.38 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.891e-05/0.5143, allocations: 7.984 kB / 1.38 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.5143, allocations: 0 / 1.38 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.228e-05/0.5144, allocations: 45.67 kB / 1.38 GB, free: 14.84 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.5144, allocations: 7.938 kB / 1.38 GB, free: 14.83 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.5144, allocations: 0 / 1.38 GB, free: 14.83 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.5144, allocations: 4 kB / 1.38 GB, free: 14.83 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000156/0.5146, allocations: 7.984 kB / 1.38 GB, free: 14.82 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003376/0.5149, allocations: 0.5899 MB / 1.381 GB, free: 14.21 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.776e-05/0.5149, allocations: 3.938 kB / 1.381 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.515, allocations: 4.125 kB / 1.381 GB, free: 14.2 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 (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 7.719e-05/0.515, allocations: 106.6 kB / 1.381 GB, free: 14.09 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.735e-06/0.5151, allocations: 4.031 kB / 1.381 GB, free: 14.08 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001025/0.5152, allocations: 48.75 kB / 1.381 GB, free: 14.03 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.5152, allocations: 0 / 1.381 GB, free: 14.03 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.5152, allocations: 0 / 1.381 GB, free: 14.03 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.5152, allocations: 3.953 kB / 1.381 GB, free: 14.03 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.834e-05/0.5153, allocations: 153.7 kB / 1.381 GB, free: 13.83 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.5153, allocations: 4.031 kB / 1.381 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.824e-05/0.5154, allocations: 11.98 kB / 1.381 GB, free: 13.81 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.5154, allocations: 0 / 1.381 GB, free: 13.81 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.111e-06/0.5154, allocations: 3.938 kB / 1.381 GB, free: 13.81 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002852/0.5157, allocations: 0.5859 MB / 1.382 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.5157, allocations: 0 / 1.382 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.685e-05/0.5158, allocations: 73.19 kB / 1.382 GB, free: 13.11 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.068e-05/0.5158, allocations: 77.11 kB / 1.382 GB, free: 13.02 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.42e-05/0.5159, allocations: 4 kB / 1.382 GB, free: 13.01 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.675e-05/0.5159, allocations: 3.953 kB / 1.382 GB, free: 13.01 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.643e-05/0.5159, allocations: 4 kB / 1.382 GB, free: 13 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-06/0.5159, allocations: 0 / 1.382 GB, free: 13 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 3.621e-05/0.5159, allocations: 79.28 kB / 1.382 GB, free: 12.93 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1e-07/0.516, allocations: 128 / 1.382 GB, free: 12.93 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0001936/0.5162, allocations: 15.94 kB / 1.382 GB, free: 12.91 MB / 0.8855 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.0004267/0.5166, allocations: 0.6163 MB / 1.382 GB, free: 12.27 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001538/0.5168, allocations: 19.98 kB / 1.382 GB, free: 12.25 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.5168, allocations: 4.094 kB / 1.382 GB, free: 12.24 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 7.156e-05/0.5168, allocations: 8 kB / 1.382 GB, free: 12.23 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001084/0.517, allocations: 7.938 kB / 1.382 GB, free: 12.23 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004494/0.5174, allocations: 151.9 kB / 1.383 GB, free: 12.04 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002203/0.5177, allocations: 0.677 MB / 1.383 GB, free: 11.34 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 1.877e-05/0.5177, allocations: 4.062 kB / 1.383 GB, free: 11.33 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.538e-05/0.5177, allocations: 7.438 kB / 1.383 GB, free: 11.32 MB / 0.8855 GB Notification: Performance of SimCode: time 4.428e-06/0.5177, allocations: 0 / 1.383 GB, free: 11.32 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01311/0.5308, allocations: 1.147 MB / 1.384 GB, free: 10.42 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002198/0.5311, allocations: 258.7 kB / 1.385 GB, free: 10.08 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.581/2.112, allocations: 0 / 1.385 GB, free: 10.08 MB / 0.8855 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) 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