Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",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.344/2.344, allocations: 390.3 MB / 405.3 MB, free: 13.43 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.001181/0.001181, allocations: 185.1 kB / 498.1 MB, free: 5.652 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.524/1.524, allocations: 223.1 MB / 0.7948 GB, free: 17.92 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.0009218/0.0009219, allocations: 97.92 kB / 0.9346 GB, free: 6.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003961/0.0003962, allocations: 10.44 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2888/0.2892, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1745/0.4637, allocations: 150.9 MB / 1.37 GB, free: 11.11 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000209/0.464, allocations: 83.89 kB / 1.37 GB, free: 11.03 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01264/0.4766, allocations: 4.323 MB / 1.375 GB, free: 6.699 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.034e-06/0.4767, allocations: 0 / 1.375 GB, free: 6.699 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.962e-06/0.4767, allocations: 0 / 1.375 GB, free: 6.699 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004414/0.4771, allocations: 387.1 kB / 1.375 GB, free: 6.273 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.4772, allocations: 8.031 kB / 1.375 GB, free: 6.266 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.262e-05/0.4772, allocations: 38.5 kB / 1.375 GB, free: 6.219 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.878e-05/0.4773, allocations: 11.86 kB / 1.375 GB, free: 6.207 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.4774, allocations: 171 kB / 1.375 GB, free: 6 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.4774, allocations: 8 kB / 1.375 GB, free: 5.992 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.789e-05/0.4774, allocations: 4 kB / 1.375 GB, free: 5.988 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002254/0.4777, allocations: 85.64 kB / 1.375 GB, free: 5.898 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.4777, allocations: 0 / 1.375 GB, free: 5.898 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.4777, allocations: 4 kB / 1.375 GB, free: 5.895 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.167e-06/0.4777, allocations: 0 / 1.375 GB, free: 5.895 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002122/0.4779, allocations: 63.64 kB / 1.375 GB, free: 5.836 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005331/0.4785, allocations: 332.7 kB / 1.376 GB, free: 5.461 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002662/0.4788, allocations: 94.47 kB / 1.376 GB, free: 5.359 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.93e-05/0.4788, allocations: 0 / 1.376 GB, free: 5.359 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.153e-05/0.4788, allocations: 34.52 kB / 1.376 GB, free: 5.316 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 9.82e-07/0.4788, allocations: 0 / 1.376 GB, free: 5.316 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11): time 0.001565/0.4804, allocations: 0.6735 MB / 1.376 GB, free: 4.551 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.154e-05/0.4804, allocations: 51.41 kB / 1.376 GB, free: 4.488 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.146e-05/0.4805, allocations: 101 kB / 1.377 GB, free: 4.383 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.4805, allocations: 25.7 kB / 1.377 GB, free: 4.352 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.9e-05/0.4806, allocations: 99.98 kB / 1.377 GB, free: 4.25 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.16e-05/0.4806, allocations: 35.45 kB / 1.377 GB, free: 4.215 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.672e-06/0.4807, allocations: 4 kB / 1.377 GB, free: 4.211 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.4808, allocations: 314.8 kB / 1.377 GB, free: 3.895 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.4809, allocations: 35.97 kB / 1.377 GB, free: 3.859 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.481, allocations: 35.98 kB / 1.377 GB, free: 3.824 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000115/0.4811, allocations: 39.92 kB / 1.377 GB, free: 3.785 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.4812, allocations: 0 / 1.377 GB, free: 3.785 MB / 0.8698 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002855/0.4814, allocations: 129.5 kB / 1.377 GB, free: 3.652 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.4815, allocations: 7.938 kB / 1.377 GB, free: 3.645 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.4815, allocations: 8 kB / 1.377 GB, free: 3.637 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.4815, allocations: 0 / 1.377 GB, free: 3.637 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.4817, allocations: 27.97 kB / 1.377 GB, free: 3.609 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.4817, allocations: 4 kB / 1.377 GB, free: 3.605 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.871e-05/0.4817, allocations: 4 kB / 1.377 GB, free: 3.602 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.4818, allocations: 8 kB / 1.377 GB, free: 3.594 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 (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 8.447e-05/0.4818, allocations: 118.6 kB / 1.377 GB, free: 3.469 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.923e-05/0.4819, allocations: 11.95 kB / 1.377 GB, free: 3.457 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003599/0.4822, allocations: 129.5 kB / 1.378 GB, free: 3.324 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-06/0.4823, allocations: 4 kB / 1.378 GB, free: 3.32 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.4823, allocations: 0 / 1.378 GB, free: 3.32 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.4823, allocations: 0 / 1.378 GB, free: 3.32 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005375/0.4828, allocations: 398.4 kB / 1.378 GB, free: 2.875 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.4828, allocations: 0 / 1.378 GB, free: 2.875 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001502/0.483, allocations: 27.98 kB / 1.378 GB, free: 2.848 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.483, allocations: 0 / 1.378 GB, free: 2.848 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.483, allocations: 8 kB / 1.378 GB, free: 2.84 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.483, allocations: 4 kB / 1.378 GB, free: 2.836 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.483, allocations: 3.984 kB / 1.378 GB, free: 2.832 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004601/0.4835, allocations: 271.8 kB / 1.378 GB, free: 2.551 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.457e-05/0.4836, allocations: 84.97 kB / 1.378 GB, free: 2.449 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.552e-05/0.4836, allocations: 0 / 1.378 GB, free: 2.449 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.4837, allocations: 8 kB / 1.378 GB, free: 2.441 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.598e-05/0.4837, allocations: 11.98 kB / 1.378 GB, free: 2.43 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.377e-06/0.4837, allocations: 4 kB / 1.378 GB, free: 2.426 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 3.549e-05/0.4838, allocations: 79.27 kB / 1.378 GB, free: 2.348 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4838, allocations: 3.938 kB / 1.378 GB, free: 2.344 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002674/0.4841, allocations: 39.94 kB / 1.378 GB, free: 2.305 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_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.0007937/0.4849, allocations: 0.8487 MB / 1.379 GB, free: 1.426 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002864/0.4852, allocations: 87.95 kB / 1.379 GB, free: 1.34 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4852, allocations: 3.938 kB / 1.379 GB, free: 1.336 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001242/0.4853, allocations: 52.03 kB / 1.379 GB, free: 1.285 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001977/0.4855, allocations: 8 kB / 1.379 GB, free: 1.277 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001308/0.4868, allocations: 0.7547 MB / 1.38 GB, free: 484 kB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002592/0.4871, allocations: 0.6965 MB / 1.381 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 6.001e-05/0.4872, allocations: 8.766 kB / 1.381 GB, free: 15.74 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.542e-05/0.4872, allocations: 23.42 kB / 1.381 GB, free: 15.72 MB / 0.8855 GB Notification: Performance of SimCode: time 1.313e-06/0.4872, allocations: 4 kB / 1.381 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01219/0.4994, allocations: 1.996 MB / 1.383 GB, free: 13.93 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001761/0.4996, allocations: 231.7 kB / 1.383 GB, free: 13.69 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.465/1.964, allocations: 4 kB / 1.383 GB, free: 13.68 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat does not exist to compare? outputFormat=mat