Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.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.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",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.465/2.465, allocations: 393.5 MB / 408.4 MB, free: 11.09 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.001919/0.001918, allocations: 191 kB / 0.4901 GB, free: 2.23 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.897/1.897, allocations: 223.1 MB / 0.7992 GB, free: 14.69 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.001049/0.001049, allocations: 97.94 kB / 0.9396 GB, free: 1.867 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003937/0.0003939, allocations: 14.34 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3672/0.3676, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2813/0.649, allocations: 150.8 MB / 1.376 GB, free: 2.621 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004584/0.6496, allocations: 75.95 kB / 1.377 GB, free: 2.547 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01281/0.6624, allocations: 2.882 MB / 1.379 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of FrontEnd: time 4.96e-06/0.6625, allocations: 0 / 1.379 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.053e-05/0.6626, allocations: 0 / 1.379 GB, free: 15.66 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005848/0.6631, allocations: 359.2 kB / 1.38 GB, free: 15.26 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 7.449e-05/0.6632, allocations: 12.56 kB / 1.38 GB, free: 15.25 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.57e-05/0.6633, allocations: 30.56 kB / 1.38 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.123e-05/0.6634, allocations: 11.86 kB / 1.38 GB, free: 15.2 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001842/0.6636, allocations: 163.1 kB / 1.38 GB, free: 15 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.6636, allocations: 0 / 1.38 GB, free: 15 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.417e-05/0.6636, allocations: 8 kB / 1.38 GB, free: 14.99 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001682/0.6638, allocations: 37.62 kB / 1.38 GB, free: 14.95 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.6638, allocations: 0 / 1.38 GB, free: 14.95 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.535e-05/0.6639, allocations: 4 kB / 1.38 GB, free: 14.95 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.6639, allocations: 0 / 1.38 GB, free: 14.95 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.665e-05/0.664, allocations: 19.94 kB / 1.38 GB, free: 14.93 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002721/0.6642, allocations: 153.7 kB / 1.38 GB, free: 14.73 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002966/0.6646, allocations: 46.5 kB / 1.38 GB, free: 14.67 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.465e-05/0.6646, allocations: 4 kB / 1.38 GB, free: 14.67 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.341e-05/0.6647, allocations: 34.56 kB / 1.38 GB, free: 14.62 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=4): time 1.332e-06/0.6647, allocations: 0 / 1.38 GB, free: 14.62 MB / 0.8855 GB Notification: Performance of matching and sorting (n=6): time 0.0009668/0.6656, allocations: 310.2 kB / 1.381 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.443e-05/0.6657, allocations: 51.41 kB / 1.381 GB, free: 14.21 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.309e-05/0.6658, allocations: 92.98 kB / 1.381 GB, free: 14.11 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.6658, allocations: 25.7 kB / 1.381 GB, free: 14.08 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.593e-05/0.6659, allocations: 92.12 kB / 1.381 GB, free: 13.98 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.954e-05/0.666, allocations: 11.72 kB / 1.381 GB, free: 13.97 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-06/0.666, allocations: 4 kB / 1.381 GB, free: 13.97 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001569/0.6661, allocations: 326.8 kB / 1.381 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.426e-05/0.6662, allocations: 8 kB / 1.381 GB, free: 13.63 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.745e-05/0.6662, allocations: 8 kB / 1.381 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.109e-05/0.6663, allocations: 19.98 kB / 1.381 GB, free: 13.61 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.6663, allocations: 0 / 1.381 GB, free: 13.61 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001362/0.6664, allocations: 57.64 kB / 1.381 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.6665, allocations: 8 kB / 1.381 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.413e-06/0.6665, allocations: 0 / 1.381 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.284e-05/0.6665, allocations: 7.984 kB / 1.381 GB, free: 13.53 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.411e-05/0.6666, allocations: 8 kB / 1.381 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.6666, allocations: 0 / 1.381 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.803e-05/0.6667, allocations: 4 kB / 1.381 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.808e-06/0.6667, allocations: 8.172 kB / 1.381 GB, free: 13.51 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 (7): * Single equations (assignments): 7 * 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 0.0001279/0.6668, allocations: 113.8 kB / 1.381 GB, free: 13.39 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.405e-05/0.6668, allocations: 3.906 kB / 1.381 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002055/0.6671, allocations: 81.52 kB / 1.381 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.6671, allocations: 0 / 1.381 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.6671, allocations: 8 kB / 1.381 GB, free: 13.29 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.6671, allocations: 0 / 1.381 GB, free: 13.29 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004964/0.6676, allocations: 315.4 kB / 1.382 GB, free: 12.92 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.6676, allocations: 0 / 1.382 GB, free: 12.92 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.725e-05/0.6677, allocations: 12.17 kB / 1.382 GB, free: 12.91 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.6677, allocations: 4 kB / 1.382 GB, free: 12.91 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.6678, allocations: 4 kB / 1.382 GB, free: 12.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.6678, allocations: 0 / 1.382 GB, free: 12.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.6678, allocations: 3.938 kB / 1.382 GB, free: 12.9 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003034/0.6681, allocations: 202 kB / 1.382 GB, free: 12.68 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.635e-05/0.6682, allocations: 85.02 kB / 1.382 GB, free: 12.57 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.275e-05/0.6682, allocations: 4.031 kB / 1.382 GB, free: 12.57 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.6683, allocations: 0 / 1.382 GB, free: 12.57 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.937e-05/0.6684, allocations: 11.94 kB / 1.382 GB, free: 12.56 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.712e-06/0.6684, allocations: 4.062 kB / 1.382 GB, free: 12.55 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.15e-05/0.6684, allocations: 83.28 kB / 1.382 GB, free: 12.47 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.61e-07/0.6685, allocations: 0 / 1.382 GB, free: 12.47 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004151/0.6689, allocations: 20 kB / 1.382 GB, free: 12.45 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0008394/0.6697, allocations: 0.8196 MB / 1.383 GB, free: 11.6 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001571/0.6699, allocations: 31.98 kB / 1.383 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.6699, allocations: 0 / 1.383 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 4.182e-05/0.67, allocations: 19.92 kB / 1.383 GB, free: 11.55 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002383/0.6702, allocations: 8.516 kB / 1.383 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001148/0.6714, allocations: 496.1 kB / 1.383 GB, free: 11 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003652/0.6718, allocations: 0.6849 MB / 1.384 GB, free: 10.29 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 5.681e-05/0.6718, allocations: 15.92 kB / 1.384 GB, free: 10.28 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.46e-05/0.6719, allocations: 7.438 kB / 1.384 GB, free: 10.27 MB / 0.8855 GB Notification: Performance of SimCode: time 6.51e-07/0.6719, allocations: 0 / 1.384 GB, free: 10.27 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0176/0.6895, allocations: 1.378 MB / 1.386 GB, free: 9.105 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003739/0.69, allocations: 225.6 kB / 1.386 GB, free: 8.871 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.774/2.464, allocations: 0 / 1.386 GB, free: 8.871 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat does not exist to compare? outputFormat=mat