Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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 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_DerivativeCheck2,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.0009883/0.0009885, allocations: 99.08 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.0008861/0.0008862, 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.356/1.356, allocations: 223.2 MB / 239.9 MB, free: 5.32 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.37/2.37, allocations: 390.3 MB / 0.6653 GB, free: 3.043 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003809/0.000381, allocations: 12 kB / 0.8146 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7793/0.7797, allocations: 142.3 MB / 0.9536 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001287/0.781, allocations: 0.9922 MB / 0.9546 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005681/0.7816, allocations: 347.6 kB / 0.9549 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.545e-05/0.7816, allocations: 3.938 kB / 0.9549 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.589e-05/0.7817, allocations: 0 / 0.9549 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.457e-05/0.7817, allocations: 5.078 kB / 0.9549 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004308/0.7821, allocations: 79.69 kB / 0.955 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.293e-05/0.7822, allocations: 19.62 kB / 0.955 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.175e-05/0.7823, allocations: 1.594 kB / 0.955 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.952e-05/0.7823, allocations: 18.27 kB / 0.955 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.626e-05/0.7824, allocations: 9.234 kB / 0.955 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.215e-05/0.7824, allocations: 5.719 kB / 0.955 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003082/0.7827, allocations: 181.2 kB / 0.9552 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.412e-05/0.7827, allocations: 6.781 kB / 0.9552 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.501e-05/0.7827, allocations: 31.95 kB / 0.9552 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001456/0.7829, allocations: 59.48 kB / 0.9553 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.7829, allocations: 0 / 0.9553 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.873e-06/0.7829, allocations: 0 / 0.9553 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.7829, allocations: 1.156 kB / 0.9553 GB, free: 6.789 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003079/0.7832, allocations: 347.3 kB / 0.9556 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.7833, allocations: 13.47 kB / 0.9556 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.211e-05/0.7833, allocations: 36.03 kB / 0.9557 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.891e-05/0.7834, allocations: 6.547 kB / 0.9557 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.63e-05/0.7834, allocations: 168.4 kB / 0.9558 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.7835, allocations: 5.469 kB / 0.9558 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.132e-05/0.7835, allocations: 2.5 kB / 0.9559 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001196/0.7836, allocations: 50.53 kB / 0.9559 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.7836, allocations: 3.938 kB / 0.9559 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.7836, allocations: 1.562 kB / 0.9559 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.7837, allocations: 0 / 0.9559 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.394e-05/0.7837, allocations: 26.75 kB / 0.9559 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001426/0.7839, allocations: 169.8 kB / 0.9561 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.979e-05/0.784, allocations: 58.95 kB / 0.9561 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.784, allocations: 1.25 kB / 0.9561 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.977e-05/0.784, allocations: 31.84 kB / 0.9562 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.753e-06/0.784, allocations: 1.375 kB / 0.9562 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001026/0.7851, allocations: 0.5902 MB / 0.9568 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.355e-05/0.7851, allocations: 56.86 kB / 0.9568 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.493e-05/0.7852, allocations: 92.67 kB / 0.9569 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.265e-05/0.7852, allocations: 35.02 kB / 0.9569 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.089e-05/0.7852, allocations: 81.52 kB / 0.957 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.305e-05/0.7852, allocations: 35.2 kB / 0.957 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.889e-06/0.7852, allocations: 5.219 kB / 0.957 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.502e-05/0.7853, allocations: 316.2 kB / 0.9574 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.918e-05/0.7853, allocations: 19.16 kB / 0.9574 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.14e-05/0.7854, allocations: 20.48 kB / 0.9574 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.743e-05/0.7854, allocations: 29.25 kB / 0.9574 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.7854, allocations: 0 / 0.9574 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001304/0.7856, allocations: 101.7 kB / 0.9575 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.7856, allocations: 9.609 kB / 0.9575 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.7856, allocations: 0 / 0.9575 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.7856, allocations: 1.344 kB / 0.9575 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.7857, allocations: 21.69 kB / 0.9575 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.7857, allocations: 5.484 kB / 0.9576 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.515e-05/0.7858, allocations: 0 / 0.9576 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.667e-06/0.7858, allocations: 6.734 kB / 0.9576 GB, free: 4.508 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 (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 6.659e-05/0.7859, allocations: 112.7 kB / 0.9577 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.368e-05/0.7859, allocations: 6.844 kB / 0.9577 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000168/0.786, allocations: 112.7 kB / 0.9578 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.7861, allocations: 0 / 0.9578 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.7861, allocations: 0 / 0.9578 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.7861, allocations: 7.938 kB / 0.9578 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003134/0.7864, allocations: 357.1 kB / 0.9581 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.7864, allocations: 3.984 kB / 0.9581 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001052/0.7865, allocations: 20.97 kB / 0.9582 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.7865, allocations: 1.094 kB / 0.9582 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.367e-06/0.7865, allocations: 9.062 kB / 0.9582 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.7866, allocations: 5.078 kB / 0.9582 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.7866, allocations: 0 / 0.9582 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001958/0.7868, allocations: 213.4 kB / 0.9584 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.157e-05/0.7868, allocations: 86.14 kB / 0.9585 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.507e-05/0.7868, allocations: 1.094 kB / 0.9585 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.317e-05/0.7869, allocations: 2.156 kB / 0.9585 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.114e-05/0.7869, allocations: 19.12 kB / 0.9585 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/0.7869, allocations: 7.219 kB / 0.9585 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.747e-05/0.787, allocations: 81.5 kB / 0.9586 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.787, allocations: 0 / 0.9586 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002733/0.7872, allocations: 40.58 kB / 0.9586 GB, free: 3.535 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (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.0004358/0.7877, allocations: 0.7788 MB / 0.9594 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001317/0.7878, allocations: 62.02 kB / 0.9594 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.7878, allocations: 0 / 0.9594 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.8e-05/0.7879, allocations: 37.3 kB / 0.9595 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001398/0.788, allocations: 6.172 kB / 0.9595 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008228/0.7889, allocations: 0.6482 MB / 0.9601 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001113/0.789, allocations: 0.6897 MB / 0.9608 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.271e-05/0.789, allocations: 9.219 kB / 0.9608 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.832e-05/0.7891, allocations: 20.88 kB / 0.9608 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of SimCode: time 5.21e-07/0.7891, allocations: 0 / 0.9608 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01178/0.8009, allocations: 1.804 MB / 0.9626 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001355/0.801, allocations: 223.5 kB / 0.9628 GB, free: 468 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.621/2.422, allocations: 5.031 kB / 0.9628 GB, free: 464 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat does not exist to compare? outputFormat=mat