Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.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.InvertingBasicFlowFunction_dp,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",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.0009769/0.000977, 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.0009932/0.0009932, 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.329/1.329, allocations: 223.2 MB / 239.9 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.536/2.536, allocations: 409.2 MB / 0.6838 GB, free: 0.9766 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003526/0.0003526, allocations: 12 kB / 0.8375 GB, free: 6.551 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7211/0.7214, allocations: 146.8 MB / 0.9809 GB, free: 6.289 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.001114/0.7226, allocations: 0.9691 MB / 0.9818 GB, free: 5.309 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0004896/0.7231, allocations: 321.7 kB / 0.9821 GB, free: 4.996 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.403e-05/0.7231, allocations: 3.938 kB / 0.9821 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.265e-05/0.7231, allocations: 0 / 0.9821 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.365e-05/0.7232, allocations: 4 kB / 0.9821 GB, free: 4.988 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002779/0.7235, allocations: 67.78 kB / 0.9822 GB, free: 4.922 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 3.612e-05/0.7235, allocations: 15.91 kB / 0.9822 GB, free: 4.906 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 3.562e-05/0.7235, allocations: 4 kB / 0.9822 GB, free: 4.902 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 1.484e-05/0.7236, allocations: 0 / 0.9822 GB, free: 4.902 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.053e-05/0.7236, allocations: 4 kB / 0.9822 GB, free: 4.898 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 8.927e-06/0.7236, allocations: 3.938 kB / 0.9822 GB, free: 4.895 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002643/0.7239, allocations: 175.8 kB / 0.9824 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.432e-06/0.7239, allocations: 0 / 0.9824 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.436e-05/0.7239, allocations: 33.64 kB / 0.9824 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001032/0.724, allocations: 50.19 kB / 0.9825 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.7241, allocations: 0 / 0.9825 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.473e-06/0.7241, allocations: 4 kB / 0.9825 GB, free: 4.629 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.407e-06/0.7241, allocations: 4 kB / 0.9825 GB, free: 4.625 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002787/0.7243, allocations: 327.3 kB / 0.9828 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.7244, allocations: 12.03 kB / 0.9828 GB, free: 4.246 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.687e-05/0.7244, allocations: 34.56 kB / 0.9828 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.728e-05/0.7244, allocations: 0 / 0.9828 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.476e-05/0.7245, allocations: 159.1 kB / 0.983 GB, free: 4.008 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.7246, allocations: 4 kB / 0.983 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.981e-06/0.7246, allocations: 3.938 kB / 0.983 GB, free: 4 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.443e-05/0.7246, allocations: 37.66 kB / 0.983 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.222e-06/0.7247, allocations: 3.984 kB / 0.983 GB, free: 3.953 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.723e-06/0.7247, allocations: 3.984 kB / 0.983 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.818e-06/0.7247, allocations: 0 / 0.983 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.308e-05/0.7247, allocations: 7.938 kB / 0.983 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001251/0.7248, allocations: 145.7 kB / 0.9832 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 4.641e-05/0.7249, allocations: 30.59 kB / 0.9832 GB, free: 3.711 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.7249, allocations: 4 kB / 0.9832 GB, free: 3.707 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.927e-05/0.7249, allocations: 30.56 kB / 0.9832 GB, free: 3.668 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 8.11e-07/0.7249, allocations: 0 / 0.9832 GB, free: 3.668 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0001183/0.7251, allocations: 45.66 kB / 0.9833 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.862e-05/0.7251, allocations: 55.41 kB / 0.9833 GB, free: 3.551 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.07e-05/0.7252, allocations: 93.84 kB / 0.9834 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.086e-05/0.7252, allocations: 25.7 kB / 0.9835 GB, free: 3.418 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 2.86e-05/0.7252, allocations: 88.38 kB / 0.9835 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.801e-05/0.7252, allocations: 7.906 kB / 0.9835 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-06/0.7252, allocations: 0 / 0.9835 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 8.496e-05/0.7253, allocations: 314.8 kB / 0.9838 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.778e-06/0.7253, allocations: 0 / 0.9838 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.133e-05/0.7254, allocations: 7.938 kB / 0.9839 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.424e-05/0.7254, allocations: 4 kB / 0.9839 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.7254, allocations: 0 / 0.9839 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.828e-05/0.7254, allocations: 45.72 kB / 0.9839 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.7255, allocations: 8 kB / 0.9839 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.7255, allocations: 0 / 0.9839 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.608e-06/0.7255, allocations: 0 / 0.9839 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000169/0.7257, allocations: 15.94 kB / 0.9839 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003399/0.726, allocations: 0.5782 MB / 0.9845 GB, free: 2.316 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.261e-05/0.726, allocations: 11.94 kB / 0.9845 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-06/0.7261, allocations: 96 / 0.9845 GB, free: 2.305 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 6.503e-05/0.7261, allocations: 113.8 kB / 0.9846 GB, free: 2.184 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.092e-05/0.7261, allocations: 3.953 kB / 0.9846 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000111/0.7263, allocations: 48.75 kB / 0.9847 GB, free: 2.129 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.7263, allocations: 4 kB / 0.9847 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.7263, allocations: 0 / 0.9847 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.7263, allocations: 3.938 kB / 0.9847 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.905e-05/0.7264, allocations: 149.7 kB / 0.9848 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.7264, allocations: 8.031 kB / 0.9848 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.469e-05/0.7265, allocations: 4 kB / 0.9848 GB, free: 1.914 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.7265, allocations: 11.94 kB / 0.9848 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.7265, allocations: 0 / 0.9848 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002847/0.7268, allocations: 0.5821 MB / 0.9854 GB, free: 1.297 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.7268, allocations: 3.938 kB / 0.9854 GB, free: 1.293 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.043e-05/0.7269, allocations: 65.22 kB / 0.9855 GB, free: 1.211 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.596e-05/0.7269, allocations: 85.09 kB / 0.9855 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.118e-05/0.7269, allocations: 0 / 0.9855 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.562e-05/0.727, allocations: 4 kB / 0.9855 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.087e-05/0.727, allocations: 0 / 0.9855 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.727, allocations: 0 / 0.9855 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.288e-05/0.727, allocations: 79.28 kB / 0.9856 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.727, allocations: 0 / 0.9856 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0001971/0.7272, allocations: 16.12 kB / 0.9856 GB, free: 1.012 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004026/0.7276, allocations: 0.6123 MB / 0.9862 GB, free: 380 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001554/0.7278, allocations: 19.98 kB / 0.9863 GB, free: 360 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.7278, allocations: 4.094 kB / 0.9863 GB, free: 356 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 8.756e-05/0.7279, allocations: 15.98 kB / 0.9863 GB, free: 340 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001051/0.728, allocations: 2.062 kB / 0.9863 GB, free: 340 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004411/0.7285, allocations: 154.4 kB / 0.9864 GB, free: 140 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002282/0.7287, allocations: 0.677 MB / 0.9871 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 1.789e-05/0.7287, allocations: 4.062 kB / 0.9871 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.579e-05/0.7288, allocations: 7.438 kB / 0.9871 GB, free: 15.42 MB / 0.7481 GB Notification: Performance of SimCode: time 2.3e-07/0.7288, allocations: 0 / 0.9871 GB, free: 15.42 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01248/0.7413, allocations: 1.141 MB / 0.9882 GB, free: 14.53 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002468/0.7416, allocations: 244.8 kB / 0.9884 GB, free: 14.22 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.636/2.378, allocations: 0 / 0.9884 GB, free: 14.22 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp_res.mat does not exist to compare? outputFormat=mat