Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.001276/0.001276, allocations: 99.7 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.001508/0.001508, 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.365/1.365, allocations: 223.2 MB / 239.9 MB, free: 5.324 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.412/2.412, allocations: 390.3 MB / 0.6653 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000363/0.0003631, allocations: 8 kB / 0.8146 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8096/0.81, allocations: 142.3 MB / 0.9536 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.001098/0.8111, allocations: 0.9842 MB / 0.9546 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000519/0.8117, allocations: 346.1 kB / 0.9549 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.576e-05/0.8117, allocations: 3.938 kB / 0.9549 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.409e-05/0.8117, allocations: 0 / 0.9549 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.058e-05/0.8118, allocations: 5.391 kB / 0.9549 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003072/0.8121, allocations: 74.77 kB / 0.955 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.441e-05/0.8121, allocations: 8.953 kB / 0.955 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.025e-05/0.8122, allocations: 6.281 kB / 0.955 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.387e-05/0.8122, allocations: 12.14 kB / 0.955 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.601e-05/0.8123, allocations: 10.75 kB / 0.955 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.122e-05/0.8123, allocations: 1.562 kB / 0.955 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002622/0.8125, allocations: 185.4 kB / 0.9552 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.967e-06/0.8126, allocations: 1.344 kB / 0.9552 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.983e-05/0.8126, allocations: 26.77 kB / 0.9552 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001125/0.8127, allocations: 54 kB / 0.9553 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.8127, allocations: 1.062 kB / 0.9553 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.004e-06/0.8127, allocations: 0 / 0.9553 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.526e-06/0.8127, allocations: 0 / 0.9553 GB, free: 6.805 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.0002748/0.813, allocations: 341.6 kB / 0.9556 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.8131, allocations: 9.156 kB / 0.9556 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.794e-05/0.8131, allocations: 31.72 kB / 0.9556 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.832e-05/0.8131, allocations: 5.234 kB / 0.9556 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.636e-05/0.8132, allocations: 168.2 kB / 0.9558 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.8132, allocations: 1.062 kB / 0.9558 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.632e-05/0.8133, allocations: 2.188 kB / 0.9558 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001011/0.8134, allocations: 43.42 kB / 0.9558 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.8134, allocations: 9.188 kB / 0.9558 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.8134, allocations: 0 / 0.9558 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.8134, allocations: 1.156 kB / 0.9558 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.303e-05/0.8134, allocations: 13.7 kB / 0.9559 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001363/0.8136, allocations: 159 kB / 0.956 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001757/0.8138, allocations: 47.02 kB / 0.9561 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.123e-05/0.8138, allocations: 1.188 kB / 0.9561 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.714e-05/0.8138, allocations: 35.69 kB / 0.9561 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.8138, allocations: 0 / 0.9561 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005394/0.8144, allocations: 308.1 kB / 0.9564 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.499e-05/0.8144, allocations: 52.59 kB / 0.9564 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.287e-05/0.8145, allocations: 98.09 kB / 0.9565 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.957e-06/0.8145, allocations: 29.7 kB / 0.9566 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.837e-05/0.8145, allocations: 85.53 kB / 0.9566 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.036e-05/0.8145, allocations: 26.48 kB / 0.9567 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.097e-06/0.8145, allocations: 4 kB / 0.9567 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.279e-05/0.8146, allocations: 312.2 kB / 0.957 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.298e-05/0.8146, allocations: 17.77 kB / 0.957 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.006e-05/0.8146, allocations: 10.66 kB / 0.957 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.825e-05/0.8147, allocations: 10.56 kB / 0.957 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.71e-07/0.8147, allocations: 0.875 kB / 0.957 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.534e-05/0.8148, allocations: 68.2 kB / 0.9571 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.8148, allocations: 5.25 kB / 0.9571 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.8148, allocations: 4 kB / 0.9571 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.8148, allocations: 1.469 kB / 0.9571 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.012e-05/0.8149, allocations: 13.45 kB / 0.9571 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.8149, allocations: 0 / 0.9571 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.032e-05/0.8149, allocations: 9.391 kB / 0.9571 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.652e-06/0.8149, allocations: 1.406 kB / 0.9571 GB, free: 4.84 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 4.919e-05/0.815, allocations: 112.3 kB / 0.9572 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.347e-06/0.815, allocations: 1.312 kB / 0.9572 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001232/0.8151, allocations: 74.77 kB / 0.9573 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.8151, allocations: 4.125 kB / 0.9573 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.8151, allocations: 5.25 kB / 0.9573 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.8151, allocations: 0 / 0.9573 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002345/0.8154, allocations: 315.3 kB / 0.9576 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.8154, allocations: 5.609 kB / 0.9576 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.908e-05/0.8154, allocations: 9.938 kB / 0.9576 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.8155, allocations: 1.156 kB / 0.9576 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.8155, allocations: 5.234 kB / 0.9576 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.8155, allocations: 1 kB / 0.9576 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.8155, allocations: 11.92 kB / 0.9576 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001413/0.8156, allocations: 184.3 kB / 0.9578 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.22e-05/0.8157, allocations: 90.58 kB / 0.9579 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.391e-05/0.8157, allocations: 1.344 kB / 0.9579 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.288e-05/0.8158, allocations: 5.578 kB / 0.9579 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.457e-05/0.8158, allocations: 6.875 kB / 0.9579 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.8158, allocations: 5.734 kB / 0.9579 GB, free: 4 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.019e-05/0.8158, allocations: 81.72 kB / 0.958 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8158, allocations: 0 / 0.958 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002509/0.8161, allocations: 18.88 kB / 0.958 GB, free: 3.918 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (m_flow_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.0003585/0.8164, allocations: 0.8213 MB / 0.9588 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.119e-05/0.8165, allocations: 36.11 kB / 0.9588 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.8166, allocations: 0 / 0.9588 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.638e-05/0.8166, allocations: 20 kB / 0.9589 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000142/0.8167, allocations: 1.312 kB / 0.9589 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00062/0.8174, allocations: 496.1 kB / 0.9593 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001127/0.8175, allocations: 0.6849 MB / 0.96 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.927e-05/0.8175, allocations: 4.094 kB / 0.96 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.502e-05/0.8176, allocations: 10.19 kB / 0.96 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of SimCode: time 3.21e-07/0.8176, allocations: 0 / 0.96 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01092/0.8285, allocations: 1.377 MB / 0.9614 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001412/0.8287, allocations: 218.8 kB / 0.9616 GB, free: 1.102 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.629/2.457, allocations: 2.031 kB / 0.9616 GB, free: 1.102 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat does not exist to compare? outputFormat=mat