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/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_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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.295/2.295, 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.001106/0.001106, allocations: 180.8 kB / 487.4 MB, free: 5.07 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.556/1.556, allocations: 221.5 MB / 0.7824 GB, free: 1.039 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.0009487/0.0009486, allocations: 103.8 kB / 0.9219 GB, free: 2.258 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.025e-05/2.026e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.305/0.305, allocations: 142.4 MB / 1.206 GB, free: 43.89 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9798/1.285, allocations: 149.3 MB / 1.352 GB, free: 18.18 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003037/1.285, allocations: 81.55 kB / 1.352 GB, free: 18.18 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01211/1.297, allocations: 4.034 MB / 1.356 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.704e-06/1.297, allocations: 0 / 1.356 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.222e-06/1.297, allocations: 0 / 1.356 GB, free: 33.66 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.000339/1.298, allocations: 343 kB / 1.356 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/1.298, allocations: 11.69 kB / 1.356 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.478e-05/1.298, allocations: 4.719 kB / 1.356 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001045/1.298, allocations: 176.1 kB / 1.356 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/1.298, allocations: 0 / 1.356 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.067e-05/1.298, allocations: 0.7969 kB / 1.356 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.847e-05/1.298, allocations: 12.14 kB / 1.356 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.689e-05/1.298, allocations: 32.11 kB / 1.356 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/1.298, allocations: 4 kB / 1.356 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/1.298, allocations: 0.6562 kB / 1.356 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/1.298, allocations: 4.516 kB / 1.356 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001367/1.298, allocations: 143.3 kB / 1.357 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001684/1.299, allocations: 36.11 kB / 1.357 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.032e-05/1.299, allocations: 20.97 kB / 1.357 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/1.299, allocations: 0 / 1.357 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.952e-05/1.299, allocations: 38.36 kB / 1.357 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=4): time 2.585e-06/1.299, allocations: 7.922 kB / 1.357 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0005083/1.299, allocations: 275.3 kB / 1.357 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.695e-05/1.299, allocations: 51.97 kB / 1.357 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.852e-05/1.299, allocations: 92.98 kB / 1.357 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 9.268e-06/1.299, allocations: 25.7 kB / 1.357 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.729e-05/1.299, allocations: 80.75 kB / 1.357 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.654e-05/1.299, allocations: 28.36 kB / 1.357 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.387e-06/1.299, allocations: 0 / 1.357 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001017/1.3, allocations: 316 kB / 1.358 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.963e-05/1.3, allocations: 11.19 kB / 1.358 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.645e-05/1.3, allocations: 7.094 kB / 1.358 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.737e-05/1.3, allocations: 13.11 kB / 1.358 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.21e-07/1.3, allocations: 0 / 1.358 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7) (initialization): time 7.559e-05/1.3, allocations: 55.84 kB / 1.358 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/1.3, allocations: 7.688 kB / 1.358 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/1.3, allocations: 4 kB / 1.358 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/1.3, allocations: 0.75 kB / 1.358 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.042e-05/1.3, allocations: 20.12 kB / 1.358 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/1.3, allocations: 0 / 1.358 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.823e-05/1.3, allocations: 0 / 1.358 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.211e-06/1.3, allocations: 0.5625 kB / 1.358 GB, free: 31.91 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 (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 7.257e-05/1.3, allocations: 108.8 kB / 1.358 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 6.849e-05/1.3, allocations: 56.06 kB / 1.358 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.948e-06/1.3, allocations: 7.344 kB / 1.358 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001252/1.3, allocations: 70.02 kB / 1.358 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/1.3, allocations: 0.6562 kB / 1.358 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/1.3, allocations: 4.094 kB / 1.358 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/1.3, allocations: 4.562 kB / 1.358 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002641/1.3, allocations: 284 kB / 1.358 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/1.3, allocations: 0 / 1.358 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.844e-05/1.301, allocations: 13.81 kB / 1.358 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-06/1.301, allocations: 0 / 1.358 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/1.301, allocations: 3.812 kB / 1.358 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/1.301, allocations: 4.594 kB / 1.358 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/1.301, allocations: 0 / 1.358 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000158/1.301, allocations: 184.2 kB / 1.358 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.803e-05/1.301, allocations: 83.72 kB / 1.358 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/1.301, allocations: 4.641 kB / 1.358 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.249e-05/1.301, allocations: 4.062 kB / 1.358 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.411e-05/1.301, allocations: 13.75 kB / 1.358 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.651e-06/1.301, allocations: 3.781 kB / 1.358 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.626e-05/1.301, allocations: 79.14 kB / 1.359 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.81e-07/1.301, allocations: 0 / 1.359 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002556/1.301, allocations: 28.73 kB / 1.359 GB, free: 31.08 MB / 0.8386 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 () * 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.0004787/1.302, allocations: 0.8088 MB / 1.359 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001023/1.302, allocations: 27.44 kB / 1.359 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/1.302, allocations: 0 / 1.359 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.136e-05/1.302, allocations: 15.72 kB / 1.359 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001426/1.302, allocations: 4.469 kB / 1.359 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004338/1.302, allocations: 198.8 kB / 1.36 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002358/1.303, allocations: 0.6817 MB / 1.36 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.282e-05/1.303, allocations: 5.438 kB / 1.36 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.231e-05/1.303, allocations: 15.53 kB / 1.36 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of SimCode: time 2.8e-07/1.303, allocations: 0 / 1.36 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02015/1.323, allocations: 1.041 MB / 1.361 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000211/1.323, allocations: 187.2 kB / 1.361 GB, free: 29.15 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.572/2.895, allocations: 4.875 kB / 1.361 GB, free: 29.15 MB / 0.8386 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