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.0007688/0.0007688, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.0008455/0.0008456, allocations: 168.7 kB / 15.95 MB, free: 204 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.31/1.31, allocations: 223.3 MB / 240 MB, free: 5.422 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.325/2.325, allocations: 390.4 MB / 0.6655 GB, free: 2.863 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003226/0.0003226, allocations: 16 kB / 0.8149 GB, free: 14.09 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6888/0.6891, allocations: 142.3 MB / 0.9538 GB, free: 8.066 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001135/0.6903, allocations: 1 MB / 0.9548 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007738/0.6911, allocations: 0.5656 MB / 0.9554 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.581e-05/0.6911, allocations: 0 / 0.9554 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.081e-05/0.6911, allocations: 0 / 0.9554 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.005e-05/0.6912, allocations: 9.094 kB / 0.9554 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004102/0.6916, allocations: 130.2 kB / 0.9555 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.138e-05/0.6917, allocations: 27.53 kB / 0.9555 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.533e-05/0.6917, allocations: 2.062 kB / 0.9555 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.729e-05/0.6917, allocations: 10.38 kB / 0.9555 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.387e-05/0.6918, allocations: 12.77 kB / 0.9556 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.407e-05/0.6918, allocations: 1.594 kB / 0.9556 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005082/0.6924, allocations: 339.6 kB / 0.9559 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.377e-05/0.6924, allocations: 14.19 kB / 0.9559 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.131e-05/0.6924, allocations: 29.08 kB / 0.9559 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001624/0.6926, allocations: 101.9 kB / 0.956 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.6926, allocations: 0 / 0.956 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.563e-06/0.6926, allocations: 0 / 0.956 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.917e-06/0.6926, allocations: 0 / 0.956 GB, free: 6.41 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.0002919/0.6929, allocations: 366.1 kB / 0.9564 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.6929, allocations: 9.312 kB / 0.9564 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.759e-05/0.693, allocations: 35.38 kB / 0.9564 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.413e-05/0.693, allocations: 10.08 kB / 0.9564 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.517e-05/0.6931, allocations: 165.4 kB / 0.9566 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.384e-06/0.6931, allocations: 1.219 kB / 0.9566 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.305e-05/0.6931, allocations: 10.67 kB / 0.9566 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000103/0.6932, allocations: 48.72 kB / 0.9566 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.6932, allocations: 4 kB / 0.9566 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.6933, allocations: 5.219 kB / 0.9566 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.229e-06/0.6933, allocations: 1.406 kB / 0.9567 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.873e-05/0.6933, allocations: 22.81 kB / 0.9567 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001347/0.6935, allocations: 169 kB / 0.9568 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001018/0.6936, allocations: 67.3 kB / 0.9569 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.469e-05/0.6936, allocations: 26.14 kB / 0.9569 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.83e-05/0.6936, allocations: 1.125 kB / 0.9569 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.761e-05/0.6937, allocations: 39.73 kB / 0.957 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.6937, allocations: 3.938 kB / 0.957 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001003/0.6947, allocations: 0.591 MB / 0.9575 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/0.6947, allocations: 53.59 kB / 0.9576 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.03e-05/0.6948, allocations: 92.39 kB / 0.9577 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.6948, allocations: 27.08 kB / 0.9577 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.089e-05/0.6948, allocations: 88.14 kB / 0.9578 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.36e-05/0.6949, allocations: 36.83 kB / 0.9578 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.528e-06/0.6949, allocations: 3.938 kB / 0.9578 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.851e-05/0.6949, allocations: 316.2 kB / 0.9581 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.971e-05/0.695, allocations: 24.02 kB / 0.9582 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.619e-05/0.695, allocations: 20.45 kB / 0.9582 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.892e-05/0.6951, allocations: 21.78 kB / 0.9582 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.82e-07/0.6951, allocations: 0 / 0.9582 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001365/0.6952, allocations: 98.31 kB / 0.9583 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.6953, allocations: 9.625 kB / 0.9583 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.6953, allocations: 0 / 0.9583 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.6953, allocations: 1.281 kB / 0.9583 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.6954, allocations: 21.3 kB / 0.9583 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.6954, allocations: 4.984 kB / 0.9583 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.472e-05/0.6954, allocations: 4 kB / 0.9583 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.277e-06/0.6955, allocations: 3.094 kB / 0.9583 GB, free: 4.09 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.336e-05/0.6955, allocations: 116.8 kB / 0.9584 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.382e-05/0.6955, allocations: 6.703 kB / 0.9584 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001846/0.6957, allocations: 103.9 kB / 0.9585 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.6957, allocations: 0 / 0.9585 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.6958, allocations: 4.938 kB / 0.9586 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.6958, allocations: 3.953 kB / 0.9586 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003409/0.6961, allocations: 352.8 kB / 0.9589 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.6961, allocations: 0 / 0.9589 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.6962, allocations: 22.14 kB / 0.9589 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.6962, allocations: 0 / 0.9589 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.278e-06/0.6963, allocations: 5.812 kB / 0.9589 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.6963, allocations: 7.953 kB / 0.9589 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.6963, allocations: 1.812 kB / 0.9589 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002119/0.6965, allocations: 226.1 kB / 0.9591 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.166e-05/0.6965, allocations: 83.48 kB / 0.9592 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.826e-05/0.6965, allocations: 5.281 kB / 0.9592 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.449e-05/0.6966, allocations: 1.406 kB / 0.9592 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.317e-05/0.6967, allocations: 15.69 kB / 0.9592 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.176e-06/0.6967, allocations: 6.594 kB / 0.9593 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.296e-05/0.6967, allocations: 80.81 kB / 0.9593 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6967, allocations: 3.25 kB / 0.9593 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002932/0.697, allocations: 34.22 kB / 0.9594 GB, free: 3.125 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.0004519/0.6975, allocations: 0.7749 MB / 0.9601 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001399/0.6976, allocations: 57.44 kB / 0.9602 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.6976, allocations: 1.156 kB / 0.9602 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.181e-05/0.6977, allocations: 36.7 kB / 0.9602 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002466/0.6979, allocations: 16.52 kB / 0.9602 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008587/0.6988, allocations: 0.6514 MB / 0.9609 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001046/0.6989, allocations: 0.684 MB / 0.9615 GB, free: 1.102 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.751e-05/0.699, allocations: 9.141 kB / 0.9615 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.606e-05/0.699, allocations: 25.61 kB / 0.9616 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of SimCode: time 3.81e-07/0.699, allocations: 0 / 0.9616 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0112/0.7102, allocations: 1.816 MB / 0.9633 GB, free: 292 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001294/0.7104, allocations: 236.3 kB / 0.9636 GB, free: 40 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.72/2.43, allocations: 4 kB / 0.9636 GB, free: 36 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