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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.501/2.501, allocations: 387.4 MB / 394.9 MB, free: 13.36 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 180.8 kB / 487.4 MB, free: 5.035 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.587/1.587, allocations: 221.5 MB / 0.7824 GB, free: 0.9297 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008644/0.0008647, allocations: 99.84 kB / 0.9219 GB, free: 2.168 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.157e-05/2.151e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2956, allocations: 142.4 MB / 1.206 GB, free: 43.84 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.025/1.321, allocations: 149.5 MB / 1.352 GB, free: 18.39 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/1.321, allocations: 74.48 kB / 1.352 GB, free: 18.39 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01355/1.335, allocations: 4.539 MB / 1.357 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.894e-06/1.335, allocations: 0 / 1.357 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.544e-06/1.335, allocations: 0 / 1.357 GB, free: 33.83 MB / 0.8386 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.000373/1.335, allocations: 352 kB / 1.357 GB, free: 33.47 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/1.335, allocations: 7.594 kB / 1.357 GB, free: 33.47 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.869e-05/1.335, allocations: 8.5 kB / 1.357 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.985e-05/1.335, allocations: 176.3 kB / 1.357 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/1.335, allocations: 3.812 kB / 1.357 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.465e-05/1.335, allocations: 0.7031 kB / 1.357 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.492e-05/1.336, allocations: 16.59 kB / 1.357 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.517e-05/1.336, allocations: 48.72 kB / 1.357 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/1.336, allocations: 0.6562 kB / 1.357 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/1.336, allocations: 4 kB / 1.357 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/1.336, allocations: 0 / 1.357 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001593/1.336, allocations: 145.3 kB / 1.357 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.182e-05/1.336, allocations: 51.45 kB / 1.357 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.856e-05/1.336, allocations: 24.5 kB / 1.357 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.959e-05/1.336, allocations: 4.484 kB / 1.357 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/1.336, allocations: 39.05 kB / 1.357 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/1.336, allocations: 0 / 1.357 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0007768/1.337, allocations: 0.5061 MB / 1.358 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.141e-05/1.337, allocations: 59.5 kB / 1.358 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.466e-05/1.337, allocations: 85.56 kB / 1.358 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.375e-05/1.337, allocations: 25.7 kB / 1.358 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.328e-05/1.337, allocations: 88.75 kB / 1.358 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.709e-05/1.337, allocations: 42.53 kB / 1.358 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-06/1.337, allocations: 0 / 1.358 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001161/1.337, allocations: 319.9 kB / 1.358 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.119e-05/1.337, allocations: 19.45 kB / 1.358 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.814e-05/1.337, allocations: 22.97 kB / 1.359 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.12e-05/1.337, allocations: 22.19 kB / 1.359 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.51e-07/1.337, allocations: 0 / 1.359 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001124/1.337, allocations: 88.53 kB / 1.359 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/1.337, allocations: 8.453 kB / 1.359 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/1.337, allocations: 3.844 kB / 1.359 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/1.337, allocations: 0 / 1.359 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.838e-05/1.338, allocations: 18.44 kB / 1.359 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/1.338, allocations: 3.875 kB / 1.359 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.397e-05/1.338, allocations: 0.7969 kB / 1.359 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/1.338, allocations: 0 / 1.359 GB, free: 31.87 MB / 0.8386 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 () * 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/1.338, allocations: 112.7 kB / 1.359 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001005/1.338, allocations: 85.16 kB / 1.359 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.446e-06/1.338, allocations: 4 kB / 1.359 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001545/1.338, allocations: 92.92 kB / 1.359 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/1.338, allocations: 3.875 kB / 1.359 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/1.338, allocations: 0 / 1.359 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/1.338, allocations: 0 / 1.359 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003363/1.338, allocations: 323.3 kB / 1.359 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/1.338, allocations: 3.422 kB / 1.359 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/1.338, allocations: 15.38 kB / 1.359 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/1.338, allocations: 7.812 kB / 1.359 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.898e-06/1.338, allocations: 7.141 kB / 1.359 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/1.338, allocations: 0 / 1.359 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.339, allocations: 4 kB / 1.359 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001991/1.339, allocations: 204.2 kB / 1.359 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.936e-05/1.339, allocations: 87.38 kB / 1.36 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.55e-05/1.339, allocations: 0 / 1.36 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.668e-05/1.339, allocations: 3.984 kB / 1.36 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.471e-05/1.339, allocations: 10.44 kB / 1.36 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.233e-06/1.339, allocations: 3.875 kB / 1.36 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.616e-05/1.339, allocations: 82.94 kB / 1.36 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.8e-07/1.339, allocations: 3.938 kB / 1.36 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002907/1.339, allocations: 37.88 kB / 1.36 GB, free: 31.05 MB / 0.8386 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 () * 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.000547/1.34, allocations: 0.7872 MB / 1.36 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001203/1.34, allocations: 55.89 kB / 1.361 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/1.34, allocations: 0 / 1.361 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.451e-05/1.34, allocations: 26.53 kB / 1.361 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001458/1.34, allocations: 8.625 kB / 1.361 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005459/1.341, allocations: 272 kB / 1.361 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/1.341, allocations: 0.6901 MB / 1.361 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.491e-05/1.341, allocations: 6.422 kB / 1.361 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.725e-05/1.341, allocations: 21.94 kB / 1.362 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/1.341, allocations: 4 kB / 1.362 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01896/1.36, allocations: 1.445 MB / 1.363 GB, free: 29.33 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001811/1.36, allocations: 177.3 kB / 1.363 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.663/3.023, allocations: 0 / 1.363 GB, free: 29.14 MB / 0.8386 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