Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_latest_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_latest_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008746/0.0008745, allocations: 91.38 kB / 15.06 MB, free: 1.098 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.0009196/0.0009199, allocations: 172.7 kB / 15.95 MB, free: 208 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.379/1.379, allocations: 223.2 MB / 240 MB, free: 5.328 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.9219 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004625/0.0004626, allocations: 8 kB / 0.8378 GB, free: 6.551 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7459/0.7464, allocations: 146.8 MB / 0.9811 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001436/0.7479, allocations: 1.175 MB / 0.9823 GB, free: 5.109 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0008898/0.7488, allocations: 0.5806 MB / 0.9829 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.824e-05/0.7489, allocations: 4 kB / 0.9829 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.636e-05/0.7489, allocations: 7.938 kB / 0.9829 GB, free: 4.512 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.028e-05/0.7489, allocations: 0 / 0.9829 GB, free: 4.512 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004685/0.7494, allocations: 135.5 kB / 0.983 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.434e-05/0.7495, allocations: 43.86 kB / 0.983 GB, free: 4.336 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 5.561e-05/0.7495, allocations: 4 kB / 0.983 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.122e-05/0.7496, allocations: 23.97 kB / 0.9831 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.605e-05/0.7497, allocations: 31.84 kB / 0.9831 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.513e-05/0.7497, allocations: 7.938 kB / 0.9831 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004739/0.7502, allocations: 339.3 kB / 0.9834 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.463e-05/0.7502, allocations: 8 kB / 0.9834 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.688e-05/0.7502, allocations: 33.7 kB / 0.9835 GB, free: 3.891 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001821/0.7504, allocations: 114 kB / 0.9836 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.7504, allocations: 4 kB / 0.9836 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.383e-06/0.7504, allocations: 0 / 0.9836 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.7505, allocations: 0 / 0.9836 GB, free: 3.777 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005431/0.751, allocations: 399 kB / 0.984 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.751, allocations: 8.031 kB / 0.984 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.055e-05/0.7511, allocations: 38.55 kB / 0.984 GB, free: 3.285 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.252e-05/0.7511, allocations: 7.906 kB / 0.984 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000114/0.7513, allocations: 167 kB / 0.9842 GB, free: 3.074 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.551e-05/0.7513, allocations: 7.984 kB / 0.9842 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.241e-05/0.7513, allocations: 8 kB / 0.9842 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002259/0.7516, allocations: 89.59 kB / 0.9843 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.7516, allocations: 0 / 0.9843 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.7516, allocations: 0 / 0.9843 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.7516, allocations: 4 kB / 0.9843 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002192/0.7518, allocations: 66.89 kB / 0.9843 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004921/0.7523, allocations: 324.7 kB / 0.9847 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002536/0.7526, allocations: 90.47 kB / 0.9847 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.7527, allocations: 32.84 kB / 0.9848 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.276e-05/0.7527, allocations: 4 kB / 0.9848 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.7528, allocations: 34.56 kB / 0.9848 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.7528, allocations: 0 / 0.9848 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.001495/0.7543, allocations: 0.6657 MB / 0.9855 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/0.7543, allocations: 59.41 kB / 0.9855 GB, free: 1.523 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.93e-05/0.7544, allocations: 101.8 kB / 0.9856 GB, free: 1.414 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.701e-05/0.7544, allocations: 29.7 kB / 0.9856 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.26e-05/0.7545, allocations: 91.98 kB / 0.9857 GB, free: 1.285 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.265e-05/0.7545, allocations: 35.45 kB / 0.9858 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.943e-06/0.7545, allocations: 4 kB / 0.9858 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.7546, allocations: 318.8 kB / 0.9861 GB, free: 0.9258 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.7548, allocations: 43.92 kB / 0.9861 GB, free: 0.8828 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001073/0.7549, allocations: 35.97 kB / 0.9861 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001143/0.755, allocations: 36.12 kB / 0.9862 GB, free: 0.8125 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.755, allocations: 3.984 kB / 0.9862 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002939/0.7553, allocations: 125.6 kB / 0.9863 GB, free: 0.6797 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.7553, allocations: 4 kB / 0.9863 GB, free: 0.6758 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.7554, allocations: 0 / 0.9863 GB, free: 0.6758 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.7554, allocations: 4 kB / 0.9863 GB, free: 0.6719 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.7555, allocations: 23.98 kB / 0.9863 GB, free: 0.6484 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.7555, allocations: 7.875 kB / 0.9863 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.122e-05/0.7556, allocations: 16 kB / 0.9864 GB, free: 0.625 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.7556, allocations: 3.984 kB / 0.9864 GB, free: 0.6211 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 (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.111e-05/0.7557, allocations: 117.8 kB / 0.9865 GB, free: 0.4961 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.956e-05/0.7557, allocations: 7.906 kB / 0.9865 GB, free: 500 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003369/0.7561, allocations: 129.6 kB / 0.9866 GB, free: 364 kB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.7561, allocations: 8 kB / 0.9866 GB, free: 356 kB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-06/0.7561, allocations: 192 / 0.9866 GB, free: 356 kB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.7561, allocations: 7.922 kB / 0.9866 GB, free: 348 kB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00054/0.7567, allocations: 398.6 kB / 0.987 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.7567, allocations: 0 / 0.987 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001413/0.7568, allocations: 35.98 kB / 0.987 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.7568, allocations: 0 / 0.987 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.7568, allocations: 3.984 kB / 0.987 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.7569, allocations: 7.938 kB / 0.987 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.7569, allocations: 0 / 0.987 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004634/0.7573, allocations: 263.3 kB / 0.9873 GB, free: 15.57 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 4.444e-05/0.7574, allocations: 81.14 kB / 0.9874 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.722e-05/0.7574, allocations: 0 / 0.9874 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.7575, allocations: 15.98 kB / 0.9874 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.103e-05/0.7576, allocations: 4 kB / 0.9874 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.584e-06/0.7576, allocations: 64 / 0.9874 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 3.6e-05/0.7576, allocations: 87.27 kB / 0.9875 GB, free: 15.37 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7576, allocations: 0 / 0.9875 GB, free: 15.37 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002815/0.7579, allocations: 43.94 kB / 0.9875 GB, free: 15.33 MB / 0.7481 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.0008791/0.7588, allocations: 0.8294 MB / 0.9883 GB, free: 14.47 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003008/0.7591, allocations: 95.02 kB / 0.9884 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.7591, allocations: 4.062 kB / 0.9884 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001318/0.7593, allocations: 47.97 kB / 0.9885 GB, free: 14.33 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003013/0.7596, allocations: 11.25 kB / 0.9885 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001323/0.7609, allocations: 0.7546 MB / 0.9892 GB, free: 13.52 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002659/0.7612, allocations: 0.6965 MB / 0.9899 GB, free: 12.79 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.337e-05/0.7612, allocations: 16.59 kB / 0.9899 GB, free: 12.78 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.906e-05/0.7613, allocations: 23.44 kB / 0.9899 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of SimCode: time 4.31e-07/0.7613, allocations: 0 / 0.9899 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01409/0.7754, allocations: 2.054 MB / 0.9919 GB, free: 10.92 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001756/0.7756, allocations: 232.4 kB / 0.9922 GB, free: 10.68 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.689/2.464, allocations: 4 kB / 0.9922 GB, free: 10.68 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat does not exist to compare? outputFormat=mat