Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_11_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_11_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",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.0074/0.0074, allocations: 102.2 kB / 15.73 MB, free: 6.008 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.001952/0.001952, allocations: 188.6 kB / 16.67 MB, free: 5.926 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.351/1.351, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.564/2.564, allocations: 469.8 MB / 0.7425 GB, free: 3.293 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 63.89 kB / 1.065 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6204/0.6223, allocations: 159.1 MB / 1.22 GB, free: 2.016 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07923/0.7016, allocations: 81.02 MB / 1.299 GB, free: 0.7227 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.02905/0.7306, allocations: 21.05 MB / 1.32 GB, free: 11.63 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003063/0.7337, allocations: 107.4 kB / 1.32 GB, free: 11.53 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.005123/0.7389, allocations: 1.952 MB / 1.322 GB, free: 9.57 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.007214/0.7461, allocations: 2.954 MB / 1.325 GB, free: 6.605 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.005584/0.7517, allocations: 2.515 MB / 1.327 GB, free: 4.105 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.02049/0.7722, allocations: 18.42 MB / 1.345 GB, free: 1.629 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008975/0.7812, allocations: 7.233 MB / 1.352 GB, free: 10.3 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01089/0.7921, allocations: 5.829 MB / 1.358 GB, free: 4.48 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00819/0.8003, allocations: 5.121 MB / 1.363 GB, free: 15.34 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 0.00165/0.802, allocations: 0.5508 MB / 1.363 GB, free: 14.79 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005433/0.8075, allocations: 1.986 MB / 1.365 GB, free: 12.8 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.002376/0.8099, allocations: 1.76 MB / 1.367 GB, free: 11.04 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.005295/0.8152, allocations: 3.476 MB / 1.37 GB, free: 7.543 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.01181/0.827, allocations: 9.697 MB / 1.38 GB, free: 13.81 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 8.256e-06/0.827, allocations: 7.984 kB / 1.38 GB, free: 13.8 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.353e-06/0.827, allocations: 0 / 1.38 GB, free: 13.8 MB / 1.107 GB Notification: Performance of Transformations before backend: time 0.0002014/0.8272, allocations: 0 / 1.38 GB, free: 13.8 MB / 1.107 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 838 * Number of variables: 838 Notification: Performance of Generate backend data structure: time 0.01321/0.8405, allocations: 7.118 MB / 1.387 GB, free: 6.578 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.8405, allocations: 8.625 kB / 1.387 GB, free: 6.57 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006948/0.8412, allocations: 475.4 kB / 1.387 GB, free: 6.094 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003991/0.8452, allocations: 0.9798 MB / 1.388 GB, free: 5.109 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0118/0.857, allocations: 6.46 MB / 1.395 GB, free: 14.57 MB / 1.123 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002209/0.8573, allocations: 254.6 kB / 1.395 GB, free: 14.32 MB / 1.123 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007272/0.858, allocations: 352 kB / 1.395 GB, free: 13.98 MB / 1.123 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009727/0.8678, allocations: 5.737 MB / 1.401 GB, free: 8 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.56e-05/0.8678, allocations: 7.938 kB / 1.401 GB, free: 7.992 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004368/0.8683, allocations: 144 kB / 1.401 GB, free: 7.852 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001046/0.8684, allocations: 114 kB / 1.401 GB, free: 7.738 MB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009264/0.8777, allocations: 5.569 MB / 1.407 GB, free: 2.156 MB / 1.123 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.03299/0.9107, allocations: 24.13 MB / 1.43 GB, free: 8.961 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004787/0.9155, allocations: 2.756 MB / 1.433 GB, free: 6.207 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002905/0.9184, allocations: 1.901 MB / 1.435 GB, free: 4.305 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01173/0.9302, allocations: 7.171 MB / 1.442 GB, free: 12.82 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003079/0.9333, allocations: 1.919 MB / 1.444 GB, free: 10.89 MB / 1.17 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0031/0.9364, allocations: 0.7242 MB / 1.444 GB, free: 10.16 MB / 1.17 GB Notification: Performance of pre-optimization done (n=154): time 5.22e-06/0.9364, allocations: 0 / 1.444 GB, free: 10.16 MB / 1.17 GB Notification: Performance of matching and sorting (n=154): time 0.02356/0.96, allocations: 8.048 MB / 1.452 GB, free: 2.031 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.711e-05/0.9601, allocations: 72.72 kB / 1.452 GB, free: 1.949 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007923/0.968, allocations: 5.603 MB / 1.458 GB, free: 12.38 MB / 1.186 GB Notification: Performance of collectPreVariables (initialization): time 0.0004471/0.9685, allocations: 69.64 kB / 1.458 GB, free: 12.3 MB / 1.186 GB Notification: Performance of collectInitialEqns (initialization): time 0.002504/0.971, allocations: 2.649 MB / 1.46 GB, free: 9.629 MB / 1.186 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008086/0.9718, allocations: 0.585 MB / 1.461 GB, free: 9.039 MB / 1.186 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001159/0.973, allocations: 0.7679 MB / 1.462 GB, free: 8.262 MB / 1.186 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.9731, allocations: 309.1 kB / 1.462 GB, free: 7.957 MB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003048/0.9761, allocations: 1.904 MB / 1.464 GB, free: 6.043 MB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004051/0.9802, allocations: 3.159 MB / 1.467 GB, free: 2.316 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00712/0.9873, allocations: 5.027 MB / 1.472 GB, free: 12.81 MB / 1.201 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.539e-05/0.9874, allocations: 8 kB / 1.472 GB, free: 12.8 MB / 1.201 GB Notification: Performance of matching and sorting (n=402) (initialization): time 0.01213/0.9995, allocations: 6.819 MB / 1.478 GB, free: 5.953 MB / 1.201 GB Notification: Performance of prepare postOptimizeDAE: time 5.745e-05/0.9996, allocations: 45.7 kB / 1.478 GB, free: 5.902 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.416e-05/0.9996, allocations: 36 kB / 1.478 GB, free: 5.867 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07545/1.075, allocations: 13.54 MB / 1.492 GB, free: 8.305 MB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002913/1.078, allocations: 0.7137 MB / 1.492 GB, free: 7.59 MB / 1.217 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009535/1.088, allocations: 5.478 MB / 1.498 GB, free: 2.031 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004157/1.092, allocations: 244.4 kB / 1.498 GB, free: 1.793 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000431/1.092, allocations: 203.8 kB / 1.498 GB, free: 1.594 MB / 1.217 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005219/1.097, allocations: 3.269 MB / 1.501 GB, free: 14.32 MB / 1.232 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003939/1.101, allocations: 3.12 MB / 1.504 GB, free: 10.63 MB / 1.232 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00681/1.108, allocations: 4.918 MB / 1.509 GB, free: 5.234 MB / 1.232 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.955e-05/1.108, allocations: 12 kB / 1.509 GB, free: 5.223 MB / 1.232 GB Notification: Performance of matching and sorting (n=402) (initialization_lambda0): time 0.01118/1.119, allocations: 6.542 MB / 1.516 GB, free: 14.66 MB / 1.248 GB Notification: Performance of prepare postOptimizeDAE: time 5.561e-05/1.12, allocations: 45.7 kB / 1.516 GB, free: 14.61 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.182e-05/1.12, allocations: 36 kB / 1.516 GB, free: 14.57 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07519/1.195, allocations: 13.3 MB / 1.529 GB, free: 1.246 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002867/1.198, allocations: 0.7059 MB / 1.529 GB, free: 0.5391 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01322/1.211, allocations: 8.913 MB / 1.538 GB, free: 7.301 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004145/1.215, allocations: 244.2 kB / 1.538 GB, free: 7.062 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000371/1.215, allocations: 191.9 kB / 1.539 GB, free: 6.875 MB / 1.264 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 154 * 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 (317): * Single equations (assignments): 311 * Array equations: 1 * 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,15), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0008007/1.216, allocations: 387.2 kB / 1.539 GB, free: 6.488 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009654/1.217, allocations: 0.5162 MB / 1.539 GB, free: 5.969 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008192/1.225, allocations: 4.584 MB / 1.544 GB, free: 1.359 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-05/1.225, allocations: 16 kB / 1.544 GB, free: 1.344 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/1.225, allocations: 0 / 1.544 GB, free: 1.344 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01069/1.236, allocations: 5.664 MB / 1.549 GB, free: 11.42 MB / 1.279 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02517/1.261, allocations: 10.92 MB / 1.56 GB, free: 416 kB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.779e-06/1.261, allocations: 0 / 1.56 GB, free: 416 kB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002064/1.263, allocations: 371.6 kB / 1.56 GB, free: 44 kB / 1.279 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.5428/1.806, allocations: 11.71 MB / 1.572 GB, free: 323.1 MB / 1.279 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004061/1.807, allocations: 50.22 kB / 1.572 GB, free: 323.1 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004932/1.812, allocations: 3.553 MB / 1.575 GB, free: 321.4 MB / 1.279 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/1.812, allocations: 0 / 1.575 GB, free: 321.4 MB / 1.279 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01736/1.829, allocations: 8.137 MB / 1.583 GB, free: 318.5 MB / 1.279 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00183/1.831, allocations: 1.004 MB / 1.584 GB, free: 318.2 MB / 1.279 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006141/1.832, allocations: 32 kB / 1.584 GB, free: 318.2 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0024/1.834, allocations: 153.8 kB / 1.584 GB, free: 318.2 MB / 1.279 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002769/1.834, allocations: 110.1 kB / 1.585 GB, free: 318.2 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001957/1.834, allocations: 94.41 kB / 1.585 GB, free: 318.2 MB / 1.279 GB Notification: Performance of sorting global known variables: time 0.003965/1.838, allocations: 3.825 MB / 1.588 GB, free: 317 MB / 1.279 GB Notification: Performance of sort global known variables: time 2.2e-07/1.838, allocations: 3 kB / 1.588 GB, free: 317 MB / 1.279 GB Notification: Performance of remove unused functions: time 0.004976/1.843, allocations: 2.817 MB / 1.591 GB, free: 316.8 MB / 1.279 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.s[1],val.filter.s[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 (134): * Single equations (assignments): 125 * 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 {(11,5), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01768/1.861, allocations: 9.139 MB / 1.6 GB, free: 308 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.01479/1.876, allocations: 7.963 MB / 1.608 GB, free: 300 MB / 1.279 GB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/1.876, allocations: 6.688 kB / 1.608 GB, free: 300 MB / 1.279 GB Notification: Performance of simCode: created simulation system equations: time 0.004656/1.881, allocations: 2.296 MB / 1.61 GB, free: 297.7 MB / 1.279 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01056/1.891, allocations: 2.91 MB / 1.613 GB, free: 294.9 MB / 1.279 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05398/1.945, allocations: 45.41 MB / 1.657 GB, free: 248.1 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00187/1.947, allocations: 3.418 MB / 1.661 GB, free: 244.7 MB / 1.279 GB Notification: Performance of simCode: alias equations: time 0.004229/1.951, allocations: 1.753 MB / 1.662 GB, free: 242.9 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002145/1.953, allocations: 2.19 MB / 1.664 GB, free: 240.7 MB / 1.279 GB Notification: Performance of SimCode: time 5.41e-07/1.953, allocations: 4 kB / 1.664 GB, free: 240.7 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 11.23/13.19, allocations: 158.3 MB / 1.819 GB, free: 83.92 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.29/40.48, allocations: 23.78 kB / 1.819 GB, free: 83.89 MB / 1.279 GB (rm -f Buildings_11_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_11_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_11_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > Buildings_11_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)