Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_DerivativeCheck2,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.001212/0.001212, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001379/0.001379, allocations: 177.3 kB / 15.94 MB, free: 228 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.328/1.328, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.492/2.492, allocations: 409.2 MB / 0.6838 GB, free: 1.062 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003505/0.0003505, allocations: 12 kB / 0.8375 GB, free: 6.602 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8094/0.8098, allocations: 146.8 MB / 0.9809 GB, free: 6.328 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001539/0.8114, allocations: 1.172 MB / 0.982 GB, free: 5.148 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0006001/0.812, allocations: 335.2 kB / 0.9823 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.571e-05/0.812, allocations: 0 / 0.9823 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.925e-05/0.8121, allocations: 3.938 kB / 0.9823 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.675e-05/0.8121, allocations: 7.984 kB / 0.9824 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003572/0.8125, allocations: 75.77 kB / 0.9824 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.842e-05/0.8125, allocations: 31.91 kB / 0.9825 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.984e-05/0.8126, allocations: 8 kB / 0.9825 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 5.824e-05/0.8127, allocations: 23.97 kB / 0.9825 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.043e-05/0.8127, allocations: 27.84 kB / 0.9825 GB, free: 4.641 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.656e-05/0.8128, allocations: 4 kB / 0.9825 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000279/0.813, allocations: 183.7 kB / 0.9827 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.53e-05/0.8131, allocations: 7.938 kB / 0.9827 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.227e-05/0.8131, allocations: 33.7 kB / 0.9827 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001483/0.8133, allocations: 78.06 kB / 0.9828 GB, free: 4.336 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.8133, allocations: 4 kB / 0.9828 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.443e-06/0.8133, allocations: 0 / 0.9828 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.8133, allocations: 0 / 0.9828 GB, free: 4.332 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005552/0.8138, allocations: 371.2 kB / 0.9832 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.8139, allocations: 12.02 kB / 0.9832 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.504e-05/0.8139, allocations: 42.5 kB / 0.9832 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.085e-05/0.814, allocations: 7.906 kB / 0.9832 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.8141, allocations: 163 kB / 0.9834 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.02e-05/0.8142, allocations: 8 kB / 0.9834 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.102e-05/0.8142, allocations: 4 kB / 0.9834 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002505/0.8144, allocations: 89.59 kB / 0.9835 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.8145, allocations: 0 / 0.9835 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.8145, allocations: 4 kB / 0.9835 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.8145, allocations: 4 kB / 0.9835 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002481/0.8147, allocations: 63.89 kB / 0.9835 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005865/0.8153, allocations: 316.7 kB / 0.9838 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002912/0.8156, allocations: 98.41 kB / 0.9839 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.8157, allocations: 160 / 0.9839 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.311e-05/0.8157, allocations: 42.53 kB / 0.984 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 9.02e-07/0.8157, allocations: 0 / 0.984 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.001639/0.8174, allocations: 0.6656 MB / 0.9846 GB, free: 2.203 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.534e-05/0.8174, allocations: 51.41 kB / 0.9847 GB, free: 2.141 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.882e-05/0.8175, allocations: 101.8 kB / 0.9848 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.8175, allocations: 29.8 kB / 0.9848 GB, free: 1.996 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.697e-05/0.8176, allocations: 99.92 kB / 0.9849 GB, free: 1.895 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.613e-05/0.8177, allocations: 39.44 kB / 0.9849 GB, free: 1.855 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.946e-06/0.8177, allocations: 8 kB / 0.9849 GB, free: 1.848 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001572/0.8178, allocations: 314.8 kB / 0.9852 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001269/0.818, allocations: 35.97 kB / 0.9853 GB, free: 1.496 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.8181, allocations: 46.42 kB / 0.9853 GB, free: 1.453 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001249/0.8182, allocations: 40.05 kB / 0.9854 GB, free: 1.414 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.8182, allocations: 4 kB / 0.9854 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00032/0.8186, allocations: 121.6 kB / 0.9855 GB, free: 1.285 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.8186, allocations: 8 kB / 0.9855 GB, free: 1.277 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.8186, allocations: 0 / 0.9855 GB, free: 1.277 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.8186, allocations: 3.984 kB / 0.9855 GB, free: 1.273 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001423/0.8188, allocations: 27.98 kB / 0.9855 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.8188, allocations: 0 / 0.9855 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.416e-05/0.8188, allocations: 8 kB / 0.9855 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.689e-06/0.8189, allocations: 4 kB / 0.9855 GB, free: 1.234 MB / 0.7325 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 9.309e-05/0.819, allocations: 129.7 kB / 0.9857 GB, free: 1.098 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.803e-05/0.819, allocations: 7.906 kB / 0.9857 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000352/0.8193, allocations: 125.6 kB / 0.9858 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.8194, allocations: 0 / 0.9858 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.8194, allocations: 0 / 0.9858 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.8194, allocations: 0 / 0.9858 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005366/0.8199, allocations: 398.4 kB / 0.9862 GB, free: 0.5156 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.8199, allocations: 0 / 0.9862 GB, free: 0.5156 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000137/0.8201, allocations: 23.98 kB / 0.9862 GB, free: 0.4922 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.8201, allocations: 4 kB / 0.9862 GB, free: 500 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.8201, allocations: 4 kB / 0.9862 GB, free: 496 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.8201, allocations: 7.984 kB / 0.9862 GB, free: 488 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.8201, allocations: 0 / 0.9862 GB, free: 488 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004868/0.8206, allocations: 275.2 kB / 0.9865 GB, free: 196 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.116e-05/0.8207, allocations: 77.11 kB / 0.9865 GB, free: 100 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.96e-05/0.8207, allocations: 4.031 kB / 0.9865 GB, free: 96 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001152/0.8208, allocations: 7.938 kB / 0.9865 GB, free: 88 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.224e-05/0.8208, allocations: 11.98 kB / 0.9866 GB, free: 76 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.8208, allocations: 4 kB / 0.9866 GB, free: 72 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.411e-05/0.8209, allocations: 83.27 kB / 0.9866 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8209, allocations: 0 / 0.9866 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002848/0.8212, allocations: 44 kB / 0.9867 GB, free: 15.95 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_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 (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.00087/0.8221, allocations: 0.8385 MB / 0.9875 GB, free: 15.08 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003133/0.8224, allocations: 79.95 kB / 0.9876 GB, free: 15 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.8224, allocations: 3.938 kB / 0.9876 GB, free: 15 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001366/0.8226, allocations: 56.08 kB / 0.9876 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002028/0.8228, allocations: 9.422 kB / 0.9876 GB, free: 14.94 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001316/0.8241, allocations: 0.7544 MB / 0.9884 GB, free: 14.13 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002261/0.8243, allocations: 0.6926 MB / 0.9891 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.253e-05/0.8244, allocations: 12.66 kB / 0.9891 GB, free: 13.4 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.156e-05/0.8245, allocations: 19.44 kB / 0.9891 GB, free: 13.38 MB / 0.7481 GB Notification: Performance of SimCode: time 1.543e-06/0.8245, allocations: 4 kB / 0.9891 GB, free: 13.38 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01158/0.836, allocations: 2.059 MB / 0.9911 GB, free: 11.53 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001957/0.8363, allocations: 233.1 kB / 0.9913 GB, free: 11.29 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.671/2.507, allocations: 0 / 0.9913 GB, free: 11.29 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat does not exist to compare? outputFormat=mat