Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.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.001135/0.001135, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 198.9 kB / 16.54 MB, free: 6.672 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.419/1.419, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.802/2.802, allocations: 472.6 MB / 0.7451 GB, free: 4.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 59.03 kB / 0.912 GB, free: 33.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3076/0.3089, allocations: 159.9 MB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002323/0.3112, allocations: 1.255 MB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001015/0.3123, allocations: 0.586 MB / 1.07 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.279e-05/0.3123, allocations: 0 / 1.07 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.597e-05/0.3123, allocations: 3.984 kB / 1.07 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.361e-05/0.3124, allocations: 3.938 kB / 1.07 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004846/0.3129, allocations: 139.4 kB / 1.07 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.326e-05/0.3129, allocations: 12 kB / 1.07 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.439e-05/0.313, allocations: 8 kB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.814e-05/0.313, allocations: 0 / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.113e-05/0.3131, allocations: 11.88 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.087e-05/0.3131, allocations: 0 / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005167/0.3136, allocations: 339.4 kB / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.089e-05/0.3136, allocations: 3.984 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.017e-05/0.3136, allocations: 0 / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002602/0.3139, allocations: 143.9 kB / 1.071 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3139, allocations: 0 / 1.071 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.532e-06/0.3139, allocations: 0 / 1.071 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.3139, allocations: 4 kB / 1.071 GB, free: 7.969 MB / 0.8262 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.0004181/0.3144, allocations: 351.5 kB / 1.071 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.3144, allocations: 12.03 kB / 1.071 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.927e-05/0.3144, allocations: 0.9375 kB / 1.071 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001252/0.3146, allocations: 168.2 kB / 1.071 GB, free: 7.359 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.3146, allocations: 384 / 1.071 GB, free: 7.359 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.007e-05/0.3146, allocations: 4.375 kB / 1.071 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.911e-05/0.3147, allocations: 34.25 kB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.3147, allocations: 4.188 kB / 1.071 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.3147, allocations: 11.88 kB / 1.071 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.3147, allocations: 0 / 1.071 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.393e-05/0.3148, allocations: 3.938 kB / 1.071 GB, free: 7.297 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001536/0.3149, allocations: 161.6 kB / 1.071 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.697e-05/0.315, allocations: 22.55 kB / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.148e-05/0.315, allocations: 12.92 kB / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.315, allocations: 4 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.3151, allocations: 34.56 kB / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.3151, allocations: 4 kB / 1.071 GB, free: 6.992 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0001328/0.3152, allocations: 41.62 kB / 1.071 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.203e-05/0.3152, allocations: 51.41 kB / 1.071 GB, free: 6.883 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.037e-05/0.3153, allocations: 97.86 kB / 1.072 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.222e-05/0.3153, allocations: 25.7 kB / 1.072 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.144e-05/0.3154, allocations: 84.39 kB / 1.072 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.244e-05/0.3154, allocations: 7.844 kB / 1.072 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.087e-05/0.3154, allocations: 17.7 kB / 1.072 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001454/0.3156, allocations: 314.8 kB / 1.072 GB, free: 6.312 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.413e-05/0.3156, allocations: 4 kB / 1.072 GB, free: 6.309 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.186e-06/0.3156, allocations: 0 / 1.072 GB, free: 6.309 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.158e-05/0.3157, allocations: 12.86 kB / 1.072 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.3157, allocations: 0 / 1.072 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.295e-05/0.3157, allocations: 49.75 kB / 1.072 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.3158, allocations: 5.406 kB / 1.072 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.3158, allocations: 3.938 kB / 1.072 GB, free: 6.23 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.3158, allocations: 0 / 1.072 GB, free: 6.23 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001549/0.3159, allocations: 11.94 kB / 1.072 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00036/0.3163, allocations: 0.5821 MB / 1.073 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.743e-05/0.3163, allocations: 128 / 1.073 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.05e-06/0.3163, allocations: 4 kB / 1.073 GB, free: 5.609 MB / 0.8262 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.011e-05/0.3164, allocations: 117.8 kB / 1.073 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.324e-06/0.3164, allocations: 0 / 1.073 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001037/0.3166, allocations: 52.73 kB / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.3166, allocations: 0 / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3166, allocations: 0 / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3166, allocations: 4 kB / 1.073 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001019/0.3167, allocations: 149.6 kB / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3167, allocations: 7.938 kB / 1.073 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.613e-05/0.3168, allocations: 8 kB / 1.073 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3168, allocations: 0 / 1.073 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.3168, allocations: 4 kB / 1.073 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003198/0.3171, allocations: 0.5898 MB / 1.074 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.3171, allocations: 3.938 kB / 1.074 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.823e-05/0.3172, allocations: 65.2 kB / 1.074 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.279e-05/0.3173, allocations: 77.11 kB / 1.074 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.273e-05/0.3173, allocations: 7.938 kB / 1.074 GB, free: 4.406 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.346e-05/0.3173, allocations: 3.984 kB / 1.074 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.318e-05/0.3173, allocations: 3.938 kB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/0.3173, allocations: 0 / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.198e-05/0.3174, allocations: 79.28 kB / 1.074 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3174, allocations: 4.125 kB / 1.074 GB, free: 4.316 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000197/0.3176, allocations: 4 kB / 1.074 GB, free: 4.312 MB / 0.8262 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.0001648/0.3177, allocations: 115.7 kB / 1.074 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001748/0.3179, allocations: 23.98 kB / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.3179, allocations: 0 / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.055e-05/0.318, allocations: 15.92 kB / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001458/0.3182, allocations: 4 kB / 1.074 GB, free: 4.145 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003695/0.3186, allocations: 106.1 kB / 1.074 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002598/0.3188, allocations: 0.6768 MB / 1.075 GB, free: 3.312 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.561e-05/0.3189, allocations: 0 / 1.075 GB, free: 3.312 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.593e-05/0.3189, allocations: 7.438 kB / 1.075 GB, free: 3.305 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.3189, allocations: 0 / 1.075 GB, free: 3.305 MB / 0.8262 GB Notification: Performance of Templates: time 0.002484/0.3214, allocations: 459.8 kB / 1.075 GB, free: 2.891 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & ./Buildings_3.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)