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.0008605/0.0008607, allocations: 91.84 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.0008151/0.0008152, 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.314/1.314, allocations: 223.3 MB / 240 MB, free: 5.305 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.367/2.367, allocations: 390.4 MB / 0.6655 GB, free: 2.941 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003374/0.0003375, allocations: 12 kB / 0.8149 GB, free: 14.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7135/0.7139, allocations: 142.3 MB / 0.9539 GB, free: 8.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.001295/0.7152, allocations: 0.9901 MB / 0.9548 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008227/0.7161, allocations: 0.5576 MB / 0.9554 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.417e-05/0.7161, allocations: 0 / 0.9554 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.351e-05/0.7161, allocations: 0 / 0.9554 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.516e-05/0.7162, allocations: 5.141 kB / 0.9554 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005063/0.7167, allocations: 118.4 kB / 0.9555 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.878e-05/0.7168, allocations: 24.14 kB / 0.9555 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.638e-05/0.7168, allocations: 1.469 kB / 0.9555 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.168e-05/0.7168, allocations: 8.594 kB / 0.9555 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.703e-05/0.7169, allocations: 18.34 kB / 0.9555 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.054e-05/0.7169, allocations: 2.281 kB / 0.9555 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004399/0.7173, allocations: 326.6 kB / 0.9558 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.063e-05/0.7174, allocations: 14.05 kB / 0.9559 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.919e-05/0.7174, allocations: 27.77 kB / 0.9559 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001594/0.7176, allocations: 87.47 kB / 0.956 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.7176, allocations: 1.062 kB / 0.956 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.194e-06/0.7176, allocations: 0 / 0.956 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.058e-06/0.7176, allocations: 3.938 kB / 0.956 GB, free: 6.559 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.0002756/0.7179, allocations: 361.2 kB / 0.9563 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.7179, allocations: 9.375 kB / 0.9563 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.771e-05/0.7179, allocations: 31.94 kB / 0.9564 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.328e-05/0.718, allocations: 5.359 kB / 0.9564 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.669e-05/0.718, allocations: 164 kB / 0.9565 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.047e-06/0.7181, allocations: 5.312 kB / 0.9565 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.573e-05/0.7181, allocations: 5.25 kB / 0.9565 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.13e-05/0.7182, allocations: 44.16 kB / 0.9566 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.7182, allocations: 0 / 0.9566 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.376e-06/0.7182, allocations: 5.344 kB / 0.9566 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.7182, allocations: 0 / 0.9566 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.714e-05/0.7183, allocations: 13.53 kB / 0.9566 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001157/0.7184, allocations: 159.6 kB / 0.9567 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001518/0.7185, allocations: 47.48 kB / 0.9568 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.774e-05/0.7186, allocations: 15.58 kB / 0.9568 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.712e-05/0.7186, allocations: 5.141 kB / 0.9568 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.601e-05/0.7186, allocations: 40 kB / 0.9568 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.7186, allocations: 0 / 0.9568 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0004912/0.7191, allocations: 310.8 kB / 0.9571 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.22e-05/0.7192, allocations: 56.52 kB / 0.9572 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.783e-05/0.7192, allocations: 101.6 kB / 0.9573 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.624e-06/0.7192, allocations: 27.02 kB / 0.9573 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.358e-05/0.7192, allocations: 88.08 kB / 0.9574 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.041e-05/0.7193, allocations: 18.53 kB / 0.9574 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-06/0.7193, allocations: 0 / 0.9574 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.077e-05/0.7193, allocations: 317.1 kB / 0.9577 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.285e-05/0.7193, allocations: 10.16 kB / 0.9577 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.914e-05/0.7194, allocations: 10.12 kB / 0.9577 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.841e-05/0.7194, allocations: 11.09 kB / 0.9577 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.91e-07/0.7194, allocations: 3.938 kB / 0.9578 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.311e-05/0.7195, allocations: 76.23 kB / 0.9578 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.7195, allocations: 9.281 kB / 0.9578 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.7195, allocations: 0 / 0.9578 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.057e-06/0.7195, allocations: 0.6875 kB / 0.9578 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.737e-05/0.7196, allocations: 13.67 kB / 0.9578 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.7196, allocations: 1.469 kB / 0.9578 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.657e-05/0.7196, allocations: 3.953 kB / 0.9579 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.7196, allocations: 1.75 kB / 0.9579 GB, free: 4.555 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.588e-05/0.7197, allocations: 112.2 kB / 0.958 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.148e-06/0.7197, allocations: 2.312 kB / 0.958 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001181/0.7198, allocations: 77.58 kB / 0.958 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.7198, allocations: 1.562 kB / 0.958 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.7198, allocations: 0 / 0.958 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.7198, allocations: 1.156 kB / 0.958 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002355/0.7201, allocations: 315.6 kB / 0.9583 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.7201, allocations: 0 / 0.9583 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.956e-05/0.7202, allocations: 13.92 kB / 0.9584 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.7202, allocations: 3.156 kB / 0.9584 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.7202, allocations: 4 kB / 0.9584 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.7202, allocations: 4.031 kB / 0.9584 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.7202, allocations: 4.766 kB / 0.9584 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001342/0.7203, allocations: 173.4 kB / 0.9585 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.852e-05/0.7204, allocations: 87.62 kB / 0.9586 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.7204, allocations: 1.156 kB / 0.9586 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.087e-05/0.7205, allocations: 1 kB / 0.9586 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.475e-05/0.7205, allocations: 15.03 kB / 0.9586 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-06/0.7205, allocations: 2.375 kB / 0.9586 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.991e-05/0.7205, allocations: 81.22 kB / 0.9587 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7205, allocations: 0 / 0.9587 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000241/0.7208, allocations: 18.88 kB / 0.9587 GB, free: 3.66 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.0003164/0.7211, allocations: 0.7395 MB / 0.9595 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 8.339e-05/0.7212, allocations: 28.59 kB / 0.9595 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.7212, allocations: 7.938 kB / 0.9595 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.46e-05/0.7212, allocations: 19.12 kB / 0.9595 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000216/0.7214, allocations: 10.86 kB / 0.9595 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005853/0.722, allocations: 492.3 kB / 0.96 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.119e-05/0.7221, allocations: 0.6807 MB / 0.9607 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.022e-05/0.7222, allocations: 11.69 kB / 0.9607 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.575e-05/0.7222, allocations: 11.56 kB / 0.9607 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.7222, allocations: 0 / 0.9607 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01113/0.7333, allocations: 1.394 MB / 0.962 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001545/0.7335, allocations: 227.6 kB / 0.9623 GB, free: 0.918 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.632/2.366, allocations: 0 / 0.9623 GB, free: 0.918 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