Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.479/2.479, allocations: 284.9 MB / 292.4 MB, free: 10.59 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001507/0.001507, allocations: 184.9 kB / 360.6 MB, free: 7.301 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.138/2.138, allocations: 205.2 MB / 0.6191 GB, free: 12.23 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001086/0.001086, allocations: 88.36 kB / 0.7321 GB, free: 44.77 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.362e-05/2.357e-05, allocations: 0 / 0.8508 GB, free: 3.379 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8191/0.8191, allocations: 115.3 MB / 0.9634 GB, free: 78.55 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.311/2.13, allocations: 419.4 MB / 1.373 GB, free: 148.6 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000314/2.13, allocations: 90.14 kB / 1.373 GB, free: 148.6 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 7.724/9.854, allocations: 1.441 GB / 2.814 GB, free: 139 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.903e-06/9.854, allocations: 2.406 kB / 2.814 GB, free: 139 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.001137/9.855, allocations: 155.3 kB / 2.814 GB, free: 139 MB / 0.9636 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.01921/9.874, allocations: 4.584 MB / 2.819 GB, free: 137.2 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/9.874, allocations: 9.375 kB / 2.819 GB, free: 137.2 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006981/9.881, allocations: 0.8041 MB / 2.82 GB, free: 136.9 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02798/9.909, allocations: 6.759 MB / 2.826 GB, free: 136 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000271/9.91, allocations: 102.5 kB / 2.826 GB, free: 136 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001598/9.911, allocations: 206.9 kB / 2.827 GB, free: 136 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01354/9.925, allocations: 4.738 MB / 2.831 GB, free: 136 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01558/9.941, allocations: 4.813 MB / 2.836 GB, free: 135.3 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000136/9.941, allocations: 12.34 kB / 2.836 GB, free: 135.3 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008352/9.942, allocations: 16.16 kB / 2.836 GB, free: 135.3 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.671e-05/9.942, allocations: 84.94 kB / 2.836 GB, free: 135.3 MB / 0.9636 GB Warning: The model contains alias variables with conflicting start and/or 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.05476/9.996, allocations: 22.07 MB / 2.858 GB, free: 125.5 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006692/10, allocations: 2.65 MB / 2.86 GB, free: 125.4 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003796/10.01, allocations: 1.697 MB / 2.862 GB, free: 125.4 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02102/10.03, allocations: 6.902 MB / 2.869 GB, free: 123.1 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003893/10.03, allocations: 1.733 MB / 2.87 GB, free: 123.1 MB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01093/10.04, allocations: 1.956 MB / 2.872 GB, free: 123 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=157): time 1.891e-05/10.04, allocations: 3.469 kB / 2.872 GB, free: 123 MB / 0.9636 GB Notification: Performance of matching and sorting (n=157): time 0.04293/10.09, allocations: 6.217 MB / 2.878 GB, free: 122.6 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.628e-05/10.09, allocations: 147.8 kB / 2.878 GB, free: 122.5 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01086/10.1, allocations: 3.96 MB / 2.882 GB, free: 122.2 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.0007929/10.1, allocations: 29.42 kB / 2.882 GB, free: 122.1 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.003488/10.1, allocations: 2.442 MB / 2.885 GB, free: 121.3 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.001223/10.1, allocations: 0.5412 MB / 2.885 GB, free: 120.9 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003514/10.1, allocations: 0 / 2.885 GB, free: 120.9 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0002167/10.1, allocations: 413.8 kB / 2.886 GB, free: 120.6 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003502/10.11, allocations: 1.45 MB / 2.887 GB, free: 120.6 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004814/10.11, allocations: 2.733 MB / 2.89 GB, free: 119.1 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01198/10.12, allocations: 2.508 MB / 2.892 GB, free: 119 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.925e-05/10.12, allocations: 8.938 kB / 2.892 GB, free: 119 MB / 0.9636 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.07087/10.19, allocations: 8.394 MB / 2.9 GB, free: 117.4 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.003732/10.2, allocations: 15.03 MB / 2.915 GB, free: 101.3 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001606/10.2, allocations: 34.88 kB / 2.915 GB, free: 101.3 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06619/10.26, allocations: 6.206 MB / 2.921 GB, free: 100.5 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005468/10.27, allocations: 0.695 MB / 2.922 GB, free: 100.5 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01998/10.29, allocations: 5.527 MB / 2.927 GB, free: 97.82 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008663/10.3, allocations: 303.3 kB / 2.927 GB, free: 97.77 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001045/10.3, allocations: 160.8 kB / 2.928 GB, free: 97.75 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/10.3, allocations: 7.406 kB / 2.928 GB, free: 97.75 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.06571/10.37, allocations: 7.695 MB / 2.935 GB, free: 95.89 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001269/10.37, allocations: 40.22 kB / 2.935 GB, free: 95.89 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06647/10.43, allocations: 6.15 MB / 2.941 GB, free: 95.12 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005285/10.44, allocations: 0.6904 MB / 2.942 GB, free: 95.05 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02451/10.46, allocations: 8.229 MB / 2.95 GB, free: 90.3 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008181/10.47, allocations: 287.3 kB / 2.95 GB, free: 90.25 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001122/10.47, allocations: 153 kB / 2.95 GB, free: 90.23 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 147 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,allowFlowReversal.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {11 13,10 11,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001432/10.47, allocations: 200.1 kB / 2.95 GB, free: 90.05 MB / 0.9636 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04146/10.51, allocations: 6.046 MB / 2.956 GB, free: 87.75 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002152/10.52, allocations: 433.2 kB / 2.957 GB, free: 87.52 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02815/10.55, allocations: 5.718 MB / 2.962 GB, free: 84.12 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.146e-05/10.55, allocations: 16 kB / 2.962 GB, free: 84.11 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/10.55, allocations: 0 / 2.962 GB, free: 84.11 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02912/10.57, allocations: 6.859 MB / 2.969 GB, free: 77.01 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05734/10.63, allocations: 13.1 MB / 2.982 GB, free: 63.85 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.6e-05/10.63, allocations: 3.75 kB / 2.982 GB, free: 63.85 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004505/10.64, allocations: 419.5 kB / 2.982 GB, free: 63.44 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008301/10.64, allocations: 2.451 MB / 2.985 GB, free: 61 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005539/10.65, allocations: 27.97 kB / 2.985 GB, free: 60.97 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01693/10.66, allocations: 4.804 MB / 2.989 GB, free: 56.09 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.657e-06/10.66, allocations: 4 kB / 2.989 GB, free: 56.09 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04843/10.71, allocations: 9.995 MB / 2.999 GB, free: 46.06 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005127/10.72, allocations: 1.073 MB / 3 GB, free: 44.96 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002049/10.72, allocations: 7.953 kB / 3 GB, free: 44.96 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007405/10.73, allocations: 271 kB / 3 GB, free: 44.69 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007358/10.73, allocations: 105.2 kB / 3.001 GB, free: 44.59 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004708/10.73, allocations: 87.92 kB / 3.001 GB, free: 44.5 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.007542/10.73, allocations: 2.982 MB / 3.004 GB, free: 41.53 MB / 0.9636 GB Notification: Performance of sort global known variables: time 7.22e-07/10.73, allocations: 0 / 3.004 GB, free: 41.53 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.01549/10.75, allocations: 2.738 MB / 3.006 GB, free: 38.79 MB / 0.9636 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {10 3,2 5,10 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.05132/10.8, allocations: 11.63 MB / 3.018 GB, free: 27.24 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.02691/10.83, allocations: 7.097 MB / 3.025 GB, free: 20.1 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-05/10.83, allocations: 5.016 kB / 3.025 GB, free: 20.09 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.009552/10.84, allocations: 2.386 MB / 3.027 GB, free: 17.71 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02067/10.86, allocations: 2.407 MB / 3.029 GB, free: 15.39 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02931/10.89, allocations: 8.834 MB / 3.038 GB, free: 6.512 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005449/10.89, allocations: 3.317 MB / 3.041 GB, free: 3.168 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.01689/10.91, allocations: 2.785 MB / 3.044 GB, free: 492 kB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005226/10.92, allocations: 1.91 MB / 3.046 GB, free: 14.58 MB / 0.9792 GB Notification: Performance of SimCode: time 1.663e-06/10.92, allocations: 0 / 3.046 GB, free: 14.58 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.135/12.05, allocations: 145.8 MB / 3.188 GB, free: 148.6 MB / 0.9792 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000286/12.05, allocations: 181.8 kB / 3.188 GB, free: 148.4 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.789/20.84, allocations: 0 / 3.188 GB, free: 148.4 MB / 0.9792 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)