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: translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 103.3 kB / 16.41 MB, free: 6.5 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.001133/0.001133, allocations: 185.6 kB / 17.34 MB, free: 5.766 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.257/1.257, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002135/0.002135, allocations: 291.7 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9057/0.9057, allocations: 169.3 MB / 0.499 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 95.86 kB / 0.6821 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.417/0.4189, allocations: 86.97 MB / 0.767 GB, free: 3.914 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002019/0.4209, allocations: 1.253 MB / 0.7683 GB, free: 2.652 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009229/0.4219, allocations: 0.5856 MB / 0.7688 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.382e-05/0.4219, allocations: 3.938 kB / 0.7688 GB, free: 2.062 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.783e-05/0.4219, allocations: 0 / 0.7688 GB, free: 2.062 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.05e-05/0.422, allocations: 3.938 kB / 0.7688 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004618/0.4224, allocations: 143.4 kB / 0.769 GB, free: 1.918 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 4.827e-05/0.4225, allocations: 15.86 kB / 0.769 GB, free: 1.902 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.82e-05/0.4225, allocations: 0 / 0.769 GB, free: 1.902 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 2.459e-05/0.4226, allocations: 4 kB / 0.769 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.665e-05/0.4226, allocations: 8 kB / 0.769 GB, free: 1.891 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 9.938e-06/0.4226, allocations: 0 / 0.769 GB, free: 1.891 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004585/0.4231, allocations: 339.4 kB / 0.7693 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.776e-06/0.4231, allocations: 3.938 kB / 0.7693 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.936e-05/0.4231, allocations: 7.938 kB / 0.7693 GB, free: 1.547 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000218/0.4234, allocations: 135.5 kB / 0.7695 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.4234, allocations: 0 / 0.7695 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of FrontEnd: time 4.318e-06/0.4234, allocations: 4 kB / 0.7695 GB, free: 1.414 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.4234, allocations: 3.938 kB / 0.7695 GB, free: 1.41 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.0003467/0.4237, allocations: 350 kB / 0.7698 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.4238, allocations: 8.031 kB / 0.7698 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.945e-05/0.4238, allocations: 0.9375 kB / 0.7698 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.819e-05/0.4239, allocations: 176.2 kB / 0.77 GB, free: 0.8008 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.4239, allocations: 384 / 0.77 GB, free: 0.8008 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.031e-05/0.424, allocations: 384 / 0.77 GB, free: 0.8008 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.797e-05/0.424, allocations: 34.27 kB / 0.77 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.4241, allocations: 192 / 0.77 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.4241, allocations: 11.91 kB / 0.77 GB, free: 0.75 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.4241, allocations: 0 / 0.77 GB, free: 0.75 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.331e-05/0.4241, allocations: 4 kB / 0.77 GB, free: 0.7461 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001351/0.4242, allocations: 149.7 kB / 0.7702 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 5.519e-05/0.4243, allocations: 30.5 kB / 0.7702 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.074e-05/0.4243, allocations: 12.92 kB / 0.7702 GB, free: 0.4961 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.123e-05/0.4244, allocations: 7.984 kB / 0.7702 GB, free: 500 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.221e-05/0.4244, allocations: 30.56 kB / 0.7703 GB, free: 460 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 9.01e-07/0.4244, allocations: 0 / 0.7703 GB, free: 460 kB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0001216/0.4245, allocations: 41.64 kB / 0.7703 GB, free: 412 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.084e-05/0.4246, allocations: 59.34 kB / 0.7704 GB, free: 340 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.319e-05/0.4246, allocations: 93.84 kB / 0.7704 GB, free: 236 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.4247, allocations: 25.95 kB / 0.7705 GB, free: 204 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 2.616e-05/0.4247, allocations: 88.14 kB / 0.7706 GB, free: 112 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.394e-05/0.4247, allocations: 11.84 kB / 0.7706 GB, free: 100 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.491e-05/0.4247, allocations: 9.719 kB / 0.7706 GB, free: 84 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.4249, allocations: 314.8 kB / 0.7709 GB, free: 15.77 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.12e-05/0.4249, allocations: 0 / 0.7709 GB, free: 15.77 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.898e-06/0.4249, allocations: 11.92 kB / 0.7709 GB, free: 15.75 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.604e-05/0.4249, allocations: 12.86 kB / 0.7709 GB, free: 15.74 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.4249, allocations: 4.062 kB / 0.7709 GB, free: 15.73 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.52e-05/0.425, allocations: 41.64 kB / 0.7709 GB, free: 15.69 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.425, allocations: 4 kB / 0.7709 GB, free: 15.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.425, allocations: 11.88 kB / 0.771 GB, free: 15.67 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.425, allocations: 0 / 0.771 GB, free: 15.67 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.4252, allocations: 11.98 kB / 0.771 GB, free: 15.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003133/0.4255, allocations: 0.5782 MB / 0.7715 GB, free: 15.06 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.715e-05/0.4255, allocations: 4.125 kB / 0.7715 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-06/0.4255, allocations: 0 / 0.7715 GB, free: 15.05 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 6.693e-05/0.4256, allocations: 112.2 kB / 0.7716 GB, free: 14.94 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.857e-06/0.4256, allocations: 7.984 kB / 0.7717 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.219e-05/0.4257, allocations: 44.77 kB / 0.7717 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.4257, allocations: 0 / 0.7717 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.4257, allocations: 0 / 0.7717 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.4257, allocations: 4.031 kB / 0.7717 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.269e-05/0.4258, allocations: 161.5 kB / 0.7719 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-06/0.4258, allocations: 0 / 0.7719 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.068e-05/0.4259, allocations: 11.98 kB / 0.7719 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.4259, allocations: 0 / 0.7719 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.56e-06/0.4259, allocations: 0 / 0.7719 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002598/0.4262, allocations: 0.5782 MB / 0.7724 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4262, allocations: 3.938 kB / 0.7724 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.326e-05/0.4263, allocations: 73.19 kB / 0.7725 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.112e-05/0.4263, allocations: 77.11 kB / 0.7726 GB, free: 13.87 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.017e-05/0.4263, allocations: 0 / 0.7726 GB, free: 13.87 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.309e-05/0.4264, allocations: 0 / 0.7726 GB, free: 13.87 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.462e-05/0.4264, allocations: 7.938 kB / 0.7726 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-06/0.4264, allocations: 0 / 0.7726 GB, free: 13.86 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.128e-05/0.4264, allocations: 83.31 kB / 0.7727 GB, free: 13.78 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4264, allocations: 0 / 0.7727 GB, free: 13.78 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000192/0.4266, allocations: 11.98 kB / 0.7727 GB, free: 13.77 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.0001564/0.4268, allocations: 107.2 kB / 0.7728 GB, free: 13.65 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000149/0.4269, allocations: 19.92 kB / 0.7728 GB, free: 13.63 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.4269, allocations: 0 / 0.7728 GB, free: 13.63 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 8.568e-05/0.427, allocations: 23.92 kB / 0.7728 GB, free: 13.61 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001398/0.4272, allocations: 8.156 kB / 0.7728 GB, free: 13.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000312/0.4275, allocations: 131.7 kB / 0.773 GB, free: 13.44 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002134/0.4277, allocations: 0.6805 MB / 0.7736 GB, free: 12.73 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.247e-05/0.4278, allocations: 7.438 kB / 0.7736 GB, free: 12.72 MB / 0.545 GB Notification: Performance of SimCode: time 2.31e-07/0.4278, allocations: 0 / 0.7736 GB, free: 12.72 MB / 0.545 GB Notification: Performance of Templates: time 0.002396/0.4302, allocations: 0.702 MB / 0.7743 GB, free: 12.02 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)