Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",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.008417/0.008417, allocations: 101 kB / 15.73 MB, free: 6.059 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.002556/0.002556, allocations: 197.4 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.495/1.495, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002313/0.002313, allocations: 285.5 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9045/0.9045, allocations: 169.2 MB / 0.4983 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002462/0.002463, allocations: 99.84 kB / 0.681 GB, free: 7.461 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3623/0.3647, allocations: 86.98 MB / 0.7659 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002165/0.3669, allocations: 1.245 MB / 0.7671 GB, free: 2.582 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001002/0.368, allocations: 0.5895 MB / 0.7677 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.052e-05/0.368, allocations: 0 / 0.7677 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.594e-05/0.368, allocations: 0 / 0.7677 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.019e-05/0.3681, allocations: 7.938 kB / 0.7677 GB, free: 1.984 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004603/0.3685, allocations: 135.4 kB / 0.7678 GB, free: 1.852 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 4.61e-05/0.3686, allocations: 15.88 kB / 0.7679 GB, free: 1.836 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.679e-05/0.3686, allocations: 0 / 0.7679 GB, free: 1.836 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.852e-05/0.3687, allocations: 7.969 kB / 0.7679 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.526e-05/0.3687, allocations: 4 kB / 0.7679 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 8.627e-06/0.3687, allocations: 0 / 0.7679 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005585/0.3693, allocations: 339.4 kB / 0.7682 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.939e-06/0.3693, allocations: 11.92 kB / 0.7682 GB, free: 1.48 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.02e-05/0.3693, allocations: 7.938 kB / 0.7682 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002265/0.3696, allocations: 140.7 kB / 0.7683 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.3696, allocations: 0 / 0.7683 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.601e-05/0.3696, allocations: 0 / 0.7683 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.128e-06/0.3696, allocations: 3.938 kB / 0.7683 GB, free: 1.34 MB / 0.5294 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.0003868/0.37, allocations: 355.1 kB / 0.7687 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.37, allocations: 12.03 kB / 0.7687 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.296e-05/0.3701, allocations: 34.69 kB / 0.7687 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.89e-05/0.3701, allocations: 8.922 kB / 0.7687 GB, free: 0.8789 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.3702, allocations: 160.4 kB / 0.7689 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.166e-06/0.3703, allocations: 4.375 kB / 0.7689 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.102e-05/0.3703, allocations: 4.375 kB / 0.7689 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.691e-05/0.3704, allocations: 30.27 kB / 0.7689 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.3704, allocations: 3.938 kB / 0.7689 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.543e-06/0.3704, allocations: 0 / 0.7689 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.3704, allocations: 0 / 0.7689 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.689e-05/0.3704, allocations: 7.984 kB / 0.7689 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001554/0.3706, allocations: 149.7 kB / 0.7691 GB, free: 444 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 5.118e-05/0.3706, allocations: 26.55 kB / 0.7691 GB, free: 408 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.523e-05/0.3707, allocations: 12.84 kB / 0.7691 GB, free: 392 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.412e-05/0.3707, allocations: 0 / 0.7691 GB, free: 392 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.3707, allocations: 34.62 kB / 0.7691 GB, free: 348 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 7.81e-07/0.3707, allocations: 0 / 0.7691 GB, free: 348 kB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0001271/0.3709, allocations: 49.58 kB / 0.7692 GB, free: 292 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.574e-05/0.3709, allocations: 51.41 kB / 0.7692 GB, free: 228 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.065e-05/0.371, allocations: 97.84 kB / 0.7693 GB, free: 120 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.371, allocations: 25.7 kB / 0.7694 GB, free: 88 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.496e-05/0.371, allocations: 80.14 kB / 0.7694 GB, free: 4 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.909e-05/0.3711, allocations: 3.953 kB / 0.7694 GB, free: 0 / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.82e-05/0.3711, allocations: 17.77 kB / 0.7695 GB, free: 15.97 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.3712, allocations: 311.1 kB / 0.7698 GB, free: 15.66 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.292e-05/0.3713, allocations: 8 kB / 0.7698 GB, free: 15.65 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.094e-06/0.3713, allocations: 0 / 0.7698 GB, free: 15.65 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.183e-05/0.3713, allocations: 20.8 kB / 0.7698 GB, free: 15.63 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3713, allocations: 3.938 kB / 0.7698 GB, free: 15.63 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.255e-05/0.3714, allocations: 37.64 kB / 0.7698 GB, free: 15.59 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.3714, allocations: 7.938 kB / 0.7698 GB, free: 15.58 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.3714, allocations: 0 / 0.7698 GB, free: 15.58 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.3714, allocations: 0 / 0.7698 GB, free: 15.58 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.3716, allocations: 16.08 kB / 0.7698 GB, free: 15.56 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003961/0.372, allocations: 0.586 MB / 0.7704 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.162e-05/0.372, allocations: 4.031 kB / 0.7704 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.669e-06/0.372, allocations: 0 / 0.7704 GB, free: 14.95 MB / 0.545 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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 8.653e-05/0.3721, allocations: 116.1 kB / 0.7705 GB, free: 14.83 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.193e-06/0.3721, allocations: 96 / 0.7705 GB, free: 14.83 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.801e-05/0.3722, allocations: 52.75 kB / 0.7706 GB, free: 14.77 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.3722, allocations: 4 kB / 0.7706 GB, free: 14.77 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.3722, allocations: 0 / 0.7706 GB, free: 14.77 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.3723, allocations: 0 / 0.7706 GB, free: 14.77 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001165/0.3724, allocations: 157.6 kB / 0.7707 GB, free: 14.57 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.3724, allocations: 0 / 0.7707 GB, free: 14.57 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.119e-05/0.3725, allocations: 11.98 kB / 0.7707 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3725, allocations: 0 / 0.7707 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.3725, allocations: 4 kB / 0.7708 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003467/0.3728, allocations: 0.5822 MB / 0.7713 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.3728, allocations: 7.875 kB / 0.7713 GB, free: 13.94 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.232e-05/0.3729, allocations: 65.11 kB / 0.7714 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.782e-05/0.373, allocations: 85.09 kB / 0.7715 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.789e-06/0.373, allocations: 128 / 0.7715 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.58e-05/0.373, allocations: 4 kB / 0.7715 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.468e-05/0.373, allocations: 3.938 kB / 0.7715 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-06/0.373, allocations: 0 / 0.7715 GB, free: 13.75 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.029e-05/0.3731, allocations: 79.28 kB / 0.7716 GB, free: 13.67 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3731, allocations: 0 / 0.7716 GB, free: 13.67 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002566/0.3733, allocations: 15.94 kB / 0.7716 GB, free: 13.65 MB / 0.545 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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004293/0.3738, allocations: 0.6191 MB / 0.7722 GB, free: 13 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001479/0.3739, allocations: 15.98 kB / 0.7722 GB, free: 12.99 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.3739, allocations: 0 / 0.7722 GB, free: 12.99 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 7.861e-05/0.374, allocations: 23.92 kB / 0.7722 GB, free: 12.96 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000161/0.3742, allocations: 3.938 kB / 0.7722 GB, free: 12.96 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00042/0.3746, allocations: 138.5 kB / 0.7723 GB, free: 12.79 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002843/0.3749, allocations: 0.6805 MB / 0.773 GB, free: 12.08 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.231e-05/0.3749, allocations: 0 / 0.773 GB, free: 12.08 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.124e-05/0.375, allocations: 11.42 kB / 0.773 GB, free: 12.07 MB / 0.545 GB Notification: Performance of SimCode: time 2.71e-07/0.375, allocations: 3.938 kB / 0.773 GB, free: 12.06 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07936/0.4543, allocations: 1.407 MB / 0.7744 GB, free: 10.89 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/13.07, allocations: 8.25 kB / 0.7744 GB, free: 10.88 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)