Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.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 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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_DerivativeCheck,fileNamePrefix="Buildings_9_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_9_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001319/0.001319, allocations: 177.3 kB / 15.94 MB, free: 228 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.397/1.397, allocations: 223.2 MB / 239.9 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.458/2.458, allocations: 390.3 MB / 0.6653 GB, free: 2.875 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003286/0.0003286, allocations: 12 kB / 0.8146 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6656/0.666, allocations: 142.3 MB / 0.9536 GB, free: 8.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.001301/0.6673, allocations: 0.9939 MB / 0.9546 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006047/0.668, allocations: 315.8 kB / 0.9549 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.158e-05/0.668, allocations: 1.188 kB / 0.9549 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.697e-05/0.668, allocations: 0 / 0.9549 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.622e-05/0.6681, allocations: 3.984 kB / 0.9549 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000455/0.6685, allocations: 68.12 kB / 0.9549 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.676e-05/0.6686, allocations: 14.3 kB / 0.955 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.883e-05/0.6687, allocations: 5.062 kB / 0.955 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.964e-05/0.6687, allocations: 8.172 kB / 0.955 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.648e-05/0.6688, allocations: 11.39 kB / 0.955 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.266e-05/0.6688, allocations: 1.938 kB / 0.955 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002886/0.6691, allocations: 183.1 kB / 0.9552 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.207e-06/0.6691, allocations: 1 kB / 0.9552 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.109e-05/0.6691, allocations: 32.7 kB / 0.9552 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001255/0.6693, allocations: 56.5 kB / 0.9552 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.6693, allocations: 1.094 kB / 0.9552 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.754e-06/0.6693, allocations: 0 / 0.9552 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.714e-06/0.6693, allocations: 0 / 0.9552 GB, free: 6.859 MB / 0.7169 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.0003245/0.6696, allocations: 334.1 kB / 0.9556 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.6697, allocations: 9.406 kB / 0.9556 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.789e-05/0.6697, allocations: 34.56 kB / 0.9556 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.616e-05/0.6698, allocations: 5.516 kB / 0.9556 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.444e-05/0.6699, allocations: 168.5 kB / 0.9558 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.6699, allocations: 4.969 kB / 0.9558 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.255e-05/0.6699, allocations: 5.969 kB / 0.9558 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001097/0.67, allocations: 40.03 kB / 0.9558 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.67, allocations: 0 / 0.9558 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.67, allocations: 4.469 kB / 0.9558 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.6701, allocations: 1.156 kB / 0.9558 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.335e-05/0.6701, allocations: 13.98 kB / 0.9558 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001482/0.6703, allocations: 155 kB / 0.956 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001872/0.6705, allocations: 47.23 kB / 0.956 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.314e-05/0.6705, allocations: 0.9375 kB / 0.956 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.844e-05/0.6705, allocations: 35.83 kB / 0.9561 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.6705, allocations: 0 / 0.9561 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0006463/0.6712, allocations: 307.3 kB / 0.9564 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.415e-05/0.6712, allocations: 56.53 kB / 0.9564 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.568e-05/0.6713, allocations: 109 kB / 0.9565 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.007e-05/0.6713, allocations: 26.8 kB / 0.9565 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.961e-05/0.6713, allocations: 80.14 kB / 0.9566 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.706e-05/0.6713, allocations: 22.95 kB / 0.9566 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-06/0.6713, allocations: 0 / 0.9566 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.938e-05/0.6714, allocations: 316 kB / 0.9569 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.469e-05/0.6714, allocations: 14.77 kB / 0.9569 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.088e-05/0.6715, allocations: 5.531 kB / 0.957 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.131e-05/0.6715, allocations: 16.22 kB / 0.957 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.62e-07/0.6715, allocations: 4 kB / 0.957 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.555e-05/0.6716, allocations: 72.58 kB / 0.957 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.6716, allocations: 4.781 kB / 0.957 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.6716, allocations: 0 / 0.957 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.6716, allocations: 1.031 kB / 0.957 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.639e-05/0.6717, allocations: 13.45 kB / 0.9571 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.6717, allocations: 1.156 kB / 0.9571 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.862e-05/0.6717, allocations: 3.953 kB / 0.9571 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.6718, allocations: 2.438 kB / 0.9571 GB, free: 4.902 MB / 0.7169 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 6.06e-05/0.6718, allocations: 114.9 kB / 0.9572 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.628e-06/0.6718, allocations: 2.625 kB / 0.9572 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001421/0.672, allocations: 82.48 kB / 0.9573 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.672, allocations: 1.156 kB / 0.9573 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.672, allocations: 0 / 0.9573 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.672, allocations: 0 / 0.9573 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002437/0.6723, allocations: 316.1 kB / 0.9576 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.6723, allocations: 1.438 kB / 0.9576 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.861e-05/0.6723, allocations: 17.48 kB / 0.9576 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.6723, allocations: 0 / 0.9576 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.572e-06/0.6724, allocations: 1.281 kB / 0.9576 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.6724, allocations: 1.406 kB / 0.9576 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.6724, allocations: 5.422 kB / 0.9576 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001458/0.6725, allocations: 188.5 kB / 0.9578 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.573e-05/0.6725, allocations: 86.34 kB / 0.9578 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.521e-05/0.6726, allocations: 6.375 kB / 0.9579 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.008e-05/0.6726, allocations: 9.141 kB / 0.9579 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.821e-05/0.6727, allocations: 10.08 kB / 0.9579 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.6727, allocations: 2.438 kB / 0.9579 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.002e-05/0.6727, allocations: 77.69 kB / 0.958 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6727, allocations: 0 / 0.958 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002461/0.673, allocations: 22.62 kB / 0.958 GB, free: 3.977 MB / 0.7169 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.0003712/0.6733, allocations: 0.8215 MB / 0.9588 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.415e-05/0.6734, allocations: 32.7 kB / 0.9588 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.6734, allocations: 0 / 0.9588 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.673e-05/0.6735, allocations: 23.53 kB / 0.9588 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000139/0.6736, allocations: 5.406 kB / 0.9588 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006287/0.6743, allocations: 483.3 kB / 0.9593 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001119/0.6744, allocations: 0.6853 MB / 0.96 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.24e-05/0.6744, allocations: 7.906 kB / 0.96 GB, free: 2 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.167e-05/0.6745, allocations: 10.91 kB / 0.96 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.6745, allocations: 64 / 0.96 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01105/0.6855, allocations: 1.392 MB / 0.9613 GB, free: 1.398 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001364/0.6857, allocations: 230.3 kB / 0.9616 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.616/2.301, allocations: 2.031 kB / 0.9616 GB, free: 1.156 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat does not exist to compare? outputFormat=mat