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/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.251/2.251, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001152/0.001151, allocations: 178.1 kB / 498.1 MB, free: 5.742 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.483/1.483, allocations: 223.2 MB / 0.7948 GB, free: 18 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.0008869/0.0008867, allocations: 110.4 kB / 0.9346 GB, free: 6.285 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003823/0.0003824, allocations: 14 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2791, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1873/0.4665, allocations: 149.8 MB / 1.369 GB, free: 12.25 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002622/0.4668, allocations: 87.94 kB / 1.369 GB, free: 12.17 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01055/0.4774, allocations: 3.487 MB / 1.373 GB, free: 8.676 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.424e-06/0.4774, allocations: 4 kB / 1.373 GB, free: 8.672 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.354e-06/0.4774, allocations: 0 / 1.373 GB, free: 8.672 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.0003613/0.4778, allocations: 339.4 kB / 1.373 GB, free: 8.293 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.4779, allocations: 8.031 kB / 1.373 GB, free: 8.285 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.447e-05/0.4779, allocations: 30.56 kB / 1.373 GB, free: 8.246 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.552e-05/0.478, allocations: 15.86 kB / 1.373 GB, free: 8.23 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001448/0.4781, allocations: 167 kB / 1.373 GB, free: 8.027 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.033e-05/0.4781, allocations: 4 kB / 1.373 GB, free: 8.023 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.086e-05/0.4781, allocations: 0 / 1.373 GB, free: 8.023 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.867e-05/0.4782, allocations: 29.7 kB / 1.373 GB, free: 7.988 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.4783, allocations: 3.938 kB / 1.373 GB, free: 7.984 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.374e-06/0.4783, allocations: 0 / 1.373 GB, free: 7.984 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.4783, allocations: 0 / 1.373 GB, free: 7.984 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.146e-05/0.4783, allocations: 8 kB / 1.373 GB, free: 7.977 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001738/0.4785, allocations: 157.6 kB / 1.373 GB, free: 7.773 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 6.053e-05/0.4786, allocations: 22.61 kB / 1.373 GB, free: 7.742 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.4786, allocations: 3.938 kB / 1.373 GB, free: 7.738 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.4786, allocations: 34.62 kB / 1.374 GB, free: 7.695 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=2): time 1.213e-06/0.4786, allocations: 0 / 1.374 GB, free: 7.695 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2): time 0.0001461/0.4788, allocations: 45.62 kB / 1.374 GB, free: 7.645 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.4788, allocations: 55.53 kB / 1.374 GB, free: 7.578 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.364e-05/0.4789, allocations: 89 kB / 1.374 GB, free: 7.484 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.521e-05/0.4789, allocations: 25.7 kB / 1.374 GB, free: 7.453 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 3.55e-05/0.479, allocations: 80.14 kB / 1.374 GB, free: 7.371 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.601e-05/0.479, allocations: 15.78 kB / 1.374 GB, free: 7.355 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.524e-06/0.479, allocations: 0 / 1.374 GB, free: 7.355 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001569/0.4792, allocations: 322.8 kB / 1.374 GB, free: 7.031 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.141e-05/0.4792, allocations: 0 / 1.374 GB, free: 7.031 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.742e-06/0.4792, allocations: 4.125 kB / 1.374 GB, free: 7.027 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.686e-05/0.4792, allocations: 4 kB / 1.374 GB, free: 7.023 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.4792, allocations: 0 / 1.374 GB, free: 7.023 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.747e-05/0.4793, allocations: 41.64 kB / 1.374 GB, free: 6.977 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.4793, allocations: 13.7 kB / 1.374 GB, free: 6.965 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.4794, allocations: 0 / 1.374 GB, free: 6.965 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.4794, allocations: 0 / 1.374 GB, free: 6.965 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001666/0.4795, allocations: 8 kB / 1.374 GB, free: 6.957 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004195/0.48, allocations: 0.5861 MB / 1.375 GB, free: 6.348 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.899e-05/0.48, allocations: 0 / 1.375 GB, free: 6.348 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.297e-06/0.48, allocations: 3.984 kB / 1.375 GB, free: 6.344 MB / 0.8698 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 9.629e-05/0.4801, allocations: 113.9 kB / 1.375 GB, free: 6.223 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.025e-06/0.4801, allocations: 3.938 kB / 1.375 GB, free: 6.219 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001138/0.4803, allocations: 48.91 kB / 1.375 GB, free: 6.164 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.4803, allocations: 0 / 1.375 GB, free: 6.164 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.4803, allocations: 0 / 1.375 GB, free: 6.164 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.4803, allocations: 3.953 kB / 1.375 GB, free: 6.16 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001155/0.4804, allocations: 149.6 kB / 1.375 GB, free: 5.965 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.4804, allocations: 0 / 1.375 GB, free: 5.965 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.768e-05/0.4805, allocations: 11.98 kB / 1.375 GB, free: 5.953 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.4805, allocations: 0 / 1.375 GB, free: 5.953 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.4805, allocations: 0 / 1.375 GB, free: 5.953 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003304/0.4809, allocations: 0.5938 MB / 1.376 GB, free: 5.336 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4809, allocations: 0 / 1.376 GB, free: 5.336 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.125e-05/0.4809, allocations: 65.12 kB / 1.376 GB, free: 5.254 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.343e-05/0.481, allocations: 77.11 kB / 1.376 GB, free: 5.16 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.086e-05/0.481, allocations: 0 / 1.376 GB, free: 5.16 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.727e-05/0.481, allocations: 3.953 kB / 1.376 GB, free: 5.156 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.884e-05/0.4811, allocations: 12.11 kB / 1.376 GB, free: 5.145 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.4811, allocations: 0 / 1.376 GB, free: 5.145 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 3.142e-05/0.4811, allocations: 79.22 kB / 1.376 GB, free: 5.066 MB / 0.8698 GB Notification: Performance of sort global known variables: time 2.475e-06/0.4811, allocations: 0 / 1.376 GB, free: 5.066 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.00019/0.4813, allocations: 19.94 kB / 1.376 GB, free: 5.047 MB / 0.8698 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.0004231/0.4817, allocations: 0.6263 MB / 1.377 GB, free: 4.395 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001415/0.4819, allocations: 12 kB / 1.377 GB, free: 4.383 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4819, allocations: 0 / 1.377 GB, free: 4.383 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 7.745e-05/0.482, allocations: 19.92 kB / 1.377 GB, free: 4.363 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.466e-05/0.4821, allocations: 3.953 kB / 1.377 GB, free: 4.359 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004362/0.4825, allocations: 145 kB / 1.377 GB, free: 4.172 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002345/0.4828, allocations: 0.6848 MB / 1.377 GB, free: 3.461 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 1.761e-05/0.4828, allocations: 0 / 1.377 GB, free: 3.461 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.383e-05/0.4828, allocations: 11.38 kB / 1.377 GB, free: 3.449 MB / 0.8698 GB Notification: Performance of SimCode: time 3.21e-07/0.4828, allocations: 0 / 1.377 GB, free: 3.449 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01281/0.4957, allocations: 1.124 MB / 1.378 GB, free: 2.543 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001904/0.4959, allocations: 239.4 kB / 1.379 GB, free: 2.309 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.529/2.025, allocations: 0 / 1.379 GB, free: 2.309 MB / 0.8698 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