Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.237/1.237, allocations: 251.5 MB / 266.7 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001003/0.001003, allocations: 168.5 kB / 325.8 MB, free: 2.719 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.351/1.351, allocations: 205 MB / 0.576 GB, free: 20.99 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006626/0.0006626, allocations: 86.59 kB / 0.6797 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002906/0.0002907, allocations: 9.312 kB / 0.7932 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.142, allocations: 105.4 MB / 0.8962 GB, free: 68.13 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.04809/0.1901, allocations: 79.99 MB / 0.9743 GB, free: 3.859 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.02667/0.2168, allocations: 22.78 MB / 0.9965 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002642/0.2195, allocations: 95.31 kB / 0.9966 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of NFTyping.typeComponents: time 0.002391/0.2219, allocations: 1.026 MB / 0.9976 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of NFTyping.typeBindings: time 0.005288/0.2272, allocations: 2.564 MB / 1 GB, free: 9.34 MB / 0.6511 GB Notification: Performance of NFTyping.typeClassSections: time 0.006717/0.2339, allocations: 3.233 MB / 1.003 GB, free: 6.129 MB / 0.6511 GB Notification: Performance of NFFlatten.flatten: time 0.01656/0.2505, allocations: 20.72 MB / 1.024 GB, free: 1.359 MB / 0.6667 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006625/0.2572, allocations: 5.956 MB / 1.029 GB, free: 11.31 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007929/0.2651, allocations: 4.766 MB / 1.034 GB, free: 6.523 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006811/0.272, allocations: 4.855 MB / 1.039 GB, free: 1.648 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.001293/0.2733, allocations: 268 kB / 1.039 GB, free: 1.387 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00481/0.2781, allocations: 1.619 MB / 1.041 GB, free: 15.76 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.001919/0.28, allocations: 1.272 MB / 1.042 GB, free: 14.48 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.004497/0.2845, allocations: 2.872 MB / 1.045 GB, free: 11.6 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.00948/0.294, allocations: 8.671 MB / 1.053 GB, free: 2.902 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.2941, allocations: 4 kB / 1.053 GB, free: 2.898 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.894e-06/0.2941, allocations: 0 / 1.053 GB, free: 2.898 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001647/0.2943, allocations: 0 / 1.053 GB, free: 2.898 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 835 * Number of variables: 835 Notification: Performance of Generate backend data structure: time 0.3207/0.6149, allocations: 5.355 MB / 1.058 GB, free: 149.8 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.615, allocations: 8.625 kB / 1.058 GB, free: 149.8 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001348/0.6164, allocations: 474.1 kB / 1.059 GB, free: 149.8 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003711/0.6201, allocations: 0.8385 MB / 1.06 GB, free: 149.5 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01014/0.6302, allocations: 5.19 MB / 1.065 GB, free: 148.5 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002772/0.6305, allocations: 267.6 kB / 1.065 GB, free: 148.5 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009746/0.6315, allocations: 341.4 kB / 1.065 GB, free: 148.5 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01183/0.6434, allocations: 5.763 MB / 1.071 GB, free: 147.3 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.959e-05/0.6435, allocations: 12.25 kB / 1.071 GB, free: 147.3 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004398/0.6439, allocations: 145.3 kB / 1.071 GB, free: 147.2 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.104e-05/0.644, allocations: 83.25 kB / 1.071 GB, free: 147.2 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009604/0.6536, allocations: 5.583 MB / 1.077 GB, free: 144.8 MB / 0.698 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03157/0.6852, allocations: 24.02 MB / 1.1 GB, free: 124.6 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004018/0.6893, allocations: 2.797 MB / 1.103 GB, free: 121.8 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002512/0.6918, allocations: 1.921 MB / 1.105 GB, free: 119.9 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009772/0.7016, allocations: 7.147 MB / 1.112 GB, free: 112.5 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002432/0.7041, allocations: 1.952 MB / 1.114 GB, free: 110.5 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003438/0.7075, allocations: 1.246 MB / 1.115 GB, free: 109.3 MB / 0.698 GB Notification: Performance of pre-optimization done (n=155): time 5.511e-06/0.7075, allocations: 0 / 1.115 GB, free: 109.3 MB / 0.698 GB Notification: Performance of matching and sorting (n=155): time 0.01735/0.7249, allocations: 7.67 MB / 1.122 GB, free: 101.6 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.981e-05/0.725, allocations: 149.8 kB / 1.122 GB, free: 101.4 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005126/0.7301, allocations: 4.887 MB / 1.127 GB, free: 96.5 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.000314/0.7304, allocations: 70.41 kB / 1.127 GB, free: 96.43 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001629/0.7321, allocations: 2.438 MB / 1.13 GB, free: 93.97 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005781/0.7327, allocations: 0.5512 MB / 1.13 GB, free: 93.43 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002648/0.7329, allocations: 228.2 kB / 1.13 GB, free: 93.2 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 4.196e-05/0.733, allocations: 301.1 kB / 1.131 GB, free: 92.9 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002206/0.7352, allocations: 1.719 MB / 1.132 GB, free: 91.18 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002709/0.7379, allocations: 2.94 MB / 1.135 GB, free: 87.68 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004978/0.7429, allocations: 4.652 MB / 1.14 GB, free: 82.55 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.785e-05/0.743, allocations: 12 kB / 1.14 GB, free: 82.54 MB / 0.698 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.009497/0.7525, allocations: 6.177 MB / 1.146 GB, free: 76.34 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003661/0.7529, allocations: 1.103 MB / 1.147 GB, free: 74.77 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.118e-05/0.7529, allocations: 32 kB / 1.147 GB, free: 74.74 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06858/0.8215, allocations: 11.91 MB / 1.158 GB, free: 62.88 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003298/0.8248, allocations: 0.6716 MB / 1.159 GB, free: 62.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00693/0.8318, allocations: 5.051 MB / 1.164 GB, free: 57.07 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004845/0.8367, allocations: 339.8 kB / 1.164 GB, free: 56.74 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003763/0.8371, allocations: 163.9 kB / 1.165 GB, free: 56.58 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 9.538e-06/0.8371, allocations: 4 kB / 1.165 GB, free: 56.57 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007398/0.8445, allocations: 5.404 MB / 1.17 GB, free: 51.15 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.897e-05/0.8446, allocations: 39.98 kB / 1.17 GB, free: 51.11 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06547/0.9101, allocations: 11.67 MB / 1.181 GB, free: 39.47 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002624/0.9127, allocations: 0.6489 MB / 1.182 GB, free: 38.82 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00903/0.9218, allocations: 8.084 MB / 1.19 GB, free: 30.46 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004325/0.9261, allocations: 324 kB / 1.19 GB, free: 30.14 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000381/0.9265, allocations: 155.9 kB / 1.19 GB, free: 29.99 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,nRes.y,allowFlowReversal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (287): * Single equations (assignments): 280 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(11,13), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.002294/0.9288, allocations: 1.551 MB / 1.192 GB, free: 28.43 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001135/0.93, allocations: 466.3 kB / 1.192 GB, free: 27.96 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006581/0.9366, allocations: 4.866 MB / 1.197 GB, free: 23.09 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.665e-05/0.9366, allocations: 19.98 kB / 1.197 GB, free: 23.07 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.9366, allocations: 3.438 kB / 1.197 GB, free: 23.07 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01567/0.9523, allocations: 7.013 MB / 1.204 GB, free: 15.79 MB / 0.698 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02688/0.9792, allocations: 13.22 MB / 1.217 GB, free: 2.496 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/0.9793, allocations: 0.9375 kB / 1.217 GB, free: 2.496 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00203/0.9813, allocations: 383.5 kB / 1.217 GB, free: 2.121 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0663/1.048, allocations: 11.9 MB / 1.229 GB, free: 6.266 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004774/1.048, allocations: 47.95 kB / 1.229 GB, free: 6.219 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006519/1.055, allocations: 4.376 MB / 1.233 GB, free: 1.77 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/1.055, allocations: 0 / 1.233 GB, free: 1.77 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02534/1.08, allocations: 9.759 MB / 1.243 GB, free: 7.973 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002938/1.083, allocations: 0.9951 MB / 1.244 GB, free: 6.953 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009371/1.084, allocations: 28 kB / 1.244 GB, free: 6.926 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003243/1.087, allocations: 283.2 kB / 1.244 GB, free: 6.648 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003527/1.088, allocations: 105.2 kB / 1.244 GB, free: 6.547 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002355/1.088, allocations: 79.92 kB / 1.244 GB, free: 6.469 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.004822/1.093, allocations: 3.352 MB / 1.247 GB, free: 3.133 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.51e-07/1.093, allocations: 0 / 1.247 GB, free: 3.133 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.007624/1.1, allocations: 2.715 MB / 1.25 GB, free: 460 kB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (pump.vol.dynBal.U,hea.outCon.T,val.filter.x[1],val.filter.x[2]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (127): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(10,3), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02533/1.126, allocations: 10.64 MB / 1.26 GB, free: 5.824 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.01535/1.141, allocations: 7.639 MB / 1.268 GB, free: 14.14 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/1.141, allocations: 0.8906 kB / 1.268 GB, free: 14.14 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.005251/1.146, allocations: 2.515 MB / 1.27 GB, free: 11.62 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01273/1.159, allocations: 2.783 MB / 1.273 GB, free: 8.875 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1067/1.266, allocations: 51.92 MB / 1.324 GB, free: 1.238 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002632/1.268, allocations: 3.217 MB / 1.327 GB, free: 13.99 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.005647/1.274, allocations: 1.701 MB / 1.329 GB, free: 12.29 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002583/1.277, allocations: 2.007 MB / 1.33 GB, free: 10.28 MB / 0.823 GB Notification: Performance of SimCode: time 7.11e-07/1.277, allocations: 0 / 1.33 GB, free: 10.28 MB / 0.823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.39/2.667, allocations: 145.2 MB / 1.472 GB, free: 243.4 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002606/2.667, allocations: 293.3 kB / 1.473 GB, free: 243.1 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.169/8.836, allocations: 0 / 1.473 GB, free: 243.1 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)