Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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: "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_latest_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_latest_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.006104/0.006104, allocations: 100.6 kB / 15.73 MB, free: 6 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.001714/0.001714, allocations: 189.9 kB / 16.67 MB, free: 5.934 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.327/1.327, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.656/2.656, allocations: 482.6 MB / 0.755 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002329/0.002329, allocations: 60.12 kB / 1.083 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2753, allocations: 162.3 MB / 1.242 GB, free: 9.855 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.5466/0.822, allocations: 81.02 MB / 1.321 GB, free: 9.445 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0288/0.8508, allocations: 21 MB / 1.341 GB, free: 10.53 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003636/0.8545, allocations: 107.6 kB / 1.342 GB, free: 10.49 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.005266/0.8598, allocations: 1.958 MB / 1.343 GB, free: 9.562 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.007897/0.8677, allocations: 2.932 MB / 1.346 GB, free: 7.84 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.00596/0.8737, allocations: 2.485 MB / 1.349 GB, free: 6.539 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.01959/0.8933, allocations: 18.16 MB / 1.366 GB, free: 13.68 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008629/0.9019, allocations: 7.221 MB / 1.374 GB, free: 9.43 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01175/0.9137, allocations: 5.992 MB / 1.379 GB, free: 6.184 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008727/0.9225, allocations: 5.032 MB / 1.384 GB, free: 3.207 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.001568/0.924, allocations: 0.5456 MB / 1.385 GB, free: 3.207 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005778/0.9298, allocations: 1.976 MB / 1.387 GB, free: 2.465 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.002101/0.9319, allocations: 1.75 MB / 1.388 GB, free: 1.172 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.005769/0.9377, allocations: 3.481 MB / 1.392 GB, free: 13.83 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.01136/0.9491, allocations: 9.674 MB / 1.401 GB, free: 4.121 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.9491, allocations: 0 / 1.401 GB, free: 4.121 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.644e-06/0.9491, allocations: 0 / 1.401 GB, free: 4.121 MB / 1.092 GB Notification: Performance of Transformations before backend: time 0.0001755/0.9493, allocations: 4 kB / 1.401 GB, free: 4.117 MB / 1.092 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.0123/0.9616, allocations: 7.067 MB / 1.408 GB, free: 12.94 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.9617, allocations: 12.03 kB / 1.408 GB, free: 12.93 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006386/0.9623, allocations: 467.4 kB / 1.409 GB, free: 12.46 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00387/0.9662, allocations: 0.9837 MB / 1.41 GB, free: 11.47 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01074/0.9769, allocations: 6.44 MB / 1.416 GB, free: 4.961 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001899/0.9772, allocations: 258.5 kB / 1.416 GB, free: 4.707 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005513/0.9777, allocations: 336 kB / 1.417 GB, free: 4.379 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008783/0.9865, allocations: 5.731 MB / 1.422 GB, free: 14.4 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.597e-05/0.9866, allocations: 11.94 kB / 1.422 GB, free: 14.39 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003942/0.987, allocations: 147.9 kB / 1.422 GB, free: 14.24 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-05/0.9871, allocations: 84 kB / 1.422 GB, free: 14.16 MB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008678/0.9957, allocations: 5.542 MB / 1.428 GB, free: 8.605 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.03123/1.027, allocations: 24.76 MB / 1.452 GB, free: 14.61 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004692/1.032, allocations: 2.763 MB / 1.455 GB, free: 11.86 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002831/1.035, allocations: 1.917 MB / 1.456 GB, free: 9.941 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01073/1.045, allocations: 7.132 MB / 1.463 GB, free: 2.492 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003005/1.048, allocations: 1.914 MB / 1.465 GB, free: 0.5664 MB / 1.154 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002838/1.051, allocations: 0.7281 MB / 1.466 GB, free: 15.84 MB / 1.17 GB Notification: Performance of pre-optimization done (n=152): time 3.336e-06/1.051, allocations: 0 / 1.466 GB, free: 15.84 MB / 1.17 GB Notification: Performance of matching and sorting (n=152): time 0.03102/1.082, allocations: 9.268 MB / 1.475 GB, free: 6.484 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.854e-05/1.082, allocations: 72.7 kB / 1.475 GB, free: 6.402 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007558/1.09, allocations: 5.565 MB / 1.481 GB, free: 0.8633 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 0.0005042/1.09, allocations: 65.7 kB / 1.481 GB, free: 0.793 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.002364/1.093, allocations: 2.633 MB / 1.483 GB, free: 14.14 MB / 1.186 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007263/1.093, allocations: 0.5734 MB / 1.484 GB, free: 13.56 MB / 1.186 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001086/1.095, allocations: 0.7678 MB / 1.485 GB, free: 12.79 MB / 1.186 GB Notification: Performance of setup shared object (initialization): time 0.000105/1.095, allocations: 305.1 kB / 1.485 GB, free: 12.48 MB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003/1.098, allocations: 1.904 MB / 1.487 GB, free: 10.57 MB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003941/1.102, allocations: 3.151 MB / 1.49 GB, free: 6.852 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006845/1.109, allocations: 5.012 MB / 1.495 GB, free: 1.355 MB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.588e-05/1.109, allocations: 15.94 kB / 1.495 GB, free: 1.34 MB / 1.186 GB Notification: Performance of matching and sorting (n=399) (initialization): time 0.01171/1.12, allocations: 6.818 MB / 1.501 GB, free: 10.49 MB / 1.201 GB Notification: Performance of prepare postOptimizeDAE: time 5.412e-05/1.12, allocations: 48.86 kB / 1.501 GB, free: 10.44 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.092e-05/1.12, allocations: 40 kB / 1.501 GB, free: 10.4 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07545/1.196, allocations: 13.54 MB / 1.515 GB, free: 12.84 MB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002758/1.199, allocations: 0.6942 MB / 1.515 GB, free: 12.14 MB / 1.217 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009155/1.208, allocations: 5.496 MB / 1.521 GB, free: 6.562 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003834/1.212, allocations: 247.8 kB / 1.521 GB, free: 6.32 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003326/1.212, allocations: 199.8 kB / 1.521 GB, free: 6.125 MB / 1.217 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004907/1.217, allocations: 3.265 MB / 1.524 GB, free: 2.852 MB / 1.217 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003728/1.221, allocations: 3.105 MB / 1.527 GB, free: 15.18 MB / 1.232 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00644/1.227, allocations: 4.908 MB / 1.532 GB, free: 9.793 MB / 1.232 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.583e-05/1.227, allocations: 16.08 kB / 1.532 GB, free: 9.777 MB / 1.232 GB Notification: Performance of matching and sorting (n=399) (initialization_lambda0): time 0.0104/1.238, allocations: 6.538 MB / 1.539 GB, free: 3.215 MB / 1.232 GB Notification: Performance of prepare postOptimizeDAE: time 4.511e-05/1.238, allocations: 49.7 kB / 1.539 GB, free: 3.16 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.222e-05/1.238, allocations: 36 kB / 1.539 GB, free: 3.125 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07329/1.311, allocations: 13.29 MB / 1.552 GB, free: 5.812 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002684/1.314, allocations: 0.6864 MB / 1.552 GB, free: 5.125 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01263/1.326, allocations: 8.922 MB / 1.561 GB, free: 11.88 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003881/1.33, allocations: 244.3 kB / 1.561 GB, free: 11.64 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003212/1.33, allocations: 199.8 kB / 1.561 GB, free: 11.45 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 (314): * Single equations (assignments): 308 * 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.000736/1.331, allocations: 379.2 kB / 1.562 GB, free: 11.07 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007907/1.332, allocations: 0.5162 MB / 1.562 GB, free: 10.55 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01021/1.342, allocations: 4.972 MB / 1.567 GB, free: 5.547 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.406e-05/1.342, allocations: 24.11 kB / 1.567 GB, free: 5.523 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/1.342, allocations: 3.938 kB / 1.567 GB, free: 5.52 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009389/1.352, allocations: 5.567 MB / 1.573 GB, free: 15.69 MB / 1.279 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0239/1.376, allocations: 10.78 MB / 1.583 GB, free: 4.816 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.275e-06/1.376, allocations: 4 kB / 1.583 GB, free: 4.812 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001929/1.378, allocations: 375.5 kB / 1.583 GB, free: 4.445 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06525/1.443, allocations: 11.71 MB / 1.595 GB, free: 8.719 MB / 1.295 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003911/1.443, allocations: 43.97 kB / 1.595 GB, free: 8.676 MB / 1.295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005652/1.449, allocations: 3.526 MB / 1.598 GB, free: 5.074 MB / 1.295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/1.449, allocations: 7.938 kB / 1.598 GB, free: 5.066 MB / 1.295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0229/1.472, allocations: 8.607 MB / 1.607 GB, free: 12.42 MB / 1.311 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002237/1.474, allocations: 1.001 MB / 1.608 GB, free: 11.4 MB / 1.311 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005843/1.475, allocations: 27.98 kB / 1.608 GB, free: 11.37 MB / 1.311 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0024/1.477, allocations: 159.7 kB / 1.608 GB, free: 11.21 MB / 1.311 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003054/1.477, allocations: 109.8 kB / 1.608 GB, free: 11.11 MB / 1.311 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002091/1.478, allocations: 83.92 kB / 1.608 GB, free: 11.02 MB / 1.311 GB Notification: Performance of sorting global known variables: time 0.004966/1.483, allocations: 3.799 MB / 1.612 GB, free: 7.254 MB / 1.311 GB Notification: Performance of sort global known variables: time 1.7e-07/1.483, allocations: 0 / 1.612 GB, free: 7.254 MB / 1.311 GB Notification: Performance of remove unused functions: time 0.005736/1.488, allocations: 2.808 MB / 1.615 GB, free: 4.441 MB / 1.311 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (pump.vol.dynBal.U,hea.outCon.T,val.actPos.y) * 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 (132): * Single equations (assignments): 123 * 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.02369/1.512, allocations: 9.624 MB / 1.624 GB, free: 10.78 MB / 1.326 GB Notification: Performance of simCode: created initialization part: time 0.01739/1.529, allocations: 7.953 MB / 1.632 GB, free: 2.781 MB / 1.326 GB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/1.529, allocations: 0 / 1.632 GB, free: 2.781 MB / 1.326 GB Notification: Performance of simCode: created simulation system equations: time 0.005185/1.535, allocations: 2.264 MB / 1.634 GB, free: 0.5195 MB / 1.326 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01067/1.545, allocations: 2.905 MB / 1.637 GB, free: 13.69 MB / 1.342 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0637/1.609, allocations: 45.19 MB / 1.681 GB, free: 15.07 MB / 1.389 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002845/1.612, allocations: 3.403 MB / 1.684 GB, free: 11.63 MB / 1.389 GB Notification: Performance of simCode: alias equations: time 0.004757/1.617, allocations: 1.8 MB / 1.686 GB, free: 9.824 MB / 1.389 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002741/1.619, allocations: 2.186 MB / 1.688 GB, free: 7.637 MB / 1.389 GB Notification: Performance of SimCode: time 8.12e-07/1.619, allocations: 0 / 1.688 GB, free: 7.637 MB / 1.389 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 8.152/9.771, allocations: 158 MB / 1.842 GB, free: 497.4 MB / 1.514 GB Notification: Performance of buildModelFMU: Generate platform static: time 37.97/47.75, allocations: 8.531 kB / 1.842 GB, free: 497.4 MB / 1.514 GB (rm -f Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > Buildings_latest_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)