Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.0007878/0.0007877, allocations: 84.38 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.0008161/0.0008161, 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.308/1.308, allocations: 223.3 MB / 240 MB, free: 5.379 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.377/2.377, allocations: 390.4 MB / 0.6655 GB, free: 2.895 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003779/0.0003781, allocations: 8 kB / 0.8149 GB, free: 14.1 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6643/0.6647, allocations: 142.3 MB / 0.9539 GB, free: 8.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.001093/0.6658, allocations: 0.9957 MB / 0.9548 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007967/0.6666, allocations: 0.56 MB / 0.9554 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.337e-05/0.6666, allocations: 1.156 kB / 0.9554 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.376e-05/0.6667, allocations: 0 / 0.9554 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.373e-05/0.6667, allocations: 9.031 kB / 0.9554 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004332/0.6671, allocations: 119.1 kB / 0.9555 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.742e-05/0.6672, allocations: 23.55 kB / 0.9555 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.552e-05/0.6673, allocations: 2.125 kB / 0.9555 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.095e-05/0.6673, allocations: 7.891 kB / 0.9555 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.511e-05/0.6674, allocations: 11.55 kB / 0.9555 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.35e-05/0.6674, allocations: 1.125 kB / 0.9555 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004471/0.6678, allocations: 339.6 kB / 0.9559 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.007e-05/0.6679, allocations: 5.172 kB / 0.9559 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.187e-05/0.6679, allocations: 28.05 kB / 0.9559 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001694/0.6681, allocations: 100.3 kB / 0.956 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.6681, allocations: 1.219 kB / 0.956 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.024e-06/0.6681, allocations: 0 / 0.956 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.727e-06/0.6681, allocations: 0 / 0.956 GB, free: 6.539 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.0003183/0.6684, allocations: 352.9 kB / 0.9563 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.6685, allocations: 8.594 kB / 0.9563 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.856e-05/0.6685, allocations: 35.5 kB / 0.9564 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.527e-05/0.6685, allocations: 5.859 kB / 0.9564 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.921e-05/0.6686, allocations: 164.1 kB / 0.9565 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.6686, allocations: 9.016 kB / 0.9565 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.026e-05/0.6687, allocations: 2.031 kB / 0.9565 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.993e-05/0.6688, allocations: 40.08 kB / 0.9566 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.004e-06/0.6688, allocations: 0 / 0.9566 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.6688, allocations: 5.203 kB / 0.9566 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.341e-06/0.6688, allocations: 4 kB / 0.9566 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.33e-05/0.6688, allocations: 14.86 kB / 0.9566 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001368/0.669, allocations: 154.4 kB / 0.9568 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001731/0.6692, allocations: 55.23 kB / 0.9568 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.072e-05/0.6692, allocations: 19.91 kB / 0.9568 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.6692, allocations: 1.031 kB / 0.9568 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.544e-05/0.6693, allocations: 31.59 kB / 0.9569 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.6693, allocations: 9.219 kB / 0.9569 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005645/0.6698, allocations: 306.5 kB / 0.9572 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.282e-05/0.6699, allocations: 60.48 kB / 0.9572 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.651e-05/0.6699, allocations: 101.8 kB / 0.9573 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.955e-06/0.6699, allocations: 25.7 kB / 0.9573 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.943e-05/0.67, allocations: 81.52 kB / 0.9574 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.473e-05/0.67, allocations: 18.62 kB / 0.9574 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-06/0.67, allocations: 0 / 0.9574 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.25e-05/0.6701, allocations: 320.3 kB / 0.9577 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.432e-05/0.6701, allocations: 5.656 kB / 0.9577 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.012e-05/0.6701, allocations: 10.09 kB / 0.9578 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.111e-05/0.6702, allocations: 20.22 kB / 0.9578 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.41e-07/0.6702, allocations: 0 / 0.9578 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.31e-05/0.6703, allocations: 71.61 kB / 0.9578 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.6703, allocations: 4.969 kB / 0.9578 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.6703, allocations: 1.375 kB / 0.9578 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.6703, allocations: 0 / 0.9578 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.429e-05/0.6704, allocations: 13.48 kB / 0.9579 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.952e-06/0.6704, allocations: 1.469 kB / 0.9579 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.787e-05/0.6704, allocations: 3.953 kB / 0.9579 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-06/0.6704, allocations: 1.469 kB / 0.9579 GB, free: 4.547 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 5.065e-05/0.6705, allocations: 116.4 kB / 0.958 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.178e-06/0.6705, allocations: 5.25 kB / 0.958 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001311/0.6706, allocations: 70.86 kB / 0.9581 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.6706, allocations: 0.6562 kB / 0.9581 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.6706, allocations: 1.312 kB / 0.9581 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.6706, allocations: 0 / 0.9581 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002472/0.6709, allocations: 315.1 kB / 0.9584 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.6709, allocations: 5.219 kB / 0.9584 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.849e-05/0.671, allocations: 14.08 kB / 0.9584 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.671, allocations: 0.9688 kB / 0.9584 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-06/0.671, allocations: 1.25 kB / 0.9584 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.671, allocations: 1.062 kB / 0.9584 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.671, allocations: 8.078 kB / 0.9584 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001405/0.6712, allocations: 181.3 kB / 0.9586 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.553e-05/0.6712, allocations: 87.34 kB / 0.9586 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.456e-05/0.6712, allocations: 8.875 kB / 0.9586 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.998e-05/0.6713, allocations: 4 kB / 0.9587 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.35e-05/0.6713, allocations: 9.938 kB / 0.9587 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.6713, allocations: 1.906 kB / 0.9587 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.045e-05/0.6714, allocations: 77.12 kB / 0.9587 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6714, allocations: 0 / 0.9587 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002539/0.6716, allocations: 22.22 kB / 0.9588 GB, free: 3.641 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.0003318/0.672, allocations: 0.7418 MB / 0.9595 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.071e-05/0.6721, allocations: 33.09 kB / 0.9595 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.6721, allocations: 0 / 0.9595 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.645e-05/0.6721, allocations: 20.19 kB / 0.9595 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00022/0.6723, allocations: 12.5 kB / 0.9595 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006374/0.673, allocations: 489.7 kB / 0.96 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.512e-05/0.6731, allocations: 0.6786 MB / 0.9607 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.277e-05/0.6731, allocations: 8.109 kB / 0.9607 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.828e-05/0.6731, allocations: 13.91 kB / 0.9607 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.6732, allocations: 1.344 kB / 0.9607 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01096/0.6841, allocations: 1.405 MB / 0.9621 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001263/0.6843, allocations: 245.4 kB / 0.9623 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.653/2.337, allocations: 4 kB / 0.9623 GB, free: 0.8867 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat does not exist to compare? outputFormat=mat