Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 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_DerivativeCheck2,fileNamePrefix="Buildings_9_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_9_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.0009363/0.0009366, 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.0009957/0.0009958, 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.352/1.352, allocations: 223.2 MB / 239.9 MB, free: 5.348 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.419/2.419, allocations: 390.3 MB / 0.6653 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000345/0.000345, allocations: 12 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.687/0.6874, allocations: 142.3 MB / 0.9536 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001148/0.6885, allocations: 1.168 MB / 0.9547 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004858/0.689, allocations: 340.8 kB / 0.9551 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.324e-05/0.6891, allocations: 0 / 0.9551 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.482e-05/0.6891, allocations: 11.92 kB / 0.9551 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.843e-05/0.6891, allocations: 5.422 kB / 0.9551 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002917/0.6894, allocations: 74.45 kB / 0.9551 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.68e-05/0.6895, allocations: 32.2 kB / 0.9552 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.579e-05/0.6895, allocations: 2.969 kB / 0.9552 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.979e-05/0.6896, allocations: 21.95 kB / 0.9552 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.999e-05/0.6896, allocations: 31.7 kB / 0.9552 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.251e-05/0.6897, allocations: 3.438 kB / 0.9552 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002394/0.6899, allocations: 177.4 kB / 0.9554 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.499e-05/0.6899, allocations: 18.03 kB / 0.9554 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.856e-05/0.69, allocations: 30.55 kB / 0.9554 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001203/0.6901, allocations: 69.91 kB / 0.9555 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.6901, allocations: 1.156 kB / 0.9555 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.483e-06/0.6901, allocations: 0 / 0.9555 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.399e-06/0.6901, allocations: 0 / 0.9555 GB, free: 6.656 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004014/0.6905, allocations: 386.4 kB / 0.9559 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.6906, allocations: 8.531 kB / 0.9559 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.918e-05/0.6906, allocations: 37.3 kB / 0.9559 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.535e-05/0.6906, allocations: 10.83 kB / 0.9559 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.096e-05/0.6907, allocations: 173.9 kB / 0.9561 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.6907, allocations: 2.656 kB / 0.9561 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.881e-05/0.6907, allocations: 9.375 kB / 0.9561 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002087/0.6909, allocations: 80.06 kB / 0.9562 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.691, allocations: 5.141 kB / 0.9562 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.691, allocations: 0 / 0.9562 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.691, allocations: 2 kB / 0.9562 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002389/0.6912, allocations: 55.27 kB / 0.9563 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004294/0.6917, allocations: 337 kB / 0.9566 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002635/0.692, allocations: 84.44 kB / 0.9567 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.643e-05/0.692, allocations: 5.484 kB / 0.9567 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.632e-05/0.692, allocations: 35.94 kB / 0.9567 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.692, allocations: 0 / 0.9567 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001437/0.6934, allocations: 0.6813 MB / 0.9574 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.773e-05/0.6935, allocations: 53.81 kB / 0.9574 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.037e-05/0.6935, allocations: 93.89 kB / 0.9575 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.181e-05/0.6935, allocations: 30.83 kB / 0.9575 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.369e-05/0.6936, allocations: 94.47 kB / 0.9576 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.413e-05/0.6936, allocations: 39.27 kB / 0.9577 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.94e-06/0.6936, allocations: 5.031 kB / 0.9577 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.627e-05/0.6936, allocations: 317.1 kB / 0.958 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.6938, allocations: 34.84 kB / 0.958 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.6939, allocations: 36.67 kB / 0.958 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001246/0.694, allocations: 41.64 kB / 0.9581 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.694, allocations: 0 / 0.9581 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002922/0.6943, allocations: 133 kB / 0.9582 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.6944, allocations: 5.125 kB / 0.9582 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.586e-06/0.6944, allocations: 0 / 0.9582 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.367e-06/0.6944, allocations: 1.125 kB / 0.9582 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/0.6945, allocations: 39.41 kB / 0.9582 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.137e-06/0.6945, allocations: 0 / 0.9582 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.706e-05/0.6946, allocations: 9.406 kB / 0.9583 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.417e-06/0.6946, allocations: 6.969 kB / 0.9583 GB, free: 4.113 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 5.31e-05/0.6947, allocations: 113.6 kB / 0.9584 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.825e-05/0.6947, allocations: 11.86 kB / 0.9584 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003531/0.6951, allocations: 136.7 kB / 0.9585 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.6951, allocations: 1.406 kB / 0.9585 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.6951, allocations: 1.531 kB / 0.9585 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.6951, allocations: 0 / 0.9585 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004602/0.6956, allocations: 403.1 kB / 0.9589 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.6956, allocations: 1.438 kB / 0.9589 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001453/0.6957, allocations: 25.45 kB / 0.9589 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.6957, allocations: 1.719 kB / 0.9589 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.6958, allocations: 0 / 0.9589 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.6958, allocations: 1.906 kB / 0.9589 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.6958, allocations: 0 / 0.9589 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004308/0.6962, allocations: 269.3 kB / 0.9592 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.607e-05/0.6962, allocations: 83.84 kB / 0.9593 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.6963, allocations: 9.438 kB / 0.9593 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.6964, allocations: 5.5 kB / 0.9593 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.697e-05/0.6964, allocations: 8.109 kB / 0.9593 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/0.6964, allocations: 2.75 kB / 0.9593 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.865e-05/0.6964, allocations: 82.03 kB / 0.9594 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6964, allocations: 1.375 kB / 0.9594 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002637/0.6967, allocations: 49.98 kB / 0.9594 GB, free: 3.102 MB / 0.7169 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.0006379/0.6974, allocations: 0.8185 MB / 0.9602 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002877/0.6977, allocations: 95.12 kB / 0.9603 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.6977, allocations: 0 / 0.9603 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001325/0.6978, allocations: 48.09 kB / 0.9603 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001816/0.698, allocations: 10.95 kB / 0.9604 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.6992, allocations: 0.7583 MB / 0.9611 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.424e-05/0.6993, allocations: 0.6965 MB / 0.9618 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.676e-05/0.6993, allocations: 12.09 kB / 0.9618 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.136e-05/0.6994, allocations: 21.5 kB / 0.9618 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.6994, allocations: 0 / 0.9618 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01114/0.7105, allocations: 2.051 MB / 0.9638 GB, free: 52 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001963/0.7108, allocations: 233.8 kB / 0.964 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.65/2.361, allocations: 0 / 0.964 GB, free: 15.8 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat does not exist to compare? outputFormat=mat